/dpt/ - Daily Programming Thread

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

Attached: 1568654857392.jpg (752x747, 128K)

Other urls found in this thread:

github.com/dotnet/csharplang/issues/2574
wiki.installgentoo.com/wiki/4chanX_filters
twitter.com/AnonBabble

Haskell makes me horny.

Reminder that this is real.

Attached: 1568236739441.jpg (1200x900, 263K)

Nigger, you know what I mean because you obviously read in-between the lines to point out that irrelevant grammar mistake on a Taiwanese waterboarding forum . Stop being an autistic invalid and calm down.

Why is Rust considered the tranny language even though C and C++ are the official languages of /lgbt/? Really gets the noggin joggin'.

Attached: thonkydonk.jpg (1024x1009, 91K)

>rustfags try to kill C
>now they killed Stallman
>what next, linux?
when will it end?

Meant for

Lisp is the most powerful programming language.

Because of shit like

a whole thread on that topic was already made

C++ is full of the same kind of shit.

Ended up creating a separate source file for macros.
>I killed stallman
when did this happen? I stood by him and always will. RMS was killed by SJWs and looks like the terry/M$ worshipers supported his assassination.

Attached: Screenshot from 2019-09-17 22-32-30.png (3840x2160, 559K)

Attached: 1564484307058.jpg (889x1024, 160K)

Now learning pointers is easy

Attached: 1424583473398.jpg (1172x894, 359K)

>MS was killed by SJWs
Yeah rustfags.

Not really. C/C++ is VERY old-timey corporate and bureaucratic. The people that make it don't give a shit about anything but the language itself when they are considering what to add to the already bloated as fuck features of C++. They couldn't care less if you were a he,she or a Hitler. As long as you add more shit to this bloated as fuck language everything will be copacetic.

>me
>SJW
I think your IQ is at a very primitive level.

>Reminder that this is real.

Attached: 1515765226840.png (1669x2664, 828K)

is this reportable?

Yes it's already been reported
github.com/dotnet/csharplang/issues/2574

var name = "John";
var players = {};
players[name] = {};
players[name].age = '12';

Doing my first project in NodeJS and damn, I love how I can access things like this.

>c-can i report this to daddy!??

Attached: 1555248413803.jpg (640x723, 39K)

players.John.age = 13;

> players.John.age = 12;
Thrown:
TypeError: Cannot set property 'age' of undefined

>Some retard bitch and her twitter kabal join forces against RMS
>creates shitstorm against RMS
>RMS forced to resign
>Jow Forums monkeys start howling bucause RMS a jew and free software is "communism"
>literally side with SJWS
>come to Jow Forums
>blame rustfags
Shut the fuck up you fucking moron.

*cabal

go cut your penis communities breaking fag.

10/10 accuracy
You are seething because he's right.

how long is this RMS/Rust shitfest going to last? Should I just leave Jow Forums?

you need to go back to >>>/discord/ tranny

What the fuck?

You pol fuckwits are the ones who raid Jow Forums. ALL the terry faggots and MS cucks come from shitcord. YOU NEED TO GO BACK. GET OUT.

rent free

Just filter out the retards

how?

One problem I have is, when the macros are expanded, VS Code points out error in the wrong place, it points out error in the macro instead of the macro invocation site. Pretty annoying.

If only Rust had first class support for function overloading -- I wouldn't need to emulate it with macros.

Fuck, it should have named returns, named parameters, FULL OOP support. Why opt out of OOP if you aren't providing rank-n types or HKT? OOP is not a security issue either.

Rust doesn't have rank Ns because the monomorphism meme. No excuses for HKTs though even sepples has that.

wiki.installgentoo.com/wiki/4chanX_filters

If you consider `template` to be HKT then Rust has this too. Rust macros can be used like C++ templates (minus autoinstantiation) and they can take other macros as parameters. It's not as nice as C++, but ... workable.

>has no problem with the Intel/AMD shilling
>has a hissy fit over RMS
lmao

>Why opt out of OOP
hating on OOP is trendy

I have a problem with that but it's not happening in /dpt/

The difference there is you're doing it with macros, not generics. I find this overlapping functionality quite painful, you can either do things the powerful way or the (slightly more) readable way.

There's been one post about RMS in here before you mentioned it. Are you really that triggered? Rust is posted here non-stop because it's a language.

>Rust is posted here non-stop because it's a language.
So I take it you're the one doing it then?

No, my point is you come into a programming thread and then have a shit fit over a programming language being posted. Just leave snowflake.

what the fuck does snowflake mean? is that some new word for white people? I don't want to hear about programming language politics (ie Rust)

If the only redeeming quality of you is being white, enjoy being jobless in the coming recession. See

This is exactly the type of bullshit I'm talking about
I'm asking why you called me snowflake, like if it's some new racist term
I don't want to hear about Rust tranny doomsday prophecies

Every day that passes reminds me that software is a disgusting business filled with more and more disgusting people. I'm moving to CE asap.

You must be underage if you don't know what snowflake means.

>I'm asking why you called me snowflake
I'm not here to teach you basic idioms. Learn how to filter or cope while secretly jerking off to tranny porn like the OBSESSED cunt you really are.

Literally nobody cares about this, while writing Gui or using Operating system commands is very easy and requires no third party code

Not wanting to hear about your culture war doesn't make me obsessed

>what the fuck does snowflake mean?
>I'm asking why you called me snowflake, like if it's some new racist term
Pretending to be retarded is not a smart move

>im not obsessed
If you really weren't, you would stop prolonging this conversation, used filters and not sperg out "muh tranny" card to be quite honest with you, user.

How does Lexical scoping being broken benefit writing GUI and "using OS commands"? Elaborate.

>man walks into your house
>starts shitting all over the floor scream about trannies and Rust
>you ask him to leave
>he calls you obsessed and says "just filter me bro"

I've been writing C for a few years now never thought to declare an array of pointers like that.

Attached: 1566133473783.png (1280x720, 526K)

Unlike your cherry-picked scenario, filtering actually works in the forum. Weren't you asking for permission to leave Jow Forums? Why are you still here, we have trannies and rust all over the place. Get out.

If you use meaningful variable names, as you should, you will never experience scoping problems

>filtering actually works in the forum
not really

In other words, in order to go around broken scoping, you have to generate unique variables, right?

Well, there's only one option left, leave.

Also, you haven't really told me how broken scoping benefits GUI and writing OS commands as you say.

>aggressive Rust shill is also the guy shitting up every thread about C#
big surprise

ewwww, now they're in programming?

Not really, I always said I use Rust. Now please explain how Lexical scoping being broken benefit writing GUI and "using OS commands".

In a language with sane syntax this wouldn't be a problem.

I couldn't care less, stop posting

Why does Haskell need the monomorphism restriction? What benefit does it serve? Nothing seems to go wrong if I turn it off...

bump. where'd that c shart midget run off to?

Attached: 1542629541459.png (1200x800, 43K)

Despite being unintuitive, it's still very logical.

There is also a notable difference between char *a[6] and char (*a)[6].

It is logical when you read it is as "what do I have to do to this expression to get a primitive type" but cv qualifiers are still ugly and confusing.

Wow this looks so complex and weird!

the biggest crime of C pointers (and arrays, by extension) is that the name becomes its whole own entity, its own part of the process.

I've stumbled upon a relatively new language that I think will be popular soon. What libraries should I create that would be useful and earn me those sweet GitHub stars?

containers
frameworks
meme stuff like monads

Attached: Screenshot 2019-09-16 at 16.48.51.png (1854x882, 104K)

What the hell are you talking about?

Some oop cs meme

scratch gang

Attached: 1566619996100.jpg (564x752, 46K)

opengl bindings,
opengl based GUI library

even the deadlang is used more than rust. goes to show how much shilling takes place here. only people i know who use rust are mozilla.

These exist already

depends on the language.
is it statically typed and compiled? write a library in it.
is it a gluelang? write a wrapper for wxwidgets or qt.

scratch gang scratch gang scratch gang scratch gang

Attached: 1568517228588.jpg (1425x1339, 171K)

>write a library in it
what library?

tiddie soft body physics

My pronouns are Hail/Hitler

I have this daki

HOW the FUCK did something so ATROCIOUS as C style S*NTAX become so UBIQUITOUS?

Absolutely ABHORRENT.

The PATRICIAN choose for BEAUTIFUL SYNTAX and ELEGANT PROGRAMS is the ONE TRUE language, that is COMMON LISP.

Go through the source with a fine-toothed comb replacing any problematic, oppressive, or gendered language with the appropriate politically correct garbage.

exactly

Common Lisp has the worst syntax of the Lisps that still exist.

Quick, throw nickels at him until he goes away

Have you ever tried to read common lisp project over 10k lines?
The parenthesis are kind of nice but the way lisp makes you nest 10 levels if you want to write bit longer function is fucking annoying.

bool IsEven(int)

Write smaller functions then. hat was it some famous person said, a function should be about the size of his hand, no larger? lol.

Eh maybe, but Common Lisp is the most powerful Lisp. And any of them BTabsoluteFO of gross C-style syntax.

>TIOBE
TIOBE is a joke, you know that right? It claims C is more popular than Javascript kek

>dude just write smaller functions :)
not feasible always fucking retard