/dpt/ - Daily Programming Thread

What are you working on, Sup Forums?
Old thread:

fuck opengl

JS and Python are harder and less practical than Haskell and ML

First for OCaml

I'm writing an operating system in OCaml. It will feature no concept of threads; Instead, it will incentivise using a multiprocess design in your programs.

Ferris for President
Gas the Bikes
Race war Now

reminder to wash your programmer socks regularly

Books on data structures for C++?
pls no shceme autism, I don't wanna learn scheme or any language right now

remunder that flosts are chars

>data structures for C++
data structures are independent of language

>no native thread support
>no unsigned types
>boxed types
>shitty FFI
>no macros, have to use external tool
Ocaml is shit
consider SML, SML# or actually good programming language

yeah I know, which is why I want a book that teaches you data structures without compelling me to learn scheme

>JS and Python are harder and less practical than Haskell and ML
I call this the Sepples syndrome: it's when you conflate the difficulty of memorizing countless details that result from the incidental complexity of a language due to poor design, with the difficulty of understanding higher level abstract concepts that actually expand your perspective.

Reminder that if you need special socks in order to program then you're not a programmer, you're just looking for attention.

you don't need them, but wearing them improves your ability by at least 3x
it's a scientific fact!

How about winsocks?

2bad lern lisp

you fucking retard, ocaml is adding threading support. Ocaml does not thread support because of how the garbage collector is implemented.

>Consider languages no one uses instead of industry proven ones

Reminder that if you need special socks in order to program then you're not looking for attention, you're just shitposting.

automatically discarded

IMGUI alternatives?

C is better

>not standardized
>constantly changing API
>new features are implemented by graduating faggots from university from France
And you really would put your trust on that heap of shit?
Instead of standardized language with multiple of good implementations?

no it isn't

let's continue talking JS, shall we

I am struggling as fuck to be honest

Noice.

Then you should switch to a better OS.

Any cute ladies there?

nuklear
You could also look into making your own with nanovg, cairo or similar library.
shitty UI libraries like imgui, nuklear or similar seem to be just 2-3k lines if implemented with nanovg.

Reminder that if you only know a strict subset of C, then you do not know C.

>multiple of good implementations
So not SML? OCaml and F# are the only viable ML implementations.

>polyml
>sml/nj
>mlton
dumb microsoft poster

>2017
>no function overloading
>no virtual functions and abstract classes
>no encapsulation
>no streams

it is tho
lisp is really slow compared to C
it does offer some nice abstraction in exchange but you don't really need it, doing things at the bare metal level is actually so fucking easy, desu wanting to make it any easier than that is the epitome of laziness

Why were they so inconsistent with naming?

t. not in the industry

I wish the machine learning hype would finally die down and ML would go back to meaning the language family

Why not move to an easier, more practical language such as Haskell?

>tfw no qt Swiss gf to write games in Rust with
why live

You mean "not in the Jane's hooker street or attending university in France"

Sepplefags, help.

Suppose i declared empty class like this

class myclass{};

then did this


myclass ob;
cout

>update
>draw
>0 line of documentation

Also when you think she can't be more perfect
>emacs

Machine learning is such a scam. Data scientists are basically glorified code monkeys, most of them blindly apply their favorite model (aka the only one they know). I recently attended a presentation where the dude ran his training on a set of 250 samples with linear regression.

he has crazy eyes
stay away

Line number

>
Does she crave the d in her v?

typeid is implementation-dependent. The only thing you can use it for is to compare two types and make sure they are the same on a specific compiler. Here the 7 probably comes from the length of "myclass" (read about name wrangling).

When your language has like only one small company using it in industry, and they're probably using a massively hacked version because you repeatedly fail to add what they need, maybe you should stop throwing phd students at it to add experimental stuff and instead focus on adding the core features that the language desperately needs in order to be useful.

Just a thought.

>nanovg, cairo
bloated

Of course!

C-tards are literally as mentally ill as anorexics.
>vegetables are really fattening compared to water and drugs
>they do offer some nice micronutrition in exchange but you don't really need it
>desu living with your ribcage and pelvis bulging and your hair falling out is so fucking easy, you must be lazy as fuck if you're not even mentally strong enough to tolerate passing out all the time and constantly being miserable

>Lisa works in the product team at Travis CI. When not writing frontend code she learns Clojure and Rust, makes games and boycotts centralized social media.

Ok, gonna add a line in my cv as well
>user works is the product team at $company. When not writing code for he shitposts on /dpt/

Hah, I'm lying if I were to say it wouldn't be hot if a girl were to magically able to grow a penis and let me jerk her off then it disappears when she cums. I'm not gay but I feel that an erect penis is the best sign someone is aroused, how hot would it be to meet her or a girl you have a crush on and she blushes and pops a huge boner and has to cover it up with her purse and you can tell the pressure of holding it down with her purse is making her even more aroused.

People whose programming language skillset does not extend beyond Python and/or JavaScript shouldn't really be considered programmers.

>wrangling
dafuq

>only one small company using it
Facebook wrote many of their internal tools using OCaml.

>Rust: an alternative to high-level programming languages?
But... Rust *is* a high-level programming language

they aren't

user, I...

I suppose it's a (small) step up from PHP.

>Data scientists
What are those, some dudes that struggle to process an array of elements?

The guys paid to do machine learning in the industry.

Don't say that too loud, the normies will start to figure out "machine learning" isn't AI.

as soon as I got to the end I realized you might actually be very smart

>struggle to process an array of elements
In the same way that crawling across the floor because you have no legs is "struggling to walk".

The sooner the better.

shit, meant to type mangling.

nigga fucking stop. I need to be productive today, not jerk off.

Not comparable.
The difference is that skinnier is only better if you're already fat, whereas faster is always better even if you're not already slow.

My dick is twice as big.

that's because you're a boy, she's not

What is the bestest log format?

plaintext

teak

csv

systemd-journald

DELET

kys Sup Forums cuck

I'll correct your misunderstandings.

>woman = male
>/dpt/ poster = female

import sklearn


pssh... nothing personelle kid

>cuck

>rustlet = numale

>there are "people" in this thread who are unable to recognize merits in programming languages that do things differently from the One True Way they're used to
>they think their toolset is appropriate and applicable to every problem
>if by some miracle they manage to learn something new, it becomes the new One True Way
>this repeats indefinitely

So in other words, C-tards are literally the only thing even MORE mentally ill then anorexics.
Pic related.
>b--b--but muh sanic speed
>hurrrr bbut user i gatta go faahst
>hurrrrrrrr chilly dogs

>appropriate and applicable to every problem
Literally C.

Python is never appropriate.

Wrong. Literally Haskell.

tfw
>dreams crushed
>never going to be a game dev
>even if I got a job the hours would be terrible
>web dev easily accessible and great hours.
I suppose

I too dislike lispers.

>one true way
literally C++

Wrong. Literally Lisp.

>>appropriate and applicable to every problem
>Literally C.

>I too dislike lispers.
They're the least likely to suffer from this, in my experience. Functional programmers are the worst offenders. C++ users are probably second place.

gamedev sucks major ass tbqh

>never going to be a game dev
>even if I got a job the hours would be terrible
Just make your own games in your spare time?

I can't code for more than 20 minutes straight

Is that ok?

And yet, underlying literally every programming problem you can conceive of, and literally every programming tool you could use for it, there really IS a One True Way.

It's called using a computer.

Have a good long think about that one.

No, this is entirely unacceptable. Report yourself to the nearest internment camp immediately.