|
"C++ is hard, everyone knows that" *develops haskell app with 5,000 line custom monad for fun*
|
# ? Feb 28, 2013 04:01 |
|
|
# ? May 28, 2024 14:49 |
|
Bream posted:Ha ha, disregard my dumbs. I thought you were saying that nobody was worrying about gc in c++ because nobody needed c++, not nobody needed gc. it is also true that nobody needs c++
|
# ? Feb 28, 2013 04:09 |
|
Base Emitter posted:that's right, programming in c++ magically causes garbage collectors to behave exactly as you want them to and no bideogmae engine ever supports other languages for their apis you may be able to get away with objective c for some crappy 2d game with a handful of sprites but there's no way you can get away without any c/c++ for anything of any sacle
|
# ? Feb 28, 2013 04:16 |
|
people talk about c++ like it raped their dads or something i'm glad i can use it instead of fortran?
|
# ? Feb 28, 2013 04:19 |
Just installed a vim plugin that puts a combo gauge in the lower right side of the screen that goes up the more I type without touching the arrow keys. Once it is full, I tip the keyboard sideways, the window gets animated flames at the bottom, it automatically puts in a bunch of macros, and the layout switches to left-handed programmer dvorak.
|
|
# ? Feb 28, 2013 04:19 |
|
spongeh posted:you may be able to get away with objective c for some crappy 2d game with a handful of sprites but there's no way you can get away without any c/c++ for anything of any sacle what about things that are useful, such as not video games
|
# ? Feb 28, 2013 04:21 |
|
Deacon of Delicious posted:what about things that are useful, such as not video games you mean like operating systems? cause ive got some bad news...
|
# ? Feb 28, 2013 04:25 |
|
YOSPOS BC CPP
|
# ? Feb 28, 2013 04:25 |
|
Deacon of Delicious posted:what about things that are useful, such as not video games I would rather play a video game than use a web app, so I guess the metric for utility is subjective.
|
# ? Feb 28, 2013 04:31 |
|
hey pl thread!! what is objective-c and why should i care?
|
# ? Feb 28, 2013 04:40 |
In Corinian C we don't say x.hello() or x->goodbye(), we say [x salame]
|
|
# ? Feb 28, 2013 04:42 |
|
Shinku ABOOKEN posted:hey pl thread!! what is objective-c and why should i care?
|
# ? Feb 28, 2013 04:49 |
|
Deacon of Delicious posted:what about things that are useful, such as not video games why yes a multi-billion dollar industry that pushes the hardware envelope in just about every facet of the tech industry forward isn't useful. fly away, troll.
|
# ? Feb 28, 2013 04:50 |
Shinku ABOOKEN posted:hey pl thread!! what is objective-c and why should i care? it's a language by two guys named love and cox
|
|
# ? Feb 28, 2013 04:51 |
|
Gazpacho posted:"C++ is hard, everyone knows that" *develops haskell app with 5,000 line custom monad for fun* a little but this music torrent site was having trouble scaling with the old tracker software they were using. they let some guy spend like months to a year trying to write one in haskell and then he disappeared so the head admin was like what the gently caress and wrote one in a weekend in c++. modulo some tweaks that's what they use today. makes u think
|
# ? Feb 28, 2013 04:57 |
|
spongeh posted:why yes a multi-billion dollar industry that pushes the hardware envelope in just about every facet of the tech industry forward isn't useful. fly away, troll. c++ is used to make toys such as video games, does it count as a toy language?
|
# ? Feb 28, 2013 05:04 |
|
gucci void main posted:it's a language by two guys named love and cox https://www.youtube.com/watch?v=u6e0abCt1ww
|
# ? Feb 28, 2013 05:05 |
|
Deacon of Delicious posted:c++ is used to make toys such as video games, does it count as a toy language? Adventure was written in fortran, so
|
# ? Feb 28, 2013 05:10 |
|
MeruFM posted:i still think minecraft is impressive in that multiplayer is not just completely broken. the multiplayer is infamous for being its most broken part are physics still tied to the renderer
|
# ? Feb 28, 2013 05:23 |
|
they unified the single player and multiplayer engines, now they're both equally broken, with an improvment in multiplayer and worsening in single player
|
# ? Feb 28, 2013 06:10 |
Internaut! posted:yea but doesnt minecraft pin a modern machine while rendering like 1000 cubes with low res textures It's not LWJGL's fault and it's not even Notch's fault either really cuz he spent about a half a year on engine stuff and that's all your supposed to do when you're making a low budget one-person game. Rendering Minecraft stuff is actually a pretty interesting problem. You could rewrite the whole thing in C++ and it might double the performance, but that's only an extra hundred meters in draw distance because the cost scales cubically (unlike in most other games). If you look at those indev games that are basically Minecraft+Better Graphics, you'll see they're using cheap tricks to make the game look more detailed. The lighting is Quake-style, the fog is even worse, or they're using a partitioning scheme that will slow the engine to a halt as soon as you start digging holes and building castles. But if somebody who actually knew what they were doing worked on it, they might be able to improve its big-O.
|
|
# ? Feb 28, 2013 06:16 |
Bream posted:Also serious q. are Minecraft's octrees sparse? What about in the woods with no one around? No cuz then you're storing a bunch of stone blocks in a tree and then you have to do a neighbor lookup every time you try to determine if the block is exposed to air, figuring out where the rivers go, etc. Hundreds of spergs have tried to use octrees but it doesn't work when literally every square meter is an 8 bit enum value.
|
|
# ? Feb 28, 2013 06:25 |
|
Shameproof posted:No cuz then you're storing a bunch of stone blocks in a tree and then you have to do a neighbor lookup every time you try to determine if the block is exposed to air, figuring out where the rivers go, etc. Hundreds of spergs have tried to use octrees but it doesn't work when literally every square meter is an 8 bit enum value. i think most of the speedups early on were from optimizing how chunk data was stored and read. I think scaevolus used hilbert curves to reorder chunks to improve locality of data which had a nontrivial effect on speed. edit: my interest in minecraft stopped around when people started experimenting with shaders. FamDav fucked around with this message at 06:48 on Feb 28, 2013 |
# ? Feb 28, 2013 06:45 |
|
FamDav posted:i think most of the speedups early on were from optimizing how chunk data was stored and read. I think scaevolus used hilbert curves to reorder chunks to improve locality of data which had a nontrivial effect on speed. https://www.youtube.com/watch?v=JpksyojwqzE
|
# ? Feb 28, 2013 07:12 |
|
FamDav posted:i think most of the speedups early on were from optimizing how chunk data was stored and read. I think scaevolus used hilbert curves to reorder chunks to improve locality of data which had a nontrivial effect on speed. not even that fancy. mcregion stores (up to) 1024 chunks per file instead of one chunk per file. that's it.
|
# ? Feb 28, 2013 07:22 |
|
pseudorandom name posted:not even that fancy. mcregion stores (up to) 1024 chunks per file instead of one chunk per file. that's it. i was talking about optifine. mcregion fixed the issue of minecraft generating a file per chunk.
|
# ? Feb 28, 2013 07:26 |
|
Shinku ABOOKEN posted:hey pl thread!! what is objective-c and why should i care? its the C programming language with enhancements brought to you by the Love-Cox team
|
# ? Feb 28, 2013 07:30 |
|
hmmm I see someone else has already made that joke
|
# ? Feb 28, 2013 07:31 |
|
the best thing steve jobs did was trick people into writing C in 2013
|
# ? Feb 28, 2013 07:32 |
|
objective-c is smalltalk with segfaults. also it's not real oo
|
# ? Feb 28, 2013 08:45 |
|
Nomnom Cookie posted:objective-c is smalltalk with segfaults. also it's not real oo square loving brackets for miles
|
# ? Feb 28, 2013 08:54 |
are people still going on about minecraft, jesus
|
|
# ? Feb 28, 2013 09:52 |
|
wow, that's amazing and a good demonstration of what's possible with voxels that traditional 3d engines would struggle with and most likely do using a 2D post-processing shader instead spongeh posted:i'm pretty sure minecraft is using the giant state machine of hate style of opengl, but i thought that modern opengl, and opengl es at least gave you the option to avoid that. although i guess it still exists, and it probably seems better just by comparison. the fixed function pipeline is gone, replaced with the programmable shader pipeline, but as an API that just trades one bunch of global state for another even webgl, which isn't beholden to strict backwards compatibility and seems to be toying with the idea of objects a little bit, still looks like: JavaScript code:
|
# ? Feb 28, 2013 10:38 |
|
webgl is such a ridiculous idea. lucky google got distracted by the madness of nacl instead
|
# ? Feb 28, 2013 10:44 |
|
nerds always get mad when I tell people that Java is a good first PL. certainly I agree that, like most computing platforms, the java platform is horrible garbage largely due to mismanagement by its parent company, Oracle. but it is a good entry point to programming imo. and just cause someone learns programming in java doesnt obviate them using java in the future. am I a bastard for thinking this? my first compiled language was C Juul-Whip fucked around with this message at 12:12 on Feb 28, 2013 |
# ? Feb 28, 2013 12:02 |
|
Cybernetic Vermin posted:webgl is such a ridiculous idea. wonder if someone got really mad when webgl replaced glGenTextures() with gl.createTexture()
|
# ? Feb 28, 2013 12:35 |
|
THC posted:nerds always get mad when I tell people that Java is a good first PL. certainly I agree that, like most computing platforms, the java platform is horrible garbage largely due to mismanagement by its parent company, Oracle. but it is a good entry point to programming imo. having taught on introductory programming languages for a couple of years my experience is: java and c both work great for different reasons, python does not work as well as one would expect relatively primitive operations are helpful for understanding. for example the ugly old C for-loop is perfectly pedagogical and can quickly be fully understood in all its parts, whereas the python for-loop is a constant problem, with students being confused about lists and sequences, often confusing the range idiom with fixed syntax, etc. it is also a lot harder than one thinks to teach language subsets unless the subsets are very cleanly separable, and both c and java work out reasonably well there
|
# ? Feb 28, 2013 12:50 |
|
also the python block indentation style is hugely annoying for programming beginners since they will spend a lot of time experimenting with small changes and maintaining correct indentation is not really a good use of their time at that point. plus of course the python maintainers are retarded and has the interpreter error out if you use a character outside of the range 0-127 in a source file without a #coding: comment at the top, including inside comments. of course this used to work, but the python maintainers feel that things working is a bad goal to have so they added some extra code to make sure that the average students program stops running with an obtuse error message and a reference to a PEP when they are commenting and happen to insert an ä. i am angry irl now and i am not even doing the python course this year
|
# ? Feb 28, 2013 13:10 |
|
Teaching algorithms and data structures in C is good, having programmers write their very first programs in some non-awful asm (i.e. not x86) is better, maybe even hand-assemble an instruction or two. The closer their mental model of a computer is to "a machine made of many simple parts" and the further away it is from "an incomprehensible mystic construct you chant memorised spells at" the better Sapozhnik fucked around with this message at 13:21 on Feb 28, 2013 |
# ? Feb 28, 2013 13:18 |
|
|
# ? May 28, 2024 14:49 |
|
yes I know you'll be using AutoCAD and Matlab for all your differential equation needs in practice and none of the interesting ones can be solved analytically anyway, do your loving differential equations homework - things nobody ever has to say to a mech eng class ever
|
# ? Feb 28, 2013 13:20 |