Old thread: Haskell is the language of choice for young POC. It's lazy. It curries a lot. It's not very productive. It consumes lots of resources so that those bad old CIS processes will just have to learn to share.
The incremental API updates and platform specific extensions are poorly designed.
Tyler Sanders
you have no reason to give a shit about extensions unless you're an AAA gamedev
Julian Mitchell
Now that I have spent two days tidying up and refactoring my code so that it has a more coherent structure instead of being as rush-to-the-deadline hack job, I can see many clear and obvious ways of improving performance, adding new features, and replacing dirty workarounds with much more elegant code.
It feels like combing tangles apart, an extremely satisfying experience.
Aaron Stewart
Hi, I saw 1a bonus problem on a learning problem set that asked for a way to define a function which creates the power set of a given set, and the professor had written a note that he wasn't sure this was possible, but to give it a go. (there were some constraints)
I figured that if you wrote a function which took (A,B) checked if A is a subset of B
and then defined a set which was the set of things which were a subset of B, this function would do the thing, but there would be no way to see if this ever terminated...
anyways does anyone have a way to write this function in haskell? you can either post the code, or just a list of subfunctions and i can figure out how to write them.
Henry Gomez
C++ fags, I need help with something that has been bugging me since the first day I started learning C++.
Heap stack segment,by that I mean the infamous dynamic memory allocation.
I have a program that demands to load a text file (let it be an excel file) with a list of people, adresses and other numerical datas per column.
Now if my program has to save each person(from that file) in an array of struct. How exactly do I program said array to have a variable size. I'm always imagining something like Struct[x] { ... }
Where X would be determined dynamically by the number rows in the excel file I'm loading.
This is just an exemple, I have never understood how to make a C++ program where the array memory allocation would be dynamic, somehow setting a variable instead of a constant number for the array, makes the program crash. Why is that?
Jason Wilson
>and replacing dirty workarounds with much more elegant code This bit especially, since once I see it clearly laid out I can often see that a workaround in one place was only necessary because of a hack in another, so I can remove both at the same time.
Gabriel Morales
t. webdev
Hunter Gray
>touhou pic >not video games ??????????????
Eli Richardson
what was the name of that one dickgirl on male where konata fucks that one guy?
cute ANIME girl what's the point of the inner 9cel though
Christopher Rodriguez
Is it bad to use multiple print statements for clarity instead of just one? Does that slow things down? Also I was told pointers are preferable to regular variables in situations where you plan on referencing something repeatedly as opposed to making copies of whatever variable it is (like reusing the same tree model over and over in a game by referencing the address). I feel like I understand the concept but I still can't come up with a specific use-case is my head, and when I think, "would this be better done with a pointer?" I can't come to an answer. Is this just one of those things that you simple wake up one morning and finally understand?
>Does that slow things down? typically it does not, due to buffered I/O. strace your process to confirm (and strace it with different inputs and outputs; typically as well, the buffering varies depending on if a terminal is attached to the fd).
Leo Robinson
What kind of frames should I get for my glasses?
Christopher Edwards
where does opera tenet even come from yes, now you have an exercise to do
I heard it's one of teh best languages to make games, it also seem to be an important language in the laboral world. They are currently teaching me C on my first semester on Informatic Engineering at my university.
Chase Scott
LASIK
Cameron Gray
printing once would probably be faster but appending strings is probably slow anyway (unless they're known statically) with pointers yeah if it's bigger than a few ints, but obviously if you pass a pointer then any modifications you do will apply to the original thing as well with a tree though are you sure you'd be doing a deep copy in the first place?
Dylan Gray
>Is it bad to use multiple print statements for clarity instead of just one? Does that slow things down? In my experience printing to stderr flushes the buffer to screen. Regular printfs should be fine. Alternatively, you could reformat your single printf with line continuations to be more comprehensible.
Just concentrate on learning C for the time being then. Try to pick up C++ after but understand 1) the semantics are similar but the idioms are completely different and 2) nobody can agree what good C++ looks like.
Anthony Ramirez
thats scary glasses are more natural and safe :(
Kayden Miller
A lot of us are in the same boat fren. It's fine.
Andrew Green
>while being 28kv 28 kilovolts?
Nicholas Gray
Powerset isnt that complicated, what are the constraints?
Jayden King
yes, 28kilovolts of virginity potential difference
Jason Ramirez
This is one of the stages of accepting opengl into your life.
Eli Mitchell
The most common issue I find while cleaning up my code is that I've been too defensive and some values get checked a validated half a dozen times between changes.
Chase Jackson
What is the most gratifying-centric programming language and why is it python?
Aaron Phillips
Because python programmers are the most pathetic and have the most room to be gratified
Ethan Williams
>dynamic typing >anything but training wheels for your mind oh but you can go faster vs. falling right over for lack of balance and you can 'get bike-riding' faster, rather than slowly having to learn how to balance yourself first
Nicholas Bennett
The tree scenario was just an example I was given, the image I had in my head was something like a bush in super mario being called repeatedly, but maybe that's not right. I guess I'll just try to structure my statements in a way that isn't too excessive, looking back, I probably could fit it all in one statement and just split the lines. Reading all of this has made me realize I understand even less than I thought I did, I'll just focus on getting things to work in a sensible way first, then worry about making it better, thanks anons.
Liam Ross
same, except i'm 23
Isaac Wright
>tfw you got so low that your own mother tells you "whats wrong with you, go find something to fuck, i cant believe you are making me to talk to you this way"
Daniel Martin
Are you me?
Bentley Campbell
ya mom's a ho. nice.
Andrew Nguyen
My mom used to tell me to find gf and a job and to lose some weight.
I figured the first would be easier to achieve after I do the other two first, so I got a job and became Jow Forums. Now my mom tells me my thighs are too thick.
1. join US military 2. when they sit you down in a room and say "sign this if you want the GI Bill", sign it 3. leave US military 4. get paid to spend three days in school for 2 years 5. nice relaxing vacation ending in HR-bypass papers 6. get a job don't get a gf while you're in the military though.
Angel Walker
>Now my mom tells me my thighs are too thick. she's just mirin' and jelly she can't squat lmao 3pl8
Julian Robinson
ok shes just being asshole at that point
and srsly they are really selfish ina sense, as in demanding me to get a wife and make her grandkids
Lincoln Rodriguez
accuse her of moving the goalposts
Easton Taylor
please leave US military, we all know it's you posting >don't get a gf while you're in the military though good advice though
Juan King
LMAO tell her she should do some squats so that she can move the goalposts at all
Luke Gray
>The Huffman codes for the two alphabets appear in the block immediately after the header bits and before the actual compressed data, first the literal/length code and then the distance code. I really wish I could read a sentence like this once and understand what the fuck
I't the first time I'm working on a big project in git with a group. How do you politely tell someone that their variable naming sucks dicks and then need to do something about it?
Isaiah Gonzalez
If C+++ is such an awful language to work with, why do so many developers and companies still use it (e.g. AAA game developers).
James Powell
are they one of these dudes bool m_bMyBool_bool;
Hunter Morris
Because most of the existing game engines are written in C++
Nathan Hall
How long after a job offer do you actually get the contract in writing?
Caleb Powell
But why hasn't anyone bothered to rewrite them in a less painful language (Go, Rust)?
Juan Morris
No, I wish. It's more like int a; int a1; char t; char[] z;
Nicholas Gutierrez
Making a game engine in Go or Rust would be considerably more painful
Nathan Powell
they're obviously a haskell programmer at heart
Carson Anderson
I see nothing wrong here.
Caleb Adams
>But why hasn't anyone bothered to rewrite Because it's a shit load of work for not enough gain. Prove me wrong.
Thomas Baker
>for not enough gain arguably video game development is not a gain at all
Brandon Cooper
video games are the only things worth programming, at least they make people happy instead of giving people autism like linux
Wyatt Bailey
Unless it's for globals, that's completely fine. The length of the variable name should scale logarithimcally with the scope.
Aaron Gomez
>literally contributing to the downfall of man and decadence no thanks
Asher Hughes
tfw video games will be (are) the only escape from your 12/7 low wage slave job in a concrete hellhole with no blue or green in sight
Ian Scott
have you ever wondered what the end goal of civilization is more work? no, more leisure time your ancestors died so you could play video games
Logan Roberts
This is cuck mindset. I will not rest until the stars are populated by my children.
Kevin Reyes
yeah and taking care of children is for women, don't see what that has to do with the subject although I suspect you're probably pretty far behind when it comes to breeding
Angel Hall
>end goal of civilisation there isn't one retard, coming up with problems is as important as solving them
Isaac Watson
>end goal of civilization is anal sex
Parker Kelly
>coming up with problems is as important as solving them
>society progresses to the point where technology can provide for our every need and there is no scarcity of resources or need to work >"fuck, we don't have enough problems" >nuke all of it to the ground, back to the stone age >"maybe you don't get it yet but you will one day"
Ian Gutierrez
The cuck mindset is going about your fatherly duties, blindly niave that your wife is getting railed and that your are a fucking loser. Don't confuse it with the fetish.
You actually sound more like the canonical definition of a cuck.
Bentley Ross
exhibit A: a braindead communist
Landon James
because it's the least awful language that still allows you some sane level of productivity and development speed without seriously negatively effecting performance the current state of everything is shit it has been shit for decades it will always be shit
well, at least until 2023/2026 or whenever the committee decides to actually integrate the metaclass proposal into the standard and c++ finally becomes perfect
Jason Watson
technological progress is communism? are you American by chance?
Nolan Bell
look dude it's obvious from your post, there's no point lying to everyone and embarassing yourself by taking only two words from your post (not even next to each other mind you) and saying you're being misjudged
Angel Johnson
'no scarcity' is communism.
Robert Hall
what is it with these idiots who think slapping one more feature onto the most bloated language of all time will suddenly make it good