/dpt/ - Daily Programming Thread

What are you working on, Jow Forums?

Previous thread:

Attached: 1567640331567.jpg (361x361, 34K)

Other urls found in this thread:

en.wikipedia.org/wiki/.kkrieger
docs.oracle.com/javase/8/docs/technotes/tools/findingclasses.html
twitter.com/SFWRedditImages

nth for no perfect lang, bored of everything that is out there, and considering just writing my own

This except I've written type systems and interpreters before and it just gets worse and more boring
>tfw you waste time writing boilerplate haskell only to delete it because the whole thing is dumb

third for thaskell

>What are you working on, Jow Forums?
trying to decide what to do once I leave my dev career which could be soon

In the same boat as , but I've taken the optimizer pill. Built an IR and implemented some basic optimizations on top of it before register coloring to assembly.
An optimizer is essentially a ton of math and a ton of graph theory. I find it more exciting to implement some optimizations rather than tweak an existing language a little bit and drop it after a year at most (after barely getting through semantic analysis).
As an additional upside, I basically only have to rewrite the front-end for any new language I decide to make in the future since the I have an IR.

Reading designing data intensive applications

discuss

I'm working on Python, I have like 3 days of experience and I want to "pause" the course I'm taking and work on a mini project to train myself, but I have no idea on what to do.

Anone! You've been lacking regarding your JavaScript studies... Please do something about that!

Attached: 46c4f064ff6e349add4c4ef30c1cb9f8.jpg (1366x2048, 216K)

Is boring and full of boilerplate
No

I think i may just start my own C compiler since it has immense resources and go from there.

what do they look like?
do i just go with a rbtree + some hash function + a pointer to one or more stored values under a given node? (since hash collisions are possible)

Some front end web dev shit.

Pls kill me.

Nothing in IT interests. What do I do? Programming is all I have.

mix programming with a different hobby.
most people bored of software, usually turn to robotics or homebrew hardware.

Real talk: Am I the only one on this board who likes Eclipse? Hear me out:

I think most people dislike this IDE because they were forced to use it back in school or university, back when they had no idea what they were doing and thus got very confused.

Visual Studio code is a botnet and is based on fucking electron, no thanks.

IntellJ IDEA is not FOSS and their UI is based on fucking swing and has dogshit docking capabilities and yet is shilled relentlessly.

Visual Studio is bare bones as fuck without Resharper. Their only saving grace is the C++ debugger under Windows.

Meanwhile Eclipse
>looks native on every platform thanks to SWT
>great docking support
>is completely FOSS
>not a botnet
>no electron

So what's with all the hate? I'll admit that I am baby ducked in this thing and that it has given me some frustration back in the day, but now that I am actually competent I don't have any issues with it what so ever.

Attached: eclipse1[3].png (250x250, 53K)

There's nothing else that interests me. I've tried a few different ones but none stick out as anything but normal.

>try to delete a post
>Error: Our system thinks your post is spam.
good website

I doubt the only thing that interests you is programming, and you've probably not really explored much beyond tertiary programming fields. But if it is actually true, then you could either tackle a hard problem in CS, or turn to serious simulation development. Which will always by fraught with performance bottlenecks you'd have to spend time on.

Programming doesn't really interest me either but I have a slight affinity for it. I tried drawing and some basic robotics but that's about it. I could try and make a video game but my artistic skills are non-existent. I mostly indulge in escapism now.

Trying to figure out Unix Domain Socket in Rust.

What is this poster's endgame?

you just seem a bit lost then.
but procedural generation for art and sound assets is interesting, could give that a look.
en.wikipedia.org/wiki/.kkrieger

sounds like your problem is depression more than programming

I don't think that's it considering my lifestyle is very healthy. Only thing that could be improved is socialisation. I've also had blood tests done and nothing was found.

Actually nothing,but I'm trying to learn laravel and holy shit it sucks
Why webdev needs to be so shit ?

...

aye don't ask me, currently struggling with bootstrap and sass

To be as far from having sex as humanly possible

Lisp is the most powerful programming language.

unless you're a wagie forced into it, why the fuck are you learning it?

wdg isn't up

Good

Yeah, now they're here.

Please explain a newlet what's the difference betwen executing my helloworld/HelloWorld.java as
java -cp classes helloworld/HelloWorld.java
as opposed to the usual
javac helloworld/HelloWorld.java
java helloworld/HelloWorld

Attached: Schermata del 2019-07-24 17-05-38.png (1303x700, 979K)

Learn Lisp.

I want to train with Nell in bed

god I want to sleep but I gotta wagecuck
pls post those anime girls that tell you to go to bed

HM type inference is overrated. Rank Ns are much more useful, let dependent types.

fuck d*pendent t*pes

I'd fuck a type till it's dependant on my dick

types aren't real incel

fuck of haskellet

Can someone help me understand how this scenario plays in 2k19 irl:
>Some guy who has a small business(or a big one i dont think scale matters unless its a mega corporation) wants an app his employees would use, fair enough
So, today, in this age, do you just, like create a website and host it with the database on a server in the office builidng
or
do you just create a desktop application that doesnt need to be hosted (the db ofc still does).

Everyone should experience how fun JS is, even the grumpy netizens of /dpt/!

>Likes dependent types
>Is a haskeller
Does not compute

linear + refinement types are the future, desu.

if it's only for internal use, there's no reason why you need anything more than a local dev server in the closet.

So are native desktop application passe?

Yikes

not at all, really depends on the app itself and its scope/complexity.
But a local web server is just easier to iterate on and manage if you just need something quick for a small app and it won't take much time.
If it's a serious project that has any chance of performance issues, then yeah, i'd probably go with a regular desktop application.

tell me why i'm wrong.
linear types are the only beacon i know of at the moment which has the possibility of making FP competitive with regular sys langs in performance.
But if there's something better, please let me know.

Someone explain .NET 5.0 to me, will we finally be able to build native C# applications that arent servers for LInux etc.

in the first place why both you could have a linearity predicate
second you're basically proving it's all bandwagons

>you could have a linearity predicate
too restrictive / not expressive enough.
>bandwagon
you aren't telling me why linear types are bad, or why i'm wrong.
please refrain from using buzzwords in place of an actual argument.

you can start a wdg thread yourself you know

lol, nice response. what do you suppose people who do not enjoy javascript are doing wrong?

Because I really need some money and webdev seems the fastest way to be somewhat productive and make some projects to expand my curriculum

Being rude won't get you a gf

I would say refinement types using separation logic.

Create a visual novel with no visuals

How can lacking JavaScript be a bad thing

>separation logic
any recommended reading on it?
Or research langs no matter how obscure or unsupported?

To be cute

>overqualified rejection emails or no response rejections because I don't have an inside connection
I feel like I'm going to hang myself. It's been 2 years like this

kys haskneet

"Iris from the Ground Up" describes the state of the art and also cites the best previous papers about it. Start there and follow the citations back.

I think Low* uses separation logic. Mostly it's used in external verification efforts, not integrated into languages itself.

I actually know of F* and Low*, not sure how i forgot about that.
thanks m8.

Where do you live?

>writing anything but exception and rtti-free C++98 code for maximum portability
i really hope you guys don't do this

First off, I assume your java invocation actually would be
java helloworld.HelloWorld
as the directory structure implies a class called HelloWorld inside the helloworld package.
The first one only differs by the fact that you're specifying a different directory for the Java runtime to look for user classes (i.e. those that do not ship as part of the Java runtime itself). By default it only searches the current directory (.), but you can also specify a number of directories or JAR files to search for classes instead.
That means Java will look for your main class in classes/helloworld/HelloWorld.class in the first case and helloworld/HelloWorld.class in the latter.
This concept is called the classpath.
docs.oracle.com/javase/8/docs/technotes/tools/findingclasses.html

>portability

Attached: 1537379077881.jpg (1916x1080, 1.08M)

/wdg/ is down and I don't feel like finding the template, so I guess I'm a refugee here for now.

I'm getting down and durty into Node. I set up WSL and I really like the workflow in VS Code. Feels good to know that I'm working in a proper environment and I'm not going to have to deal with a bunch of extra bullshit when I want to try deploying something.

i can't focus...all i have been thinking is you!

>Writing anything except the common subset of C89 and C++98 for maximum portability

C99 is absolutely fine and there is no reason not to use it. The only bad feature is VLAs.

A vim clone in C++.

I am trying to rewrite all my favorite software.

>The only bad feature is VLAs.
Nice meme

anyone have a consistent method for tidying up bitwise-heavy operations? I can understand what I've typed but I'm not sure if that's just because I'm the one who typed it

Attached: bitwise.png (906x64, 12K)

nah thats normal
they never look tidy

alright, cheers

An obvious improvement would be to factor out ((opcode & 0x0f00) >> 8) since you have it written three times.

>Where do you live?
New York. I can't move for personal reasons before you ask. If you have any suggestions, please tell me what to do

If you're like anybody else, those personal reasons aren't very good.
If this is your FIRST job, suck it up and move.
You've got an effective 2 year gap not having a [related] job. 1 year is bad enough, and would make you a massive fuckup, god knows what people would think of you if you were jobless for 2 years.

When you're frosh out of college, no one gives a shit about you. Once you've got your first job [anywhere], suddenly the offers start piling in. Then a year later you can switch back to a job in NYC.

VLAs are a bad feature, alloca does the same thing and doesn't complicate the language any more.

>he thinks alloca isn't already complicated magic

2* but fair point, macros?

Complexity is better in a library than in the language.

Just assign to a local variable, no need to involve the preprocessor.

>create a visual novel with no visuals
I see what you mean, but I'm a "kinda but not that good" writer and I don't really have inspiration. Thanks for the answer though.

I like eclipse. Haven't done java dev in years though

i thought you would say that - i would do that but I'm doing a CHIP8 emulator those 3 lines are one example of many since I'm implementing the whole instruction set so i would have to use a fair few placeholder variables. It doesn't need the performance but i don't really want to juggle with all of that - I would end up with some sort of variable lookup table at the top of the file. Using macros would pose the same issue so I guess ill just keep it as-is

unless im being brainlet

Reposting from last thread because I need help

In a few steps here's what I'm trying to do for a project at work. Using spring boot hooked up to an Oracle database:
>build list of entities from a table by a particular field via a repository
>iterate through this list and delete by Oracle row ID in configurable batch sizes (but for now let's say 500)
The first part was pretty easy due to the flexibility of jpa repositories. But I cannot for the life of me figure out how to do the second step, there’s hardly any useful docs pertaining to using row id at all after googling the shit out of it. The repositories have pretty neat useful functionality to delete in batches, but my tech lead bitched me out when he got back from vacation because his design SPECIFICALLY called for this to be done by the row ID.

Anyone got any ideas?

>2 year gap = self employment, otherwise people won't even touch you with a 10 miles pole
also get some real experience, do freelancing, apply to project work

Attached: 1567433504235.jpg (312x296, 11K)

Don't tell me you're using C89 or something daft like that where you become scared of variables since you have to declare them up front.

Soooo I'm passing a pointer to an array of const char * to a struct and my strings are being mangled as if when I ask it for the next string is a list of {"hi", "bye"} It says its {"hi", "i"} silly c.

Is this why people use rust?

You're obviously incrementing the char*, not the char**.

Some time ago somebody posted a link to a uni website, which was a lengthy educational series of text on algorithms.

Does anybody have that link?

Of course, I made a toy example but hunting it down was fairly annoying