/dpt/ - Daily Programming Thread

Camden Lopez
Camden Lopez

What are you working on, Jow Forums?

Last thread: jowforums.com/thread/71840086/technology

Attached: 1546427951145.jpg (132 KB, 475x603)

Other urls found in this thread:

jowforums.com/thread/71840086/technology
github.com/t-r-a-g-e-d-y/pyvatar
github.com/tobgu/pyrsistent
github.com/tobgu/pyrthon/
graalvm.org/
en.wikipedia.org/wiki/Eth
jowforums.com/thread/71855261/technology

Jason Reed
Jason Reed

I got stuck on this book by chapter 2, too much math for a brainlet like me.

Attached: 1562880285468.jpg (356 KB, 1280x720)

Juan Gutierrez
Juan Gutierrez

jowforums.com/thread/71840086/technology
jowforums.com/thread/71840086/technology
jowforums.com/thread/71840086/technology

It worked because

&XXX
was getting interpreted by the browser as a character code like
 
or similar.

Cameron Ramirez
Cameron Ramirez

Daily offer to prove that C++ is actually no really guys I'm serious capable of performing outstanding memory allocation optimisations:

Then why don't you go ahead and run some C++ program with an overloaded malloc implementation that counts how many 64-Bytes-or-less allocations have been performed? And with a corresponding free overload you can see how long they survived. I also don't care about your synthetic benchmarks for a simple program, all right? I want real-world applications.

, and that's why it's better than C.

inb4 the compiler cannot apply its optimisations
Most real-world applications link their shit dynamically. Dynamic linking means you can inject symbols via LD_PRELOAD on Linux (no idea about the interface on Windows however). Since the compiler has NOTHING to do with symbol resolving that should give you a proper idea of how much a C++ compiler is actually capable of optimisation.

inb4 I'm too dumb to do that; gimme code/instructions!
Take the following code and put it into libcm.c:

/*$ gcc libcm.c -c -fPIC -o libcm.o -O3 -Wno-unused-result && gcc -shared -Wl,-soname,libcm.so.0 -o libcm.so.0.1 libcm.o
**$ LD_PRELOAD=./libcm.so.0.1 <program to inject into>*/

#include <time.h> /*time*/
#include <unistd.h> /*write*/
#include <string.h> /*strlen*/
#include <stdio.h> /*sprintf*/

/*No include file introduces the __libc_* symbols, but they're still present
**in libc.so - see:
**`readelf -s /lib/x86_64-linux-gnu/libc.so.6 | grep 'malloc` or whatever your
**glibc path is. As such we can simply introduce them here and then rely on
**the linker to resolve them for us.*/
extern void* __libc_malloc(size_t);
extern void* __libc_calloc(size_t,size_t);
extern void* __libc_realloc(void*,size_t);
extern void __libc_free(void*);

#define PRINT_SHIT
#define OUTPUT_LENGTH_MAX (128)
#define DO_PRINT write(STDERR_FILENO,output,output_length)

static size_t counters[4] = {0};

Cameron Collins
Cameron Collins

Oh that makes sense. Thanks again!

Juan Hernandez
Juan Hernandez

What exactly is a module? I just installed Eclipse after using a very simple IDE called TextPad. Upon creating a project I was prompted to make a module. I looked up what such a thing is in the context of java programming in this IDE, but I unfortunately still don't really understand what it is. As for now I'm going to just delete the file and create the classes I need.

Isaac Green
Isaac Green

__attribute__((destructor))
void cm_stats(void)
{
char output[OUTPUT_LENGTH_MAX];
int output_length;

output_length = sprintf
(
output,
"Mallocs: %lu\n"
"Callocs: %lu\n"
"Reallocs: %lu\n"
"Frees: %lu\n\n",
counters[0],
counters[1],
counters[2],
counters[3]
);
DO_PRINT;
}

/*Unfortunatey we cannot print the time in a proper fashion because calling
**localtime_r causes the program to lock up. Hard. I cannot even fathom what
**sort of lock it is that localtime_r and malloc are contesting for, and to be
**quite frank I don't fucking care either.*/
void*malloc(size_t size)
{
/*We cannot use printf/fprintf because those functions may request
**memory themselves. That's why we sprintf everything into our
**own buffer and write it directly to stderr.*/
#ifdef PRINT_SHIT
char output[OUTPUT_LENGTH_MAX];
int output_length; /*WHY THE FUCK IS THIS SIGNED?*/
time_t ut;
#endif
void*ptr;

ptr = __libc_malloc(size);
++counters[0];

#ifdef PRINT_SHIT
time(&ut);
output_length = sprintf(output,"[%lu]: Allocate %p|%lu\n",ut,ptr,size);
DO_PRINT;
#endif

return ptr;
}

void*calloc(size_t nmemb,size_t size)
{
#ifdef PRINT_SHIT
char output[OUTPUT_LENGTH_MAX];
int output_length;
time_t ut;
#endif
void*ptr;

ptr = __libc_calloc(nmemb,size);
++counters[1];

#ifdef PRINT_SHIT
time(&ut);
output_length = sprintf(output,"[%lu]: Callocate %p|%lu\n",ut,ptr,nmemb * size);
DO_PRINT;
#endif

return ptr;
}

Nathaniel Kelly
Nathaniel Kelly

void*realloc(void*ptr,size_t size)
{
#ifdef PRINT_SHIT
char output[OUTPUT_LENGTH_MAX];
int output_length;
time_t ut;
#endif
void*ptr_new;

ptr_new = __libc_realloc(ptr,size);
++counters[2];

#ifdef PRINT_SHIT
time(&ut);
output_length = sprintf(output,"[%lu]: Reallocate %p to %p|%lu\n",ut,ptr,ptr_new,size);
DO_PRINT;
#endif

return ptr_new;
}

void free(void*ptr)
{
#ifdef PRINT_SHIT
char output[OUTPUT_LENGTH_MAX];
int output_length;
time_t ut;
#endif

__libc_free(ptr);
++counters[3];

#ifdef PRINT_SHIT
time(&ut);
output_length = sprintf(output,"[%lu]: Free %p\n",ut,ptr);
DO_PRINT;
#endif
}

inb4 cnile
still no data
still winning

¯\_(ツ)_/¯

Gavin Roberts
Gavin Roberts

You guys have been arguing about this for 3 days. This is like those threads on Canadian grocery prices.

Attached: mm.jpg (52 KB, 500x436)

Xavier White
Xavier White

There's barely any math in SICP. Try using the video lectures too, they're entertaining.
(it doesn't cost $10 anymore)

Attached: 1558638342292.png (305 KB, 640x974)

Josiah Lee
Josiah Lee

__attribute__((destructor))
why do cniles continuously reinvent C++ features in disgusting nonportable manners?
It's almost as if their shitlang is defective.

Christian Martinez
Christian Martinez

Can anyone think of a good design pattern for this use case:
Set of functions that can call each other, which may recurse:

f(a,b):
g(a+1,b/2);
h(a-1,b*2);
g(a,b):
f(a*3/2, b/5)
h(a,b*2)
etc.

Now,
How would you limit the max recursion depth across all functions?

Everything is bound statically, imagine C or C++

Attached: 1562857326127.png (696 KB, 666x855)

Blake Hughes
Blake Hughes

why do cniles continuously reinvent C++ features
not knowing this is a gcc extension
not knowing this is executed when the lib is loaded
still raging about clines knowing more than you

You must have enormous self-hatred.

Jackson Garcia
Jackson Garcia

Why does Jow Forums shill SICP? Does anyone on Earth even use Lisp?

Jonathan Jones
Jonathan Jones

exercise 1.10: calculate these terms of ackermann's function
ex. 1.15: do some shit with sine reduction
ex. 1.19: reduce the steps to calculate fibonacci with successive squaring
It's math my dude.

Attached: 1562905693931.jpg (98 KB, 744x720)

Grayson Allen
Grayson Allen

The most straightforward way would be to make them take an additional parameter denoting the depth. Initially depth = 0. Throw error if depth > limit. Recursive calls pass depth + 1.

Noah Taylor
Noah Taylor

not knowing this is a gcc extension
that's exactly the point retard

Austin Morgan
Austin Morgan

"Elegant" I should add
The obvious one would be to add an incrementing variable (the top level-function could hide this and call the implementations f_(), g_(), or whatever) and add the check in every single function, but let's think beyond that

Camden Robinson
Camden Robinson

I was too slow but

There will potentially be hundreds of functions

Bentley King
Bentley King

good design pattern
for a set of recursive functions
I recommend you the recursive functions pattern.

Jeremiah Gray
Jeremiah Gray

that's exactly the point retard
You mixing up language features with compiler features? Does C++ have some mechanism with which a function is executed whenever a module is loaded/unloaded?

Oh, they rely on compiler extensions as well? Interesting ... for a Pajeet,

And of course you haven't tested the code yourself. Just how much do you want to discredit yourself?

Ian Young
Ian Young

but let's think beyond that
what the fuck are you talking about
thats both the simplest and the only way to do it

William Cox
William Cox

how automatic does it need to be?
can you reset it by hand or do you want a fresh counter for every invocation?
do you have a specific language in mind?
most straightforward is passing depth along and checking it everytime.
If you have an object to hold the functions and a counter you could do it that way.
Or the functions could call a special function that increments a static counter and then calls the next function.

Gavin Young
Gavin Young

1.10
They gave you the definition of the ackermann function, the code is already there. They're asking you to evaluate the function, just making sure you know how to run scheme code.
1.15
Has absolutely nothing to do with math, They're asking how many times is recursively called, and how it grows. It's making sure you read the last section.
1.19
They give you an explanation and ask you to plug in 2 expressions.

There's no way in hell you're too dumb to do this, it has nothing to do with math. Can't believe I had to dig out my dusty SICP for this shit.

Parker Barnes
Parker Barnes

yes they're called static constructors, what do you think your nonportable extension is imitating?

Jaxson Perry
Jaxson Perry

I think you could set a stack limit and handle the signal on stack overflow or some other similar hackery (like map some memory with no write access where you want the limit to be). But that would need the functions to have the same frame size for precise counting and actually have any frame size at all because they might be as well tail-call-optimized. Most likely you shouldn't and you don't need to do that. Otherwise the only other entity that could detect exceeded depth would be the functions themselves.

James Harris
James Harris

There's no way in hell you're too dumb to do this
user, you vastly overestimate my intelligence. But thank you.

Attached: 1562847928605.jpg (617 KB, 750x925)

Owen Cox
Owen Cox

what do you think your nonportable extension is imitating?
I dunno - something that can be injected into existing programs without much hassle? Oh wait ...

And of course you still havn't run it. At this point you have the code and the instructions; all you'd need to do is to compile and inject it. But of course you're not going to do that, because that would shatter your world view.

¯\_(ツ)_/¯

Colton Brown
Colton Brown

bash is actually fun

Nathan Morris
Nathan Morris

is python good for making gui programs and/or small video games?

Elijah Ross
Elijah Ross

That is absolutely not the only way to do it

e.g. using function objects you can use reference counting (ctor/dtor) to get the stack depth and determine whether the calls are to recurse further

Virtually hidden to the user, No ugly variable or repeated conditions

Logan Thomas
Logan Thomas

I don't care what the hell your code is trying to demonstrate I just find it hilarious that cniles think C++ is bad because it's bloated then reimplement its features with compiler extensions any way

Andrew Ramirez
Andrew Ramirez

If I want to create an AI that is capable of understanding relestste market where do I start?

Jeremiah Cooper
Jeremiah Cooper

learning to spell real estate would probably help

Aaron Ward
Aaron Ward

larger squid attack

Attached: 1540061326671.jpg (188 KB, 1280x720)

Michael Howard
Michael Howard

literally no arguments left whatsoever
still thinking he's above
It takes a certain amount of autism to be that far gone, but you, my clueless friend - you earned it.

Aaron Moore
Aaron Moore

No ugly variable
oh you're one of those people
therei s a variable, you just can't see it

Ayden Collins
Ayden Collins

Which course/book(s)/topic cover stuff like Deterministic Finite Automatons and P = NP problem? I'm trying to make up for my lack of formal CS knowledge so I can stop being a fucking POO koder and work at real companies that do real software engineering. Someone told me algorithms but my CLRS doesn't cover it.

Attached: brainlet.png (56 KB, 621x702)

Zachary Harris
Zachary Harris

P = NP problem
real software engineering
pick one

Easton White
Easton White

It's JavaScript time! Woohoo!

Attached: dadcaac72f54ac813eec24b2f8cffd1c.jpg (61 KB, 600x900)

Hudson Young
Hudson Young

The question was on a "good design pattern" and an "elegant solution"

Having lots of duplicate code is neither

Kayden Richardson
Kayden Richardson

work at real companies that do real software engineering
Like Oracle? Like Microsoft? Like Adobe? Like the entire snake oil industry?

Doesn't sound that glamorous all of a sudden, hm?

Noah Brown
Noah Brown

>>>/wdg/

Oliver Cook
Oliver Cook

these posts would be so much better without javascript

Daniel Jenkins
Daniel Jenkins

I know P = NP is irrelevant for the work you do but I just want to learn the theory and make sure I'm not missing out.

At least one of those companies does code review.

Matthew Peterson
Matthew Peterson

what the fuck does this mean

Attached: nigger.png (2 KB, 424x26)

Ethan Phillips
Ethan Phillips

Any programming book repository that isn't the gentoomen library?

Jayden Rogers
Jayden Rogers

what's the use case? to be able to catch a stack overflow before the program does? I usually use a global variable that gets incremented and decremented in the base function

Anthony Flores
Anthony Flores

I just want to learn the theory and make sure I'm not missing out.
software engineer here, you aren't missing out, most "theory" is wank

Gavin Jackson
Gavin Jackson

you probably forgot to use parentheses on a call to the count method on a string object somewhere

Jacob Nguyen
Jacob Nguyen

it's the representation of a built-in method
did you forget the parentheses?

Charles Gutierrez
Charles Gutierrez

that's because "software engineer" "theory" is OOP design patterns methodology bandwagons etc (misc crap)

Eli Foster
Eli Foster

you printed the built-in method count of str object at 0x040EB8B8

Jacob Bell
Jacob Bell

>>> a
'faggot'
a.count
<built-in method count of str object at 0x000001FE50605AB0>
a.count('g')
2

Logan Baker
Logan Baker

Lets write Doom game without help

Samuel Cook
Samuel Cook

You can find mostly any book you want by title on libgen, a large collection of books is useless because you'll never read any of them.

Kevin Howard
Kevin Howard

go ahead
I won't help you I promise

Dylan Sanders
Dylan Sanders

that's only half true
OOP design patterns are poor practical theory, but at least it is practical theory unlike the useless shit they teach in CS

Jeremiah Sanchez
Jeremiah Sanchez

But without JavaScript you wouldn't have regular doll cuteposts cheering you on.

Nathan Morris
Nathan Morris

yeah i wont help you either, lets do this

Bentley Gomez
Bentley Gomez

Almost done with chapter 2. I've managed to power through it

Colton Peterson
Colton Peterson

At least one of those companies does code review.
So? That doesn't mean anything at all! IIS runs in the fucking kernel because they couldn't make it faster!

This. Fucking this so much.

Jonathan Kelly
Jonathan Kelly

this is the dumbest post in the thread

Henry Phillips
Henry Phillips

I like large collections better, maybe I am stupid.

Chase Hughes
Chase Hughes

Example would be something like

MyFunctionObject:
static refCount = 0; // is a static variable that could be reset when not constructing using the copy constructor
constructor(functionToCall):
_refCount = 0
_functionToCall = functionToCall
copy_constructor():
refCount++
desctructor:
refCount--
operator(a,b):
if (ref < max_depth):
_functionToCall(a,b):


top-level where functions are called from:

f_obj = MyFunctionObject(&f);

f(a,b):
f_obj(a,b)

etc.

Andrew Edwards
Andrew Edwards

So? That doesn't mean anything at all!
Means more than not doing code review and just pushing out what has surface functionality and operations. I just don't want to work with indians anymore man.

I'm not looking for practical theory. I know that 90% of your work is ETL and CRUD bullshit along with the usual "plug and play X into Y to make Z happen". I do the same thing dude. I just want to learn some real CS.

Carson Allen
Carson Allen

I know that 90% of your work is ETL and CRUD bullshit
that's not engineering
CS isn't engineering either
the stuff they teach you in CS is mostly just useful for wanking off your other buddies in CS

Carter Torres
Carter Torres

new to programming i need help

Attached: im-retarded.png (5 KB, 574x159)

Gavin Lopez
Gavin Lopez

Not stupid, just misguided. There's no use in having 1000 pdfs on your system, you won't read more than a tiny fraction of them. It's like the rich people who have a gigantic library of books they've never read.
Pick a good book, read the entire thing and it's worth more than a billion pdfs you've never looked at or only read the first chapter.

Aiden Carter
Aiden Carter

Means more than not doing code review
It merely means that they've partially realised that their code is shit, and have been trying to fix it slowly over time - but they have so much more broken software out there that at the pace they're going I'm probably not going to see it happening.
SQL Server literally re-defines what a Unicode codepoint is just so that they do not have to admit that their software engineers are fucking imbeciles who thought that UTF-16 character can only ever take up 2 bytes of memory

I just don't want to work with indians anymore man.
Satya Nadella is Indian

Michael Cox
Michael Cox

uhhh im retard too but I think it's len(text[18:27])

Owen Jones
Owen Jones

WHAT SHOULD I MAKE?!?!

Attached: silly-negro.png (159 KB, 369x286)

Henry Jones
Henry Jones

Make install.

Jeremiah Lewis
Jeremiah Lewis

I USE NINJA IT'S FASTER!!!

Julian Cox
Julian Cox

what do you want to do?

Jonathan Hall
Jonathan Hall

make me a bf like kaworu

Attached: Eva24DC-Kaworu.jpg (13 KB, 365x273)

Owen Myers
Owen Myers

uber of jacking off

Jayden Gonzalez
Jayden Gonzalez

Alright, guess I'll control my autism and do this instead.

Kevin Williams
Kevin Williams

I CAN'T I DON'T KNOW WHERE ADAM IS
PLEASE EXPLAIN IN MORE DETAIL!!! LIKE, YOU ORDER SOMEONE TO COME JACK YOU OFF?

Ian Garcia
Ian Garcia

Script for remote webcam access through ssh
fun stuff

Sebastian Richardson
Sebastian Richardson

how do you fags feel that javascript kiddies earn 100k

Jayden Sullivan
Jayden Sullivan

In java you could just catch a StackOverflowException instead of counting... not recommending it though

Robert Lewis
Robert Lewis

You just seriously underestimate how terrible people are at math. The ackermann function exercise requires you to give a mathematical definition which is trivial if you didn't sleep through high school math, but that isn't rate at all.
The same also goes for the other exercises. You're saying "it's not math" and then literally go on to describe what a lot of mathlets struggle with.
There's not a single high school level math exercise that goes beyond plugging shit in and tons of people consider it a hard topic and are barely scraping by.

Dylan Jones
Dylan Jones

learning python
finnishing up a website in laravel

Gavin Howard
Gavin Howard

*ahem*

Attached: Webcam-Cover-Website-Images-Laptop.png (150 KB, 500x500)

Ayden Collins
Ayden Collins

what language do you use?

Joshua Howard
Joshua Howard

Pretty neat thing to 3D print if you have a printer

Anthony Morales
Anthony Morales

So like Ika said, there is actually something wrong with those people?

Attached: 1553685689312.jpg (312 KB, 686x720)

Evan Foster
Evan Foster

printer
cunt, any cappable and normal human being should be able to make that using his hands and a knife

Justin White
Justin White

Yes and while it's a sad state of affairs how widespread this is, it's alright, they can still be taught to program, they just need resources designed for exceptional individuals. Something like HTDP is written so that it can literally be understood by children, so even mathlets shouldn't have too much trouble.

Anthony Walker
Anthony Walker

Does this seem a little challenging for CS101? This is the second assignment.

Attached: helk.jpg (178 KB, 1138x972)

Parker Gomez
Parker Gomez

It's amazing how far removed maths are removed from real-world applications. It's like the people who design these assignments have *no* idea how the fucking world works.

Aaron Garcia
Aaron Garcia

you should know how to do this from highschool maths

just find a matrix M that M^2 yields an idempotent matrix

Hunter Diaz
Hunter Diaz

Depends on whether they expect you to actually find a somewhat efficient algorithm or just bruteforce it.
If it's the latter, it's basically trivial.

Luke Clark
Luke Clark

since the matrix size is fixed at 3x3, you can just try all 3x3 binary matrices, shouldn't be that hard.

Isaac Reyes
Isaac Reyes

matrices actually have real world applications

Carson Rogers
Carson Rogers

daily programming thread
there are 2 each day
Intellectual checkmate. Any final words?

Attached: 1562956863545.jpg (87 KB, 1280x720)

Zachary Perry
Zachary Perry

computer programming isn't a real world application
programming is useless academic bullshit

Landon Reed
Landon Reed

what?

Leo Fisher
Leo Fisher

the /dpt/ creator only posts a day

Jose Gonzalez
Jose Gonzalez

dairy programming thread

Isaac Kelly
Isaac Kelly

they won't make a new prog because admin doesn't come here or give a shit.
he scurried away when he realized that he would have to do work for his gay vtuber shit.

Attached: 1543226626455.jpg (285 KB, 2048x1152)

Mason Gonzalez
Mason Gonzalez

papercraft gets a board but not programming

Christopher Hall
Christopher Hall

gay vtuber shit.
I forgot about that, has anything even been done with the winning design?

Julian Robinson
Julian Robinson

That doesn't cover the odd powers.
Even if it did, you'd need to find all such matrices/show that there's only one, which for a specialized multiplication definitely isn't high school material

Mason Anderson
Mason Anderson

ooo we got a badasss here

Henry Rivera
Henry Rivera

I think /po/ predates /prog/ by a bit. It's not it, mods are in charge now and don't have authority to make boards. There's "manager" /pol/ shitposter but he doesn't talk either. If you want to compare potential new /prog/ to anything, compare to /gd/. We outnumber them by a mile.
Hiro hasn't come here in months, almost a year.
Nothing, hiro backed out and those people who worked on it are still mad.

Dylan Thomas
Dylan Thomas

var name : type

Why does every modern language fucking do this? I HATE it. Why is everyone trying to reject the C syntax? There is plenty wrong with C. C++ and Java and the basic syntax for functions and variables sure ain't one of them. So what's going on? Scala, Rust, Go, Kotlin, why are they all like this? There should not be a fucking "function" or "variable" keyword. Just use the type, USE THE TYPE. C HAS DONE IT AND IT WORKS. WHY CHANGE IT? AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA.

Attached: 1518122418086.png (208 KB, 640x863)

Liam Robinson
Liam Robinson

It's so you can omit the type most of the time. I don't like it either but that's why.

Adam Hernandez
Adam Hernandez

Modules are a thing that Java 9 invented. The idea is encapsulation on a bigger scale. Hiding certain classes from others. Once your codebase gets to a certain size you'll start to understand. I don't understand Java 9 Modules myself (I use OSGi), so just create a Java 8 project instead.

Tyler Nelson
Tyler Nelson

no, but you should bully whoever made that assignment for abusing notation like a retard

Evan Sanchez
Evan Sanchez

Pascal predates C, gorilla nigger.

Robert James
Robert James

Sort of re-learning c# and .net since all I did at my previous job was windows forms shit and barely touched telerik, and every job listing wants a fucking asp.net dev (+ angular)

Lincoln Hernandez
Lincoln Hernandez

javascript is the most powerful programming language

Hunter Rodriguez
Hunter Rodriguez

auto faggot = value

Based C++ to the rescue. Why not use the old syntax and invent a special "type" which auto deduces the variable type? Also what's with the colon? Not to mention, auto abuse is a thing. Why the fuck would I want to auto deduce shit like an integer? Just let me write int instead of var, IT'S THE SAME NUMBER OF CHARACTERS FOR CRYING OUT LOUD!

Dylan Jenkins
Dylan Jenkins

Baby duck programmer.

Ayden Jackson
Ayden Jackson

Stop defending syntax clutter. There is no need for the fucking colon.

Lucas Wright
Lucas Wright

Rate my readme

github.com/t-r-a-g-e-d-y/pyvatar

Attached: avatar7.png (939 B, 720x720)

Colton White
Colton White

because : is the common notation in type theory

Nolan Reyes
Nolan Reyes

why are all C programmers so baby ducked? I dont get it

Parker Gutierrez
Parker Gutierrez

So what? Does it make programs easier to read or write? No, it fucking doesn't.

Levi Fisher
Levi Fisher

it's not the old syntax, the : syntax long predates cniles
see

Austin Wright
Austin Wright

I'm more of a C++ fag. Also there is nothing wrong with having baby duck syndrome. I bet you have your window controls on the left, you hipster faggot.

Ethan Williams
Ethan Williams

user, not everyone is as retarded as you, it really doesn't affect readability or writability for anyone above 50iq

Adam Perry
Adam Perry

Also there is nothing wrong with having baby duck syndrome
yes there is
and C has the same syntax as C++ obviously

Henry Morgan
Henry Morgan

admittedly a bad argument but what if you have a type named auto?

Luke Scott
Luke Scott

So why are people so hellbent on destroying the syntax legacy of C?

Nolan Martin
Nolan Martin

why are cniles so hellbent on destroying the syntax legacy of church?

James Barnes
James Barnes

auto mobile = new Car();

James Garcia
James Garcia

You should be aware that even the people that made C (people like Ken Thompson) have obviously moved on, given that Ken has worked on both Go and C.

Robert Parker
Robert Parker

for an unbiased standpoint C syntax is pretty obtuse
we dont need semicolons
words are easier to understand that symbols

Aaron Price
Aaron Price

#define var auto
#define auto auto_t

Asher Lewis
Asher Lewis

They're too dumb to do C right, so of course they blame C for everything.

Benjamin Long
Benjamin Long

Type inference.
It's also absolutely garbage if you have a long type. If you need to annotate the type of higher order functions, the name gets completely pushed to the right which is absolutely unsightly and makes the code a lot harder to read.
And that's assuming that you don't use the C function pointer syntax which is outright vomit inducing.

Jace Stewart
Jace Stewart

actually you don't even have to do that because if you have a type named auto and you type

auto x = new auto();
auto will auto deduce the type to auto

Levi Rodriguez
Levi Rodriguez

Since when does C++ allow keywords for type names?

Kayden Hall
Kayden Hall

there's nothing wrong with favoring bad traditions over improvement

Jonathan Taylor
Jonathan Taylor

it doesn't, but y'know, IF IT DID

Jace Campbell
Jace Campbell

parentheses > semicolon > indentation

Jackson Jenkins
Jackson Jenkins

using default types
not typedefing everything

Attached: 1562920763235.jpg (24 KB, 482x511)

Alexander Scott
Alexander Scott

If you need to annotate the type of higher order functions, the name gets completely pushed to the right which is absolutely unsightly and makes the code a lot harder to read.

Which one of those is harder to read, I dare you!

int i = 0;
auto faggot : std::nigger<std::cunt<declytype(you)>>;

var i = 0 : Int;
var faggot : std::nigger<std::cunt<declytype(you)>>;

Exactly. Shut the fuck up, progressive!

Michael Foster
Michael Foster

Nice! haha 10/10. Looks good, user. Very neat.

Luke Long
Luke Long

Attached: 1437551370326.jpg (105 KB, 1052x813)

Jonathan Lewis
Jonathan Lewis

Having "var" in front of all variables, and "function" in front of all functions make it easier to read in my opinion, but I wouldn't throw a hissy fit just because a language didn't adopt X syntax.
Also when declaring immutables,

val faggot = value
is a bit better than
const auto faggot = value

Asher Cox
Asher Cox

Context-free vs. context-sensitive grammar.

Cooper Barnes
Cooper Barnes

How often do you even use const? I mean seriously.

All programing languages are context sensitive. Even beyond that, actually.

Liam Collins
Liam Collins

Grammar =/= semantics

Xavier Bell
Xavier Bell

Not it fucking isn't.

val
var

The only difference between mutable an immutable is a few pixels. Readability my fucking ass!

Adam Davis
Adam Davis

whatchu talkin bout racist compila. I call is funkshun ans digits

Jayden Hill
Jayden Hill

Thanks for admitting that types on the left are shit for functions.

Joseph Rodriguez
Joseph Rodriguez

How can we make compilers friendlier for lower intelligence quotient friends? Hmmm.

Attached: 20120928180014.jpg (161 KB, 695x481)

Jace Torres
Jace Torres

How about allowing both, faggot?

int foo()
{
return 0;
}

auto nigger() -> std::nigger<std::cunt<decltype(you)>>
{
return you;
}

James Sullivan
James Sullivan

Unless you're doing embedded programming, your values should be as often const + references as possible.

Brody Phillips
Brody Phillips

How often do you even use const?
Exception for some numeric variables that need to be incremented, I declare everything as immutable.

Zachary Cox
Zachary Cox

You niggers don't understand. How hard is it to just NOT mutate your variables and keep everything mostly functional without declaring everything const? I don't need the compiler to tell me when I am modifying a value I shouldn't, I know what I am doing. 90% of my variables only get assigned once and I don't declare them const. Why would I?

Cooper Nguyen
Cooper Nguyen

It's about optimization you retard

Austin Ward
Austin Ward

why do people think they're cool for making things immutable
and immutable program literally doesnt do anything

Leo Rogers
Leo Rogers

Maybe if the compiler could do stemming distance searching, snowballing, anagrams, and other fancy in memory shit to decide what the user could mean, then see if that compiles or not.

Jack Wright
Jack Wright

If you ever get a job and have to work with the code of others you'll know.

Kayden Lee
Kayden Lee

Baby tier programmer detected. That's the job of the compilers, you retard. Premature optimization is the root of all evil. You really think a compiler can't tell if a variable is EFFECTIVELY const?

Adrian Long
Adrian Long

a compile can tell if it's const without you having to specify

Julian Watson
Julian Watson

I have a job, I am the sole programmer on my project and I have complete control. Sucks to be you.

Oliver White
Oliver White

read code
see const
nice, no mutation here, and i didn't even have to check every call-site manually!

Nathan Jenkins
Nathan Jenkins

I'm mostly talking about scope local variables inside functions.

Chase Ortiz
Chase Ortiz

that's how javascript happened

boy, let me tell you about rice's theorem

Jackson Sanders
Jackson Sanders

rice's theorem
haskellers on suicide watch

Mason Taylor
Mason Taylor

even then const helps with longer functions

Jaxson Nguyen
Jaxson Nguyen

Lisp is the most powerful programming language.

Austin Price
Austin Price

You have never written a compiler. Or tried modifying a variable from the inside of a java lambda, have you? Even fucking Java knows when a variable is effectively const. THAT'S HOW JAVAS LAMBDAS WORK!

Hunter Green
Hunter Green

jesus christ the state of this thread

Jaxson Gray
Jaxson Gray

longer functions
If your function is greater than 200 lines, you already fucked up.

Isaac Foster
Isaac Foster

god, you are so fucking stupid it hurts
think for a second before you post you utter brainlet

Blake Young
Blake Young

You think a compiler can't understand when a variable is only assigned once because of rice's theorem. Who is the retard here?

Ryan Thomas
Ryan Thomas

user, providing an example where the java compiler will reject code that is "effectively final" is trivial
you could have easily come up with this one yourself, but i guess you are too fucking stupid for that

T v = null;
... = () -> {
if (false) {
v = new T();
}
}

Jace Peterson
Jace Peterson

You don't know shit about compilers. Unless you're writing absolutely trivial code no compiler does this because it's unfeasible and for general cases even outright impossible.
It's also only a premature optimization in the same sense that not storing everything in linked lists is. If you don't care about performance, just use python.
Just disassemble a non trivial program and add/remove some consts. Compilers aren't nearly as smart as you think. Once you call functions it's basically game over.
what is that even supposed to mean you retard.

Isaiah Ward
Isaiah Ward

Once you call functions it's basically game over.
once you call arbitrary functions that may have non-const behaviour its over, its fine if you're mostly working with static functions

Nicholas Perez
Nicholas Perez

You can tell that this was written by an American.
the red ball
the fact that it is red is more important than the fact that it is a ball

Basically any other other sensible language that is not English puts the name of the thing and then extraneous characteristics afterwards.

That's about the most that I've ever thought about it. But even in the 7 replies you gotten, other people have pointed out other ways that it makes sense.

it gets pushed all the way to the right when you have a long name
Yeah it ain't really a big deal when the name is "int", but how much of your life is wasted scanning extra characters when it's

const static volatile long long

There's also this:
C++ declares class inheritence like

Corgi : Dog

all the attributes come after the name of the class. You don't write it like Dog {spots: true, tail: long, fur: thick} Corgi

Types are basically just classes, and half of modern languages have figured out that that makes sense.
So why not treat them like it.

I don't know what you object to about this.
I don't think you do either.

C is one of the best languages ever, but there are some things that didn't make perfect sense about this language written on a computer made of wood.

Jace Anderson
Jace Anderson

algorithm books where I can see how to turn a graph into a tree and then traverse it?

Chase Hill
Chase Hill

try using your brain

John Sanders
John Sanders

Not him.
(non eso-lang) programming is not spoken language.
var != the in the context
var is used for type inference or block declarations.
Having both var and the type in a declaration is redundant and wastes time.
Personally I'd like a language that uses _ in place of auto/var for inference though.

Adrian Jones
Adrian Jones

LinkedList<int[]> a = new LinkedList();
int[] b = {1,2};
a.add({1,2});//???doesn't work

why is this not allowed

Brody Jenkins
Brody Jenkins

add only accepts a single value

Bentley Brooks
Bentley Brooks

-> {
return
}

-> to India, please.

Kayden Flores
Kayden Flores

Jow Forums always berates "code monkies" as a low skill job that can be done even without experience or knowledge of basic algos, datastructures and mathematics. I suppose one might stretch the definition to junior dev.

However, the being a code monkey is such a low skill, white collar job then how do they produce value? How does a code monkey create his salarys worth of revenue to the company or otherwise keep cogs rolling? To me it seems such a alien thing, to be able to work as a programmer without really being able to create anything worthwhile (in Jow Forumss mind)

Is the code monkey meme over blown? I have never worked as a dev or anything like that so Im just perplexed

Attached: 21333658.png (96 KB, 500x457)

Elijah King
Elijah King

If you throw enough monkeys at a problem, they'll get it done, but the result will be a horrible mess.

Tyler Mitchell
Tyler Mitchell

C++ is worse than C because its syntax is less convenient.

Oliver Davis
Oliver Davis

they're both terrible languages.

Cameron Nelson
Cameron Nelson

I don't want to think about types. Being able to do "5" * 4 and get 20 makes programs so much easier to write.

Gavin James
Gavin James

since when do you need to be smart to create value
people get paid to be cashiers

Kevin Campbell
Kevin Campbell

What do you mean, user?

CL-USER> (* "5" 4)
; Evaluation aborted on #<TYPE-ERROR expected-type: NUMBER datum: "5">.

Kayden Gray
Kayden Gray

because the second line (array initializer) is just sugar over `new Type[] {..}`to mimick C and that only works when declaring and assigning arrays on the same line.
Also, the curly braces on the third line are not by any means an array or any type of object.

Matthew Morris
Matthew Morris

people get paid to be cashiers
Not for long, thank god for selfservice
since when do you need to be smart to create value
But they still fulfilled an indispensable function of collecting payment. I cant come up one for a Jow Forums generic code monkey

Dylan Evans
Dylan Evans

Hello everyone. I have a question regarding careers in CS. I have the opportunity to study in an extremely mathematics heavy program with some CS attached or a program dealing entirely with CS. Will choosing the math-heavy program severely affect my ability to find a career in CS negatively? Are there any positions in particular that I would be less favoured to get hired for?

Ian Rivera
Ian Rivera

No.

Adrian Baker
Adrian Baker

Maybe you're holding it wrong.

>> "5" * 4
=> "5555"

Jaxson Gomez
Jaxson Gomez

depends on what you want to get out of it

Austin Murphy
Austin Murphy

You could get a job at M$ Research wanking over ivory tower vaporware.

Caleb Roberts
Caleb Roberts

Not even in something related to operating system design? Truth be told I don't know where I want my CS career to go, however I would still like to take the math option

Luis Butler
Luis Butler

I understand what you mean, however I guess I am mainly concerned with if whether or not employers will consider an application from a degree rooted in math instead of CS when applying to a CS job

Chase Evans
Chase Evans

what did you mean by this

Sebastian Clark
Sebastian Clark

what kinds of jobs are you looking for?

Matthew Clark
Matthew Clark

2ambiguous

"5".repeat(x)
is much clearer.

Kayden Reyes
Kayden Reyes

the point is people still get paid for a job even if it isnt the hardest or the most creative task

Kayden Fisher
Kayden Fisher

The problem is I'm not entirely sure what career I would like to pursue, so I would like to get a general overview of career types I would sacrifice with the math route.

Carson Smith
Carson Smith

repeat_this_string("5").by_many_times(5)

Chase Robinson
Chase Robinson

oh hey, it's Jai.

Jordan Allen
Jordan Allen

does it involve computers? study CS.

Luke Reed
Luke Reed

The math route is combined with CS.

Austin Cook
Austin Cook

what kind of degree will you get with it? a math degree?

Daniel Lee
Daniel Lee

Both are engineering

Alexander Ward
Alexander Ward

then i'd say do the combined route.

Cooper Young
Cooper Young

Thanks for the help

Charles Miller
Charles Miller

good luck and have fun

Camden Reyes
Camden Reyes

no one gives a fuck.
stop spamming because you can't paste your code properly.

Tyler Scott
Tyler Scott

dab:
push ebp
mov ebp, esp
push 0x00000035
push 0x35353535
mov ecx, [esp]
mov edx, 5
mov ebx, 1
mov eax, 4
int 0x80
mov esp, ebp
pop ebp
ret

Kevin Ward
Kevin Ward

dot call notation
I haven't seen that.

Parker Watson
Parker Watson

it was more a joke how Jon likes his

overly_descriptive_and_long_function_names()

Isaiah Ward
Isaiah Ward

(coerce #4(#\5) 'string)

Easton James
Easton James

If he streams his coding sessions then he probably needs to do that if he doesn't want to spend most of his time answering questions.

Isaiah Sanchez
Isaiah Sanchez

he means it would be awesome

Jonathan Bell
Jonathan Bell

Pretty sure it's just superior style. They're very hard to follow either way.

Brayden Anderson
Brayden Anderson

no, it means you'd be smart enough to write optimized code really really fast

Elijah Diaz
Elijah Diaz

I think the one that emphasizes math will lead to more interesting research opportunities.

Noah Rogers
Noah Rogers

redirect to stderr

Ryan Foster
Ryan Foster

people working on a cool project I wanna be a part in
they use Python
aaaaah,....
grumble grumble grumble
how do i get over my autistic fit and just get into it

James Rodriguez
James Rodriguez

you don't.
make your own projects in your choice of language that attracts people.

Cameron Davis
Cameron Davis

what is the project

Jaxon James
Jaxon James

What's the point if people have already made a base for it?

A mafia/werewolves site. I've been thinking of making my own version with my own ideas. Wanted to use Clojure to build a powerful system that allows people to make up their own roles without a programmer having to implement them and shit since it's what Lisps are good at. I am bad at front-end stuff though. But I have a vision. Maybe one day I'll make this work.

Nicholas Parker
Nicholas Parker

What's the point if people have already made a base for it?
that's the exact attitude that turned the web into a dumpster fire.

Jonathan Hall
Jonathan Hall

just use CLOS

Luis Anderson
Luis Anderson

Would Hy help?

Sebastian Reed
Sebastian Reed

I understand, but if you work with it for a few days, you may just get used to it.

Connor Diaz
Connor Diaz

I guess I'm part of the problem kek
If I use the JVM I can consider expanding on other platforms easily and all.
Ooooh that looks interesting. Hmmm.

Anthony Cox
Anthony Cox

I suppose. I don't know how much lisp experience you have, nor which flavor of lisp you prefer. If you like Common Lisp, there is ABCL. Scheme, kawa. Clojure, clojure. I don't think you can go wrong with any of them.

Zachary Barnes
Zachary Barnes

Someone has also tried to put Clojure's persistent data structures into Python. I haven't tried it so I can't speak to its usability.
github.com/tobgu/pyrsistent
See also
github.com/tobgu/pyrthon/

Gabriel Richardson
Gabriel Richardson

graalvm.org/
GraalVM is a universal virtual machine for running applications written in JavaScript, Python, Ruby, R, JVM-based languages like Java, Scala, Groovy, Kotlin, Clojure, and LLVM-based languages such as C and C++.

GraalVM removes the isolation between programming languages and enables interoperability in a shared runtime. It can run either standalone or in the context of OpenJDK, Node.js or Oracle Database.

Matthew Davis
Matthew Davis

I'll see what I can do. Honestly I'm just scared of properly getting into it because it's a daunting and I haven't done simpler things before. It's a bit of a complicated system I have in mind but if I make this work I'll feel pretty based, and I'll invite you guys to play some games and shit. I love that game, but the platforms to play it on are shit. I want something based that allows people to write roles and that it is interpreted as a set of actions by the server. That'd basically revolutionize everything that has been done so far. I feel pretty passionate about that shit in particular.

I'll look into it, thanks!

That sounds pretty based but isn't that a bit overkill for what I plan to do here?

John Gonzalez
John Gonzalez

isn't that a bit overkill?
I was just pointing out possibilities. You'll have to decide what is appropriate.

Juan Robinson
Juan Robinson

#4(#\5)
wtf since when can you do that?

Jeremiah Morales
Jeremiah Morales

So people prefer iterative versions of algorithms over recursive because of limited stack memory and the callstack, but does it matter at all if your algorithm runs in O(logn) time like binary search? Even a search on an array 2^32 in size would reach a depth at most 10. What advantage would using the iterative version be here?

Jonathan Miller
Jonathan Miller

SICP is outdated and absolutely useless in Anno Domini 2019. It's a meme for people to feel like a "real programmer". No one who gets paid to code, that was born in the last 30 years had bothered reading it. Just because some anime watching dullard shills it non-stop doesn't make it any more useful. Please stop recommending trash to new programmers, because it does more harm then good.
Cheers.

Attached: bjarne.jpg (62 KB, 200x245)

Carter Fisher
Carter Fisher

ok bye pajeet, have fun with your unenlightened mind

Chase Myers
Chase Myers

stfu bjarne and go read your sicp

Ethan Sullivan
Ethan Sullivan

t. filtered by 1.11

Daniel Turner
Daniel Turner

Is it a good idea to program with background noise, like music or a twitch stream?

Connor Moore
Connor Moore

I've been programming to programming streams lately, it's pretty comfy. I think you need low-excitement streams like it, or else you'll get distracted too often.

Ian Diaz
Ian Diaz

for me, it's porn.

Dylan Flores
Dylan Flores

This but ASMR.

Jeremiah Jones
Jeremiah Jones

Poker streams are pretty based. Some hands are pretty boring and you can have a peek at the more interesting hands and the background noise of the chips is just way too relaxing for me, but again im a weirdo.

Jaxon Mitchell
Jaxon Mitchell

Poker streams are pretty based.
fucking BASED taste my man.

Jeremiah Ortiz
Jeremiah Ortiz

learning about wildcards in generics and lambda functions, starting to finally get into what i would consider intermediate level programming

Eli Brooks
Eli Brooks

some sort of based chill memetronica helps me

Samuel Bailey
Samuel Bailey

sometimes.
you have to experiment to find what works for you, and when.
aside from music and streams, youtube has videos of rain, rivers, and literal streams.

Nathaniel Hughes
Nathaniel Hughes

ask your compiler writer, show me assembly. I don't know what optizations will be made in each case. If you know your bound then recursion works fine.

Attached: dont-use-recursion.png (95 KB, 736x264)

Luis Torres
Luis Torres

In theory a function call would canonically set up a new stack frame, and store the old one

push eax
call _foo
_foo
push ebp
mov ebp, esp
// ... function stuff
mov esp, ebp
pop ebp
push eax
call _foo
// ... etc

iterative could be

push ebp
mov ebp, esp
// entire loop
// no stack frames
// no resetting of registers for cleanup
mov esp, ebp
pop ebp
ret

Caleb Brown
Caleb Brown

Attached: use-recursion.png (14 KB, 944x74)

Jack Nelson
Jack Nelson

The answer is use what works for you and what you like.

Attached: use-recursion2.png (22 KB, 929x138)

Jonathan White
Jonathan White

What is a really strict javascript dialect that transpiles to native JS?

Landon Smith
Landon Smith

 boolean gf = false;

Juan Myers
Juan Myers

install Elm

Ian Wood
Ian Wood

elm, purescript

Ethan Young
Ethan Young

ReasonML

Austin Davis
Austin Davis

//boards.4channel.org/g/catalog#s=wdg
this thread is for real programming, thank you

Jason Watson
Jason Watson

TypeScript

Bentley Walker
Bentley Walker

maybe that's why he doesn't want to write javascript

Henry Young
Henry Young

joy* gf = nullptr;

Wyatt Allen
Wyatt Allen

I know I'm terribly late for the party, but:

Basically any other other sensible language that is not English
Indogermanic languages do that *all the damn time*:
English: The red Ball.
German: Der rote Ball.
Swedish: Den [röda] bollen.
Norwegian: Den [rode] ballen.
Icelandic: [Rauða] boltinn.

And due to the proto-indogermanic case system those languages are some of the most precise ones in the world:
Der Hund beißt den roten Ball => The dog bites the red ball.
Den Hund beißt der rote Ball => The red ball bites the dog.

Calling someone "American" for that is funny, because English has lost most of these inflections. It's much, much worse in proper indo-germanic languages.

David Diaz
David Diaz

rode
When does Jow Forums get some proper fucking UTF-8 support? This is embarrassing.

Isaiah Jenkins
Isaiah Jenkins

guys what do you do when you hit your git lfs quota on github
is there a way to just remove the files

Matthew White
Matthew White

using git
It's a meme.

Xavier Hernandez
Xavier Hernandez

ð for d and not th
i am disgusted

Jose Morgan
Jose Morgan

What are you on about?
en.wikipedia.org/wiki/Eth
In Icelandic, ð represents a voiced dental fricative [ð], which is the same as the th in English [th]at

When non-native English speakers don't learn English phoneme generation properly they may end up pronouncing "th" like a "d", true, but Icelandic does have both phonemes.

Isaac Price
Isaac Price

oh i didn't see
carry on

Asher Carter
Asher Carter

I think I understand your confusion now; it's about the sound shift, innit? Turning fricatives into plosives and vice versa is something that happens all the time in languages - take English "shi[p]" and German "Schi[ff]" for instance. Or "[th]ing" and "[D]ing". The reason why Persians refer to Persians as "Farsi", by the way, is because the plosive "p" turned into a fricative "f".

And the difference between "d" and "t" is only the voicing aspect: "d" is voiced, "t" is not. So I can totally see Icelandic being subjected to a sound shift that turned the "d" in "rauda" to "ð".

Carson Parker
Carson Parker

It's fine sometimes but annoying as fuck when its always used.

var asdf = new Asdf(); // based

var result = processContent(); // fucking faggot

Alexander Price
Alexander Price

Your first example is also bad because it's plainly evident what type it is.

Nathan Myers
Nathan Myers

what do you use?

Logan Cox
Logan Cox

do you need your repositories online or not?

Lincoln Powell
Lincoln Powell

mercurial

Isaac Carter
Isaac Carter

vim.
then how do you revert your mistakes
I don't do mistakes.

Jose Sanders
Jose Sanders

Not my point.

var something = new Dictionary<Dictionary<int, int>, string>();

vs

Dictionary<Dictionary<int, int>, string> something = new Dictionary<Dictionary<int, int>, string>();

Landon Wilson
Landon Wilson

yes to sync between devices

Lincoln Ramirez
Lincoln Ramirez

you don't know what you're missing, user.
it isn't about reverting mistakes.
it's about your editor showing you what changes you made since your last commit.

Logan Kelly
Logan Kelly

Please don't tell me that you get paid for your code.

typedef Dictionary<Dictionary<int, int>, string> SpecificDictionaryType;
SpecificDictionaryType something = new SpecificDictionaryType();

Andrew Sullivan
Andrew Sullivan

you don't know what you're missing, user.
I do. There was a time I used git, and that nearly broke my neck - and I don't miss this at all.

it's about your editor showing you what changes you made since your last commit.
So what? I don't do mistakes.

Michael Watson
Michael Watson

I think the left-right declaration has room to change and optimize in syntax.
REE WE READ LEFT TO RIGHT, STOP
eh, there's plenty of ambiguous left|right to left|right things in programming.

Nathan Phillips
Nathan Phillips

do I dare ask how git nearly broke your neck?

Kayden Edwards
Kayden Edwards

Enjoy typedefing for every single types retard. C and the C cult is obsolete.

Benjamin White
Benjamin White

Basically due to reasons that I never found out how they happened the repository was left in a corrupted state - so corrupted that I lost a bunch of commits that I had checked in previously.

I don't remember how, it's been four years, but somehow I managed to extract the rest of the sources and ditch git altogether, then had to do an all-nighter to get the project to the state it was before. I never looked back. Complexity is the enemy.

Josiah Long
Josiah Long

blaming you being an idiot on git
wwwwwww

Xavier Ortiz
Xavier Ortiz

Enjoy typedefing for every single types retard.
declarative types are worse than having to write each and every specification all day, every day
The autism is strong in this one.

Adrian Morgan
Adrian Morgan

If your language can infer what type something is, is there an editor feature that could display the type where "var" is written?

Landon Perez
Landon Perez

I see. I use git but I don't rely on it for backup purposes.

Jose Hall
Jose Hall

I don't do mistakes, can't you read?
With git I nearly lost the project in less than a year. With git I didn't in four. Only someone with crippling autism would be so insane that they'd actually argue for git here; but luckily people don't have to listen to them.

Autistic rage is the best rage.

James Hall
James Hall

I don't do mistakes, can't you read?
you're a gem

Levi Gomez
Levi Gomez

Do you mind if I ask what the project is? I'm not requesting specifics.

Grayson Thompson
Grayson Thompson

Modern languages have proper type inferences. Furthermore unlike obsolete arcane languages like C, you are not limited to only using auto/var notation, you can write actual type if you want to. Otherwise you don't have to write Car* car = new Car();

Isaiah Bailey
Isaiah Bailey

A central library for all sorts of shit that I worked on over the years that I figured would do alright in other projects as well. The enemy next to complexity is redundancy, after all. I would generalise the code and make it ready for specific memory allocators that require a little bit more input than malloc does, but repay you with zero-copy reallocations.

Christopher Gutierrez
Christopher Gutierrez

How do you suggest distinguishing mutation from creation?

Parker Myers
Parker Myers

don't allow globals
cache the scope

Brandon Brooks
Brandon Brooks

Furthermore unlike obsolete arcane languages
I stopped reading here. Your hatred is seeping through the words.

Owen Morgan
Owen Morgan

I don't understand the question.

Matthew Green
Matthew Green

I see.

Bentley Adams
Bentley Adams

What do you guys program? I enjoy it but other than video games I can't think of anything to program.

Attached: hysteroical-retatde.jpg (54 KB, 641x479)

Julian Russell
Julian Russell

cniles be like "C++ is bloated" by then write code like

#define abs(x)    __abs_choose_expr(x, long long,                \
__abs_choose_expr(x, long, \
__abs_choose_expr(x, int, \
__abs_choose_expr(x, short, \
__abs_choose_expr(x, char, \
__builtin_choose_expr( \
__builtin_types_compatible_p(typeof(x), char), \
(char)({ signed char __x = (x); __x<0?-__x:__x; }), \
((void)0)))))))

#define __abs_choose_expr(x, type, other) __builtin_choose_expr( \
__builtin_types_compatible_p(typeof(x), signed type) || \
__builtin_types_compatible_p(typeof(x), unsigned type), \
({ signed type __x = (x); __x < 0 ? -__x : __x; }), other)

Cooper Morris
Cooper Morris

can't differentiate between abstraction and bloat
that blinded by hatred
Your existence must be a walking nightmare.

Good.

Jacob Jones
Jacob Jones

Porn video/image/story/etc. generator.

Andrew Lee
Andrew Lee

Don't bother them. Cnile boomers are the laughing stock nowadays.

Logan Butler
Logan Butler

imagine having actual features to build your abstractions rather than having to rely on no less than 4 different compiler extensions

Juan Price
Juan Price

Features are bloat unless they are in C

Jonathan James
Jonathan James

Imagine simply not seeing what the compiler does because everything is hidden behind the code generation. abs is still a standard symbol present everywhere; it's just that the implementation can differ.

Your only arguing point here is literally visibility of the code - a.k.a. "I don't like seeing what my code does ding dong schling schlong". See

Luis Perez
Luis Perez

relying on implementation defined hacks is a good thing because one specific compiler configuration worked for me

Attached: brainlet.jpg (18 KB, 558x614)

Brody Brooks
Brody Brooks

Have you ever tried looking at what gcc spits out at -O2? It looks nothing close to your C code because it’s been reordered and auto-vectorized to shit.

Dylan Bell
Dylan Bell

Dude, you're suffering from cognitive dissonance.
Whether "specific compiler configurations" work in code or behind the binary generation isn't the point. As long as a symbol does what the standard says it does I couldn't give a fuck; and if it doesn't, then that's not a me problem, but a compiler problem.

Oh, and guess what: if there are bugs with the "specific compiler configuration" approach, then I can fix them without having to recompile the compiler.

Ryder Jenkins
Ryder Jenkins

Imagine simply not seeing what the compiler does because everything is hidden behind the code generation.
Hate to break it to you but no cnile know that either the moment a single optimization flag is enabled.

Another Cnile cultist. Look at him and laugh. Pretty sure his C compiler is written in C++ too. haha.

Adrian Flores
Adrian Flores

As long as a symbol does what the standard says it does I couldn't give a fuck
this is nothing to do with the standard, that macro is user defined in the linux kernel. it's not part of the compiler or standard library implementation.

Noah Smith
Noah Smith

Yeah, and? That's not what I'm arguing against.

The statement is: , and the only thing this statement argues is that everything is better if it's put behind the code generation barrier of the language - which is pretty dumb all things considered because of what I've already written here:

I mean, think about this from a compiler builder perspective: they could just as well build __builtin_abs and have its implementation be hidden inside the compiler. Would the poster then complain that C is hiding everything from him? Of course he would, because he's not arguing rationally; he's just severely autistic.

Henry Carter
Henry Carter

and the only thing this statement argues is that everything is better if it's put behind the code generation barrier of the language
no dumbfuck, I'm arguing that C is defective because it lacks standardised tools to do things that are necessary for the purposes C is used for
I mean, think about this from a compiler builder perspective: they could just as well build __builtin_abs and have its implementation be hidden inside the compiler.
this is not a compiler implementation of abs, it's a user one. this is not part of a standard library.

Logan Thompson
Logan Thompson

so enraged that he doesn't even make sense anymore
Dude, I have literally no idea what you're trying to convey. How about you get the foam from your mouth and your fingers first, and then try to do it again without relying on telepathic OOB data?

this is nothing to do with the standard, that macro is user defined in the linux kernel.
Huh. Didn't know that; since abs is a standard symbol I assumed it was shipped with the compiler - which makes its existence in the kernel pretty dumb.

Luke Rivera
Luke Rivera

It's hardly the only place you'll see GNU C extensions used within the kernel.

Ian Thomas
Ian Thomas

Name 1 professional programmer that as of ~5 years ago actually argues for a preprocessor.

Ethan Moore
Ethan Moore

I'm arguing that C is defective because it lacks standardised tools to do things that are necessary for the purposes C is used for
Only that abs is a standard symbol already. If Linux defines its own symbol that's pretty dumb, but it has nothing to do with the language.

no dumbfuck
You cannot hold a civil discussion for your dear life. You know what, autist? I'm done with you. Go ahead and insult people some more; I'm sure they'll start listening if you just scream at them loud enough.

Gavin Gonzalez
Gavin Gonzalez

new thread when? :3

Ayden Parker
Ayden Parker

Only that abs is a standard symbol already. If Linux defines its own symbol that's pretty dumb, but it has nothing to do with the language.
there are over 600 instances of the typeof extension alone being used in linux
this isn't a single symbol subsuming stdlib functionality, it's utterly pervasive

Dominic Perry
Dominic Perry

this guy

Asher Fisher
Asher Fisher

new thread

jowforums.com/thread/71855261/technology
jowforums.com/thread/71855261/technology
jowforums.com/thread/71855261/technology

Disable AdBlock to view this page

Disable AdBlock to view this page

Confirm your age

This website may contain content of an adult nature. If you are under the age of 18, if such content offends you or if it is illegal to view such content in your community, please EXIT.

Enter Exit

About Privacy

We use cookies to personalize content and ads, to provide social media features and to analyze our traffic. We also share information about your use of our site with our advertising and analytics partners.

Accept Exit