[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

/dpt/ - Daily Programming Thread

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 350
Thread images: 35

File: lambda cube.png (6KB, 321x294px) Image search: [Google]
lambda cube.png
6KB, 321x294px
What are you working on /g/?

Which vertex from whence do you work?
>>
>>56109811
>not linking the previous thread

Way to go, faggot.
>>
>>56109811
>What are you working on?

Nothing, because all the good ideas I have require web front end competence which I neither have nor want.

So instead I sit here shitposting and writing snippets for people to keep my brain from shutting down.
>>
I'm on the lambda tesseract
>>
writing a C library, what naming convention should I use?
foo_doStuff() or fooDoStuff() or foo_do_stuff()? foo is the library name
>>
>>56109857
Definitely foo_do_stuff().
>>
File: 1430853197680.png (331KB, 474x432px) Image search: [Google]
1430853197680.png
331KB, 474x432px
>muh lambdas
>>
>>56109883
>>muh types
>go back to your ivory tower faggot

>>56109837
>linking trash

>>56109844
No you aren't
>>
>>56109857
STB uses foo_do_stuff so I'd recommend that. Make sure your library is all included in a single header file too.
>>
Last Thread: >>56103011
>>
I need help with api design... Working on lua 2D api for my engine, its pretty early and i have some work to do like port over to OpenGl, here are functions in lua with some comments
Any input would be greately appreciated
http://pastebin.com/tRqXn3tL
>>
Why are the only two kinds of people that post on /dpt/ elitist functional types that never do anything and dumb imperative/OO types that are perpetually perfecting their dumb engines.

This has the makings of some kind of sitcom.
>>
>>56110017
>dumb imperative/OO types that are perpetually perfecting their dumb engines
What are you even talking about, slut?
>>
>>56110017
I disagree that evangelizing a superior programming paradigm is 'elitist'.
>>
>>56110017
Why are you looping together imperative and OO? I write imperative code but it's absolutely not OOP. OOP is fucking retarded and only slavering morons write that that bullshit.
>>
>>56110017
There's nothing elitist about OP
>>
File: [tilting increases].png (27KB, 500x500px) Image search: [Google]
[tilting increases].png
27KB, 500x500px
>>56110039
>>
>>56110063
>OOP is fucking retarded and only slavering morons write that that bullshit.
Holy shit, I can actually see a bit of your unemployed neckbeard at the edge of your post.
>>
>>56109811
I have transcended types.

There is only lisp.
>>
>>56110017
You doesn't seem to understand the context and meaning of the terms you use.
>>
>>56110063
Please tell me what is wrong with OOP.
>>
>>56110093
Thinking in terms of objects and messages
>>
>>56110079
Fuck off mongrel. I bet you unironically code in Java.
>>
>>56110106
objects are basically structs bundled with relevant functions, there is literally nothing wrong with OOP
>>
>>56110129
There's a difference between thinking with records and thinking with objects and messages
>>
>>56110129
that's not OOP at all

you just described simple interfaces
>>
>>56110093
https://mollyrocket.com/casey/stream_0019.html

> We all know how to program in C++, don’t we? I mean, we’ve all read a selection of wonderful books by the gaggle of bearded fellows who defined the language in the first place, so we’ve all learned the best ways to write C++ code that solves real-world problems.

>First, you look at the real world problem — say, a payroll system — and you see that it has some plural nouns in it: “employees”, “managers”, etc. So the first thing you need to do is make classes for each of these nouns. There should be an employee class and a manager class, at least.

>But really, both of those are just people. So we probably need a base class called “person”, so that things in our program that don’t care whether you’re an employee or a manager can just treat you as a person. This is very humanizing, and makes the other classes feel less like cogs in a corporate machine!

>There’s a bit of a problem, though. Isn’t a manager also an employee? So manager should probably inherit from employee, and then employee can inherit from person. Now we’re really getting somewhere! We haven’t actually thought about how to write any code, sure, but we’re modeling the objects that are involved, and once we have those solid, the code is just going to write itself.

>Wait, shoot — you know what? I just realized, what if we have contractors? We definitely need a contractor class, because they are not employees. The contractor class could inherit from the person class, because all contractors are people (aren’t they?). That would be totally sweet.

>But then what does the manager class inherit from? If it inherits from the employee class, then we can’t have managers who work on contract. If it inherits from the contractor class, then we can’t have full-time managers. This is turning out to be a really hard programming problem, like the Simplex algorithm or something!
>>
>>56110141
if you say so
>>
>>56110129
>>56110141
and even then you don't really think in terms of records, you use them
you think for yourself
>>
>>56110129

There is nothing wrong with using encapsulation for some thigs, like data structures. But using it everywhere like some retarded pajeet or java is sick. Also you have problems with shared state and its ugly and gaah. You should write imperative code with focus on pure functions and only use encapsulation when dealing with strongly coupled data type like binary tree or linked list where it makes sense
>>
the way i store the json tree data made it slightly difficult to get access to the children nodes through php, but managed to do it

75% done with this
>>
>>56110159
i don't really disagree, just that i think it's ridiculous to black-and-white denounce all forms of OOP
>>
>>56110116
You'd lose that bet.
>>
File: allowmeto.webm (609KB, 1026x878px) Image search: [Google]
allowmeto.webm
609KB, 1026x878px
>>56110171
forgot vid
>>
>>56110178
it's not ridiculous
telling yourself to always think in terms of objects and messages is ridicuklous
>>
>>56110150
Typeclasses
>>
>>56110178
Well idea of pure OOP is flawed, what happens when you have huge graph of classes that have to share states? You either pass them instances in which case you might as well have written a function or make those ungodly ManagerClass, FactoryThis and that and you increase complexity.
>>
>>56110186
nice strawman argument
>>
>>56110198
You use composition
>>
>>56110192
Why not just have an enum that is employeeType and then in relevant bits of the code you check if it's a manager or a contractor?
>>
>>56110205
>strawman argument
you don't even know what OOP is
>>
>>56110219
To me, that would be less readable.
>>
>>56110210
You still have problem of shared state and cross references. Idea of encapsulating common methods in a class like Animal breaks down in large projects where you end up with some class Screen having reference to Player which has nothing to do with player.
Its like class Animal having reference to Jpop.
>>
>>56110225
>>56110205
>>56110198
>>56110150

Anons, why are you trying to argue about something that doesn't have an agreed-upon definition?

Three different people could define OOP and how it relates to how they program in different ways, and then those 3 anons proceed to argue about OOP based on only their own interpretation of what they think it is.

What is the point?

Why are you attempting to argue a point that you, nor the other anon will ever concede?
>>
>>56110150
SHART IN THE MART
>>
>>56109811

http://45.55.174.18:8080/

Node JS + Bootstrap.
>>
>>56110290
OOP is objectively shit, end of story. If your first thought when trying to model a problem is to plan out classes instead of just writing the code that solves the problem, you're a meme programmer.
>>
>>56110290
Yes you are right

OOP is so flawed that you have 100 patterns and new methodology how to write OOP programs every year.
>>
>>56110317
>>56110318
you're pathetic
>>
OOP isn't even necessary.

https://apocalisp.wordpress.com/2009/08/27/hostility-toward-subtyping/
>>
>>56110317
>>56110318
Anons, I think OOP is shit, too.

Again, why are you trying to argue the point?

What do you hope to gain?

Do you want those other anons to say
>You know what? You're right! I think OOP is shit, and you've proven it to me with this conversation!

Do you think that will happen?

Does this make you feel better somehow? Mental validation?
>>
>programming an app for the droid
>wasn't originally able to find the idea first time I looked
>work on it for a bit, get something going
>upload it to alpha testing on Google
>get email
>we could not upload your app because it did not pass our plagiarism test
>turns out I used the same name as an existing app
>app has been around for 4 years already, same idea

Well shit, wasted some time. I'm going to finish it anyways though and publish it. Should be enough to get a job afterwards.
>>
Is cleaning up my program's resources actually important? Surely the OS handles that shit for me? Obviously I'll close my file handles but fuck it if I'm gonna free all my pointers when the user hits alt+f4.
>>
>>56110331
We are on mission to illuminate.
>>56110340
YES IT IS IMPORTANT!
Even after execution OS cleans stuff after you it doesnt solve leaks while program is running. With leaks you'd have to have 100000000gb ram for AAA game.
>>
>>56110331
The point is consensus-building as a community. We develop and cultivate the impression that /dpt/ hates OOP and then the young and impressionable programmers come in here and see that, and subconsciously start to hate OOP too to fit in.
>>
>>56110290
>it's vague
No it isn't you backpedalling shit, objects and messages are fundamental to OOP and fundamentally not a universally good way of thinking
>>
>>56110354
Even though i hate OOP i still use classes and encapsulation from time to time, nothing wrong with that. As long as it doesnt apprach pajeet level
>>
>>56110354
>thinking /dpt/ has any significant amount of influence
stay delusional
>>
>>56110352
I'm only talking about after you exit your program. Obviously you don't want to leak memory while you're running, but when I'm using a program and I hit "exit" and then the program spends 10 seconds doing god-knows-what before it fully quits, I get pissed off and manually terminate the process.
>>
>>56110354
>We develop and cultivate the impression that /dpt/ hates OOP and then the young and impressionable programmers come in here and see that, and subconsciously start to hate OOP too to fit in.
It's a crying shame.

/dpt/ must have already ruined multiple budding careers with recommendations of SICP and things like C and Lisp.
>>
>>56110371
>implying I don't just want a better future /dpt/
>>
>>56110367
Welp, you convinced me!

I will never use an object or any design even remotely related to something resembling an object!
>>
>>56110376
They are memes yes, but can you really tell me sicp doesnt teach you anything and that C and understanding low level isnt important?
>>
>>56110376
Funny, I got my previous job because I could do functional programming.
>>
>>56110384
>better
lol fuck off /dpt/ is a shitshow of plenty of worse things than OOP and java, like fucking haskell and python like literally kill yourselves morons
>>
>>56110391
SICP is a waste of time.

C is not necessary, and can even be harmful to a successful career involving programming.
>>
Currently porting an game I was making from Java to C++ as a way of learning C++. Probably won't ever finish the game since it's a strategy game and would require some really competent AI but I feel like I'm making some progress on understanding C++
>>
>>56110390
see >>56110205

>>56110376
It's good this way
>>
>>56110414
good, java and C++ are literally the best languages and also the best languages to start with
>>
>>56110412
Sicp is intro CS 101 class, ofc it doesnt teach much
Learning to program != learnign specific language. If i learn to program in C there is no problem picking other languages, all you have t learn is syntax and libraries
>>
File: Lucy0930.jpg (115KB, 576x361px) Image search: [Google]
Lucy0930.jpg
115KB, 576x361px
Do sneks make good programming buddies?
>>
>>56110434
>If i learn to program in C there is no problem picking other languages, all you have t learn is syntax and libraries
If it is that simple, then why not recommend a more user-friendly programming language to start with?

C can be frustrating and uncomfortable to program in compared to modern languages with more convenient syntax sugar keywords. Even those the syntax sugar "hides" the underlying functionality, the new programmer can still learn to think programmatically, while having a much better experience.
>>
File: pypy.gif (443KB, 400x480px) Image search: [Google]
pypy.gif
443KB, 400x480px
>>56110476
Yes, but they also make shit programming languages
>>
>>56110487
I started with c++ and ended fine. But yeah maybe you are right from pedagogic point of view.
>>
>>56110442
My university (a huge one) teaches C to first year CS students in their first two classes, intro to programming and CS1.
>>
>>56110487
I agree to some extent, I started with Python and moved to C/C++ in a little over six months. However, letting the comfort of a high level language go was painful at the beginning and at my school, I know plenty of people who've programmed before as a hobby but are stuck with C# or Java because they're afraid of C/C++, be it because of pointers, memory management or any of that. And really, especially those two languages (C# and Java) have unfortunately deranged many of them to be able to only think of everything in the sense of "objects" without paying any attention to the underlying stuff like where in memory is data actually stored, what does instantiating an object actually mean, etc.
>>
>>56110376
>>56110354
shhhhh we don't talk about that

The memes are so that we have less competition and our careers stay valuable.
>>
How can sneks program if they have no arms or legs?
>>
>>56110617

with duck typing of course
>>
>>56110652
kek
>>
>>56109811
>What are you working on /g/?
Reverse engineering "Internet of Things" devices and I'm wondering why I'm even dealing with this junk. Nobody needs a WiFi enabled fridges or washing machines. It's incredibly stupid.
>>
File: MM8117_140710_36969.jpg (342KB, 1620x1080px) Image search: [Google]
MM8117_140710_36969.jpg
342KB, 1620x1080px
Snek knows Macs are best.
>>
>>56109811
This is your reminder /dpt/ that tabs are completely superior to spaces. Spaces are for smelly plebs, tabs are patrician.
>>
>>56110710
not true
tabs + negative spaces are GOAT
>>
C++ question.
Is this expected behaviour?
class c_class{
Object o;
c_class(){ //ctor
o = Object(10.0f, true); // Object's destructor is called. For a temp Object?
}
};
>>
what does the answer have to do with the question? wtf????????????????????


http://worldbuilding.stackexchange.com/questions/51444/how-do-i-protect-my-shop-from-teleporters
>>
>>56110865
ok i now i get it, it's something like this

https://www.youtube.com/watch?v=3I3LCyLY_m0

but still wtf do birds have to do with it
>>
>>56110865

36
This question becomes hilarious when read with the knowledge that a macaw is a (often colorful) parrot. – Frostfyre Aug 12 at 15:39
>>
where do you guys download/view books on this? i want to learn this.
>>
>>56110930
+1
>>
>>56110937
https://bibliotik.me/
>>
>>56110839
Yes if the c_class instance is destroyed.
>>
>>56110946
What do i do with this.
>>
>>56110865

stack exchange can be as bad as 4chan... what even is that entire category...
>>
File: ttttttttttttttttt.png (8KB, 499x252px) Image search: [Google]
ttttttttttttttttt.png
8KB, 499x252px
How would I make pic related work in java? By not using any 3rd party libraries.

Is it possible to do a cmd command run in the background and fill the textarea with the output?
>>
>>56109811
Why is lisp so based?
>>
I'm adding a Uint32 to a double, but the double never increases. Can I not do that, or something? Should I change the Uint32 to a double?
>>
>>56111151
Post code
>>
File: 1376702272774.jpg (55KB, 679x631px) Image search: [Google]
1376702272774.jpg
55KB, 679x631px
>when your shader fucks up for seemingly no reason
>>
File: bullfrog.jpg (12KB, 320x153px) Image search: [Google]
bullfrog.jpg
12KB, 320x153px
>"paradigm" is bad
>"language" is bad
>>
is C the best language to learn first
>>
>>56111267
yes if you're a neckbeard
>>
>>56111267
only if you wipe from bottom to top.
else learn python
>>
>>56111267
doesn't matter
>>
File: asdasa.png (122KB, 294x217px) Image search: [Google]
asdasa.png
122KB, 294x217px
>>56111280
>>56111299
i dont really understand what either of you meant, sorry..
>>
Refactoring my c++ code so i come to this:
    function(left);
function(right);
function(up);
function(down);
And im wondering what sorcery this is and i find that up, left etc are of type std::function, Great, but wtf is function. Found macro hidden in all code...

#define X(A) SDL_SCANCODE_ ## A
#define function(X) X = Game::lua[#X]

I have no idea what im doing here,,,,
>>
>>56111372
Im best at formating
>>
Currently working on yet another X11 window manager, because I'm too lazy to find if what I need exactly exists or not, so I'm making my own to fit every single one of my needs.
>>
>>56111388
Any resources or if you have minimal version share?
>>
>>56111372
>I have no idea what im doing here,,,,

That's what your code shows you retard
>>
>>56111453
Really helpful, i wrote this couple of months ago and trying to make sense of it... It works tho
>>
>>56111427
Nothing usable yet, working on configuration file currently, doing the loading into usable structures and whatnot.

Starting from configuration first because I need it to integrate the current setup I have, or it would be pointless.

My current setup is a mix of use of minimal features of Fluxbox and a Ruby script that does some stuff to windows, which is awful.
>>
>>56111223
and now my phone froze fucking great
>>
Rate my hex to dec converter!
unsigned parse_hex(const char *str)
{
/* calculate using bit-level concatenation pt 2 */
unsigned result = 0;
unsigned i;
for (i = 0; i < strlen(str); i++)
{
char val = hex_value(str[i]);
result = (result << 4) | val;
}
return result;
}
>>
>>56111491
Hmm i wonder if it would be more worthwile to do that for wayland

Do you follow any X11 tutorial?
>>
>>56111509
what's the point of val? just put it on the same line
>>
Is it true that calling functions in render routines can negatively effect performance in a game? I have a few for loops, if statements, and some math in my render functions.
>>
>>56111509
>char val

/dpt/ in one code snip
>>
>>56111563
double-blind studies have shown calling functions in render loops has no impact on performance
>>
>>56111512
I don't like Wayland, and no, I've just done a lot of X11 programming so I know what to do.
>>
>>56111563
doing anything in render routines can negatively affect performance in a game
>>
>>56111584
do you have anything to recommend, that sounds like awesome project?
>>
>>56111584
Also xcb or xlib?
>>
>>56111584
>I've just done a lot of X11 programming so I know what to do.
what have you done?
>>
>>56111574
Link to studies?
>>
>>56109811
I'm working on an implementation of Prisoner's 3D box packing algorithm. In C#. For a sprint's worth of 95000 dollars a year. Once I'm done with it, I'm posting a genericized version of it on GitHub. I've gone five or six years of industry experience and I haven't made a portfolio or a GitHub because most of my work has been proprietary.

I'm 28 and terrified that in five years my job will be done by Pajeet and Dave The Intern for a tenth of the cost of my current salary and benefits, industry-wide.
>>
>>56111601
I don't understand what you're asking.

>>56111642
XCB

>>56111645
Worked on an Xlib wrapper for Ruby, wrote a script to do some stuff with windows, wrote a screen saver/locker, wrote a backlight manager, a clipboard manager, back in the day a visual bell that would either blink the backlight or blink the gamma of the screen, and other small shit I don't recall.
>>
>>56111584
>I know what to do.

yeah right faggot
>>
>>56111675
*Pisinger not Prisoner.
>>
>>56111692
you're fired
>>
>>56111681
Making a window manager is not hard if you know how X works.
>>
File: drunkenMaster.webm (3MB, 640x360px) Image search: [Google]
drunkenMaster.webm
3MB, 640x360px
/dpt/-chan, daisuki~

Ask your much beloved programming literate anything (IAMA).

>>56110129
>objects are basically structs bundled with relevant functions
Wrong.
>>
>bachelor thesis on mobile android apps and speed

>thesis question: what's faster: hybrid app (html/javascript) or native android code


>tfw results made me go to silicon valley from germany for a visit
>>
>>56111724
kill yourself
>>
>>56111701
I said in five years you cheeky cunt
>>
>>56111724
Which lisp should I learn?
>>
>>56111779
Scheme
>>
>>56111779
guile scheme so you can embed it with c/ c++
>>
File: braveclojure.png (104KB, 900x900px) Image search: [Google]
braveclojure.png
104KB, 900x900px
>>56111744
Please, don't bully.

>>56111779
Racket or clojure

http://www.braveclojure.com/
>>
>https://github.com/openai
Why is everything python? /g/ told me that language was only for babbies and cucks
>>
>>56111791
>>56111801
Thanks

Does guile really work with C++? I thought it only worked with C code
>>
>>56111818
""""""""""""""""AI"""""""""""""""" is for babbies and cucks you memeing faggot
>>
>>56111818
Most programmers are babbies and cucks senpai
>>
>>56111822
>Does guile really work with C++?
Most C libraries work with C++.

>>56111801
You can embed most Schemes.

>>56111811
Clojure is not a lisp.
>>
>>56111818
cuck
>>
>>56111818
>Software engineering
>Somehow not an industry dominated by babbies and cucks
>>
File: 416547.png (197KB, 400x400px) Image search: [Google]
416547.png
197KB, 400x400px
>>56111818
>openai maintainer
>>
>>56111838
>Clojure is not a lisp.
explain
>>
>>56111858
it's not. period.
>>
""""""""""""""""""""""""""""""""AI""""""""""""""""""""""""""""""""
>>
File: CDMbA57p.png (12KB, 512x512px) Image search: [Google]
CDMbA57p.png
12KB, 512x512px
Is Rails worth learning in 2016?
>>
https://blog.golang.org/go1.7
>>
>>56111950
Hard mode: name one unique selling point of Golang.
>>
Is there a programming language that doesn't require a compiler or interpreter?
>>
>>56111977
There are several esoteric languages that lack either a compiler or interpreter, as they have been designed merely as intellectual exercises, and are waiting for someone to actually implement them.
>>
>>56111966

As powerful as Java and as opinionated as Python. I consider OOP to be a bug and not a feature.
>>
>>56111995
Java has generics.
>>
>>56111966
>>56111950
didn't the jews kill some arabs over control of the Golang?
>>
>>56112011
What are you talking about?
>>
>>56111992
How did the original compilers hey made? Doesn't ASM require a compiler?
>>
>>56110017
>perpetually perfecting their dumb engines
...is there some gamedev going on here?
>>
>>56112079
Compiled by hand.
>>
>>56112047
nevermind I got mixed up with the names
https://en.wikipedia.org/wiki/Golan_Heights
>>
>>56112143
I'm going to learn how to do that. Thanks anon.
>>
>>56112132
i think he's from >>>/vg/agdg
>>
How do I into metaprogramming in C? I'd like to implement some basic reflection, like getting the name of an enum's value. I assume I do some kind of crazy two pass shenanigans with preprocessing?
>>
pretty new to programming, but i want to write an android app that interfaces and displays with a website that is heavily javascript and flash (shows graphs, views data from local servers).
I could just write an app to show the website, i know that would be easy. but if i wanted to display the data differently (i.e. more touch friendly), how hard would that be?
I'm currently on a course in html5 apps, not even sure if that is the right direction

I can't link to the site, it's under heavy NDA/might be classified?. just imagine interactive graphs and such, in shitty flash and java
>>
>>56112155
Doesn't take much to assemble by hand, you just write the instructions on a piece of paper, then pick the manual for the processor you're targeting and write down the hex values correspondingg to each instruction.
>>
>>56110071
>>>/vg/ddit
>>
>>56112171
>flash

You realize flash is LITERALLY obsolete now, right? Anyone who uses flash is a cuck. It's not even supported in Chrome anymore
>>
>>56112182
Cool
>>
>>56112171
it's easy (assuming you have backend access), use http requests or something, ask in >>>/g/wdg or ask the web dev guys
>>
>>56112196
>now
It always was.
>>
>>56112171
Make a responsive website and call it a day.
>>
>>56112196
It still is, in an upcoming update it will only use flash if absolutely required. If html5 is possible, chrome will pretend flash isn't even installed.
>>
>>56112196
yeah, can't change that. The pajeets at that three letter tech giant made it years ago in their pajeet language
>>56112225
yeah, that's what i was planning on. I might have to write an entirely new front end just to make it more responsive.
>>56112207
I do have backend access, I might just have to write a new interface, but that is currently WAY over my head. I've only been into html for like 6 months
>>
Is there an SDL book I can read? Preferably for C, I hate OOP cucks
>>
>>56112381
You can use lazy foo and just use the functions in C functions. That's how I learnt it.
>>
OOP is not bad. Opinionated OOP where the language tells you to go fuck yourself if you try to architect things any way other than giant inheritance trees and dependency injection, is bad.

Also people think private variables and getter / setter functions help alleviate the buggy bullshit that comes with managing shared mutable state. It doesn't. It doesn't help at all.

HOWEVER the underlying idea of OOP, with "You don't need to know how we get the data or what its underlying structure is, you just need to know what functions can be called on it and vtables will handle the rest," is VERY good. That's why you can still program that way in languages like Rust, Python, and Go.
>>
>>56111818
There are a shitload of scientists who don't really want to learn programming because they want to focus on learning more of their own field.

It makes sense, don't bully them for it. Maybe bully them for not hiring you instead, I don't know. I just think geneticists shouldn't have to learn the nuances of C++'s fucked template system, for example.
>>
>>56111675
>I'm 28 and terrified that in five years my job will be done by Pajeet and Dave The Intern for a tenth of the cost of my current salary and benefits, industry-wide.
Is this realistic or are you paranoid?

Anons, is programming fucked as a career choice or is this guy crazy?
>>
>>56112717
Yes, if you're white you have no business writing code because it'll all be outsourced within 5 years.
>>
>>56112770
>Yes, if you're white you have no business writing code because it'll all be outsourced within 5 years.
I'm too dumb/lazy to be a doctor or a research chemist. I'm too autistic to get any people-person job.

What other mid-level intellectual careers can a person earn a living wage at these days? Some other kind of engineering? Electronic engineering, maybe?

I'm going to continue going after this career and hope you guys (who are probably trumpcucks) are wrong about this.
>>
>>56112851
>What other mid-level intellectual careers can a person earn a living wage at these days?

oh you poor poor bastard
america is a service industry now
all skilled labor is quickly leaving the country and if you want to get paid to sit in front of a computer, you're going to follow the jobs out of the country
>>
So I got my text file for a simple java script example, how do I run? How do I make it work in chrome or smth like that?
>>
>>56111811
tell me about racket, what does it do?
>>
>>56111724
I always wonder, what the fuck takes a man to film a brawl but not to divide the contendents, or just to stand away.
It really baffles me
>>
>>56111888
Nice explanation faglord
>>
>>56112981
millennials have this deeply ingrained feeling of indifference
when a professor giving a lecture collapses during class in front of hundreds of students do they call an ambulance?
NO! They post about it on twitter!
>>
>>56112007
""""""""""""""""generics""""""""""""""""
It's no different from downcasting everything to Object.
>>
>>56112879
Yes, get a service job like a good goy. Those skills are going to be very useful when WW3 comes. Let's continue accepting Chinese capital to employ more Americans in useless service jobs while shipping all of our industries overseas.
>>
>>56113014
Kek I was at Bingo the other night and some 60 year old obese woman collapsed on the floor and started having trouble breathing. If it was a maiden female of breeding age I would've considered checking on her but instead I just continued shitposting on 4chan from my phone.
>>
>>56112614
Just use catamorphisms
>>
>>56113022
>believing this
>>
Currently trying to get the socket.io C++ library to work.

It's a fucking nightmare, holy shit.
>>
>>56113022
Poo in loo Pajeet.
>>
What's the "danger point" for a sqlite db in terms of size (file size/number of items) that's going to be searched by a local program?
>>
>>56113302
If you're worrying about that you shouldn't be using SQLite in the first place.
>>
>>56109811

More?

http://45.55.174.18:8080/
>>
File: interpolation.png (3KB, 589x63px) Image search: [Google]
interpolation.png
3KB, 589x63px
/agdg/ was no help.
Is this the correct way to use linear interpolation? I'm passing my object's current position, it's position in the last frame, and the alpha value (either 0.5 or 1.0), and I'm using the return value of this function to get the position to render the object at. The problem is that when the object moves fast enough, it moves too far in one frame and you can see it in two different places at the same time.
>>
File: tumblr_lote6fQmaI1qbuypfo1_500.jpg (26KB, 500x369px) Image search: [Google]
tumblr_lote6fQmaI1qbuypfo1_500.jpg
26KB, 500x369px
Whats a reliable common way of getting random seeds for use with a pseudo random generator?
Apparently java has a library called java.util.Random that will generate random seeds but i cant find any explanation of where it sources the seeds.
>>
What's the difference between
typedef struct X { // } X;
typedef struct X { // };
typedef struct { // } X;
struct X { // };
struct { // } X;
>>
>>56113360
System.currentTimeMillis();
>>
>>56113360
because it's so random duh
>>
>>56113374
none of those would compile
>>
File: a_very_different_jake_by_rafe15.jpg (172KB, 900x1010px) Image search: [Google]
a_very_different_jake_by_rafe15.jpg
172KB, 900x1010px
>>56113379
thats what i suspected thanks
>>
>>56110412
You gotta try a little harder to get me
>>
threadly reminder
if you see Pajeet in this thread, tell him to poo in the loo
>>
File: camo.jpg (220KB, 802x536px) Image search: [Google]
camo.jpg
220KB, 802x536px
jesus fuck
I work on my project and its like 2 mins tinkering with the code, mostly getting to understand some shit
and then 10 minutes dicking around on the web
>>
feasibility of a sudoku resolver for a c newbie?
>>
>>56113502
poo in the loo
>>
>>56110017
>that never do anything
hey, I'm doing like an hour of work on my compiler every day here
>>
>>56112717
for web dev and CRUD shit it's somewhat realistic

for any "real" programming that requires actual skill it's not going to happen
>>
>>56113502
shart in the mart
>>
>>56109811
writing DOS text mode UI code right now
it isn't hard work, not in the slightest
it's just tedious as fuck, writing any kind of user interface code is a slog

all of the fun bits (interfacing with hardware) are done, now I just need to build a UI so I actually have a useful program and not just a somewhat poorly laid out library of audio and text display functions

>>56113510
are you me
>go look up documentation, get sidetracked
>spend an hour on /g/
>>
>>56112879
President Trump is going to fix that.
>>
File: file.png (44KB, 884x290px) Image search: [Google]
file.png
44KB, 884x290px
>>56113349
That's not linear interpolation, you're just averaging two values. Linear interpolation involves taking two (x, f(x)) pairs and using them to estimate f(x) for a value x in between them.

If I correctly understand what you're trying to do, you are trying to display the object at its average location between frames. You shouldn't be displaying the object twice with that function since you're only returning one value, so I think that problem is caused by something else.
>>
>>56113419
DELETE THIS
>>
>>56113643
>You shouldn't be displaying the object twice with that function since you're only returning one value
Sorry, I guess I worded it wrong. It IS only displaying in one location per frame, but since it's moving such a far distance over 1 frame, it can appear to be in two different places at the same time.
>>
>>56113349
yes

>>56113643
yes it is, it's just another way to write the formula, you could think of it as a linearly weighted average

see:
https://www.opengl.org/sdk/docs/man/html/mix.xhtml
>mix performs a linear interpolation between x and y using a to weight between them. The return value is computed as x*(1−a)+y*a.
>>
>>56113349
>>56113730
or you should swap current and last actually, to lerp from last to current
>>
>>56113714
I'm sorry anon but I still don't know what you're trying to say. Can you post a webm or video of what's happening so I could see what is going on?

>>56113730
Ah my mistake, I guess that's what a summer of shitposting does to my brain.
>>
I'm depressed, what do i do
>>
File: 1470973297480.png (77KB, 250x250px) Image search: [Google]
1470973297480.png
77KB, 250x250px
>>56113360
>LITERALLY tumblr.jpg
>>
>>56113360
the current year
>>
>>56113849
Make a program which interfaces with your brain and restricts the reuptake of serotonin. Alternatively, start exercising more, take some St. John's Wort, and try to find some hobbies outside of 4chan.
>>
File: interpolation.webm (940KB, 1280x720px) Image search: [Google]
interpolation.webm
940KB, 1280x720px
>>56113798
Sorry, I've always been really bad at explaining things. Have a .webm.
It's easiest to see when the player is moving vertically. The game runs at 60 FPS, and this sort of thing never happened before I tried using interpolation.
>>
File: haskell.png (25KB, 599x142px) Image search: [Google]
haskell.png
25KB, 599x142px
>>56109811
im learning xmonad
what that the sd and sid type constructors do in
the Screen data type?
Screen i l a sid sd
>>
>>56113935
>restricts the reuptake of serotonin
Shouldn't that make me even more depressed?
>start exercising more
that helps for a while, but then it starts to feel hollow
>try to find some hobbies outside of 4chan
I have some, but I get down fairly quick afterwards and sometimes the interactions just don't feel fulfilling
>>
>>56113971
i can't see it in the webm but you should swap last and current to match the formula in https://www.opengl.org/sdk/docs/man/html/mix.xhtml
>>
>>56113349
>the alpha value (either 0.5 or 1.0)
nigger what are you doing, the alpha value is calculated based on where you are between physics steps
>>
>>56113588
I write a web service that does a lot of hard number crunching and data processing but my ultimate fear is that even requirements for complex programs will be sent to Pajeet and his five cage mates. I feel like I have to get myself into a position where I'm the one writing the requirements instead of implementing them before I get sucked away.
>>
>>56114121
I'm doing it this way: http://gamedev.stackexchange.com/questions/25767/is-it-safe-to-set-fps-rate-to-a-constant/25769#25769

Alpha is equal to accumulator (after updating) / dt. In my case, dt is 0.1. The value of accumulator is always either .05 or 0.1, so alpha always comes out to either 0.5 or 1.0.
>>
>>56113510
Lol this is me too
>>
File: 1431123281485-4.png (112KB, 863x792px) Image search: [Google]
1431123281485-4.png
112KB, 863x792px
Are there any programming exercises that make heavy uses of databases ? I just want to get the hang of it.
>>
>>56114260
Make a simple web page that accepts comments and displays them in sequential order.
>>
>>56114205
accumulator should be incremented by deltatime values that are measured "in real life":

     double newTime = current_time_in_seconds();
double frameTime = newTime - currentTime; //total time available this frame,
//or the amount of time passed since
//last iteration of main loop
currentTime = newTime;

accumulator += frameTime; //accumulator keeps track of how much time left


so accumulator can have any value between 0 and dt, and the alpha is accumulator / dt
>>
>End of semester
>Learnt Go

I haven't done anything worthwhile since University ended for summer. What do /g/?
>>
I'm learning SDL and this code causes my computer to freeze up, any help anons?
    Viewport viewport;
viewport.x = 0; viewport.y = 0;
viewport.w = width / 10; viewport.h = height/10; // width is 1600 and height is 900
viewport.step = 30;
for(int i = viewport.x; i < viewport.w; i++)
{
for(int j = viewport.y; j < viewport.h; j++)
{
rect.x = i; rect.y = j; // start the rect
rect.w = i * 30; rect.h = j * 30; // make the rect 30 pixels big
switch(world.cells[j][i]) // lookup what type of cell it is
{
case CELL_WATER:
SDL_SetRenderDrawColor(renderer, 0, 0, 255, 255);
break;
case CELL_GRASS:
SDL_SetRenderDrawColor(renderer, 0, 255, 0, 255);
break;
case CELL_PLAIN:
SDL_SetRenderDrawColor(renderer, 255, 255, 0, 255);
break;
case CELL_MOUNTAIN:
SDL_SetRenderDrawColor(renderer, 200, 200, 200, 255);
break;
}
SDL_RenderFillRect(renderer, &rect);
}
}

I had to restart my laptop because my desktop environment was only getting about 0.3 frames per second.
>>
>>56114368
Started writing my own VM, got a decent amount done, then lost focus and started doing other things.
>ywn not have this issue
>>
File: code.png (17KB, 473x486px) Image search: [Google]
code.png
17KB, 473x486px
>>56114314
Unless I'm misunderstanding you, that's exactly what I'm doing. The render function takes the value of accumulator and divides it by dt.
>>
>>56114368
>>56114418
Oh shit, I thought you said "what about you" at the end.
Find the roll chart and do something off there
>>
File: PxzCKCO.webm (1MB, 720x720px) Image search: [Google]
PxzCKCO.webm
1MB, 720x720px
>>56112981
>I always wonder, what the fuck takes a man to film a brawl but not to divide the contendents, or just to stand away.

filming is actually the best thing to do, you have proofs in case there a trial and you don't endanger yourself too much.
>>
File: Screenshot_2016-08-16_17-57-57.png (11KB, 1600x900px) Image search: [Google]
Screenshot_2016-08-16_17-57-57.png
11KB, 1600x900px
>>56114386
OK well I got it working a little bit, pic related is the result but it still makes my laptop slow down to like 2FPS, how do fix?
>>
>>56114386
>drawing a rectangle 14400 times
>w = i * 30
Try setting rect.x and rect.y to i * 30 and j * 30 and w and h to 30.
>>
>>56114458
what the fuck i am looking at ? a clone of No Man's Sky ?
>>
>>56114467
Wow I'm retarded, thanks. For some reason I thought w and h were the end points of the rectangle, not the actual width and height
>>
>>56114458
if its static use framebuffers
>>
>>56114467

How is that taxing for modern CPU/GPUs?
>>
>>56114458
and to add: create some sort of mesh or geometry, add the color information and push it to your gpu. no idea what you are using but seems like some sort of Immediate Mode Renderer and is slow as fuck.
>>
>>56114543
are you retarded? games can barely push 1080p 60 fps
>>
>>56114432
Take it as a what about you, too. I'm a first year and would love some inspiration. I was making way through Project Euler until I got stuck, found the answer was something I should have gotten - and lost all of my confidence.
>>
>>56114578
because everyone is unity cancer and there is no proper optimisation.
>>
>>56114578

It's not polygons, it's a 2D rectangle with colored subsquares/pixels. Look at >>56114458.
>>
>>56114598
>>56114605
doesn't mean you can instantly draw 20 billion goddamn pixels per frame
>>
>>56114625
nvm the rects are only 30x30 but you're probably doing it inefficiently
>>
File: 1470445360800.png (89KB, 610x770px) Image search: [Google]
1470445360800.png
89KB, 610x770px
>>56114625
>instantly
no need. you have approximately 16 ms per frame for it
>>
>>56114645
:D
>>
>>56114639
nvm the rects are actually quite big at least in >>56114386 which >>56114467 pointed out
>>
>>56114260

>http://www.w3resource.com/mysql-exercises/
>>
You have 5 minutes to write a depth-first binary tree traversal without using recursion.

GO
>>
>>56115323
Nah
>>
File: 1454655106962.png (425KB, 730x916px) Image search: [Google]
1454655106962.png
425KB, 730x916px
>>56115323
>please do my homework
>>
>>56111223
look everyone

vec4 a = arr[i];

vec4 BULLSHIT = vec4(0., 0., 0., a[j]);


BULLSHIT.w and a[j] are not equivalent
>>
>>56115339
i dont go to school
>>
>>56114428
>>56114205
Last bump.
>>
>>56115323
(defun dft (tree)
(do ((stack (list tree) (cdr stack))
(res NIL (cons (head (car stack)) res))
((null stack) res)
(when (left-branch tree)
(push (left-branch tree) (cdr stack)))
(when (right-branch tree)
(push (right-branch tree) (cdr stack)))))
>>
>>56115323

//insert explicit stack here
>>
File: akari33.png (191KB, 419x398px) Image search: [Google]
akari33.png
191KB, 419x398px
Go is C, no fun allowed edition.
>>
File: 1465872324850.jpg (181KB, 1031x965px) Image search: [Google]
1465872324850.jpg
181KB, 1031x965px
>>56114578
>believing this
>>
>>56115536
have fun playing modern games on highest settings at 4k 240 fps
>>
>>56115577
>implying the human eye can see passed 144 fps
>>
>>56115577
the hell are you talking about
>>
>clang switched their C11 _Generic construct with lvalue conversions and array to pointer decompositions like GCC
>wonder why
>spend a ton of time trawling commits on the mailing list for LLVM
>finally find http://lists.llvm.org/pipermail/cfe-commits/Week-of-Mon-20160222/150900.html
>look at defect reports for C11
>http://www.open-std.org/jtc1/sc22/wg14/www/docs/summary.htm#dr_481

Well, that took a long time to track down but seriously, finding stuff and changes like this should not take a better half of 1 day.
>>
>>56115596
nice meme

>>56115639
if it's so easy to push 1080p 60 fps why aren't everyone gaming at 4k+
>>
>>56115340
i contacted qualcomm about this with full code let's see if they respond
>>
>>56115697
>if it's so easy to do this workload then why isn't everyone doing 4x the workload?
God i love /g/ some days
>>
>>56115722
forgot to include how to initialize arr... fugg
>>
>>56115792
fucking idiot i genuinely hate you

it's objectively true that most pcs can barely push modern games 1080p 60 fps, consoles run at even less than that a lot of the time
>>
>>56115532

+1

Goo in loo
>>
>>56115323
>BST without recursion
what the fuck is wrong with you cuz? u mad nigga?
>>
>>56115917

It's just an exercise nigga. No need to get bent out of shape.
>>
>>56115917
>what the fuck is wrong with you cuz? u mad nigga?
>>>/worldstar/
>>
>>56115697
because there's a huge difference between 1080p and 4k. it takes 4 times the GPU power at absolute minimum, though in practice it's well more than that. it doesn't mean we're "barely pushing" 1080p@60fps. that's trivial unless a game is an unoptimized piece of shit (e.g. many console games, any unity game)

>>56115837
and please stop. you have no idea what you're talking about. btw console games for this console generation that can't run at 60fps are fucking shameful. current consoles are more than capable of it. a lot of console devs are just cheap, lazy, bloated, or all of the above
>>
>>56115968
kill yourself you asinine idiot
>>
https://github.com/csnxs/Terraria/blob/master/Terraria/Item.cs

Why are game devs such terrible programmers?
>>
>>56115917
>ever using recursion
kill yourself
>>
>>56116008
>Why are Csharts such terrible programmers?
FTFY
>>
>>56116008
they get shit done unlike you, mr. fizzbuzz expert
>>
>>56116008
What is wrong with that?
Also, it's decompiled.
>>
>>56115985
k :^)
>>
>>56115837
No it's fucking not impossible for 1080p60 for modern games; my flat mates absolutely mid range computer with an AMD GPU could play shit just fine; how the fuck did you draw this conclusion in the first place?
>>
>>56116116
barely
[bair-lee]
adverb
1. only just; scarcely; no more than; almost not:
He had barely enough money to pay for the car.
>>
>>56116135
You think MOST people have pc's that they have to run sub 1080p for 60fps? It's not fucking 2005 anymore.
>>
>>56116167
reading comprehension please, fucking retard
>>
>>56110106
Literally nothing wrong with that fuckface.
>>
File: current year.jpg (21KB, 240x255px) Image search: [Google]
current year.jpg
21KB, 240x255px
>>56116167
>It's not fucking 2005 anymore
>>
>>56116135
if we're barely pulling off anything it's 4k you dumbshit. that obviously takes 1080p off the table
>>
can anybody post the programming challenges v3 or v4 or whatever? I want some inspiration
>>
>>56114598
>>56115536
you're delusional, let's take an example, doom (2016) which is one of the most well-optimized games when taking the visual fidelity into account

http://www.techspot.com/review/1173-doom-benchmarks/page2.html

e.g. r9 390x has 67 min fps at 1080p, and on the next step up at 1440p it's at 48 min fps, even this decent card can BARELY push 60+ fps in a very well optimized game

then there's no meme's sky if you want an example of real unity cancer
>>
Is there a crash course for bitwise autism techniques?
>>
File: le actual oop.png (313KB, 1680x740px) Image search: [Google]
le actual oop.png
313KB, 1680x740px
>>56110129
And you get a dependency nightmare whenever the same function has to consume different structs.
>>
>>56116008
This is surreal.
>>
File: pro:g:ramming challenges v4.0.png (2MB, 3840x2160px) Image search: [Google]
pro:g:ramming challenges v4.0.png
2MB, 3840x2160px
>>56116330
>>
>>56116013
>not being able to recognize optimal times to use recursion
no u
>>
>>56116394
explicit > implicit

it's not hard at all to use an explicit stack, just because you only got taught the recursive way doesn't mean it's the only sensible way
>>
>>56116335
>even this decent card can BARELY push 60+ fps in a very well optimized game
>has 67 min fps at 1080p
The fuck is your point again?
>>
>>56116413
>just because you only got taught the recursive way doesn't mean it's the only sensible way
I never implied anything like that
>>
>>56116335
you realize most of the time devs don't expect anybody with anything but the most cutting-edge hardware to run the game at highest settings, right? really the only reason it even supports that high a fidelity is so gameplay footage looks good in trailers. it's not intended for the average consumer. lower a couple settings to something reasonable (you won't even notice the fucking difference with half of them) and oh, what do you fucking know, 60fps no problem! holy shit!
>>
>>56116441
my point is that you should kill yourself you pathetic retard
>>
>>56116461
you're fucking delusional dude and you don't know what you're talking about go die in a fire
>>
New thread: >>56116495
>>
>>56116373
roll
>>
>>56116481
i'm a graphics programmer you fucking moron. you should head back to /v/
>>
>>56116413
Just because you think recursive is worse doesnt mean it is.
>>
>>56116463
>>56116481
Lol, ur so funny anon, can we please be best friends and I'll let u put ur dingaling in my special place?
>>
>>56116609
yeah a summerfag self-proclaimed graphics programmer straight out of aggy daggy lmfao
>>
>>56116623
just because you think iterative is worse doesn't mean it is.
>>
>>56116647
haha no. /agdg/ is a bunch of kiddie shit and i can't stand the sight of that much unity trash
>>
>>56116664
Why do you think people keep saying things they aren't actually saying
>>
>>56116689
if you really were a graphics programmer you would know that if you were to put all the fancy things without making severe compromises and dirty hacks you would run out of perf real quick, and that was my initial point in regards to the guy that tried to draw 14400 huge rects and the guy who thought a modern cpu+gpu should be able to handle it with ease, that it's actually a fuckhuge workload
>>
>>56116664
I never said it's worse.
It depends on the problem.
>>
>>56116736
>My actual point is completely separate from the garbage I've been spewing for the last 30 minutes
;-)
>>
>>56116833
nice reading comprehension fag
>>
>>56116736
it's really not that hard when you know what you're doing and you don't get lazy. as for that code; it's in C or C++. it's not the best solution, however a 160x90 loop is still fucking nothing on the CPU side and drawing 160x90 rectangles is similarly trivial on the GPU side when done properly. the problem is that the way SDL does it doesn't fit this use case well at all
>>
>>56116664
If you love iterations so much try to do this.
You have an array of specified length.
each element can be either a number or an array of unknown lenght from which each element can be an array or a number etc.
You dont have to write any code. Try to sum every number in this structure iteratively.
Pro tip: you can't.
>>
>>56117047
easy, just use an explicit stack, have fun crashing due to stack overflow
>>
>>56117108
algorithm please.
>>
>>56117146
push initial array to stack
while stack is non-empty:
pop array and iterate through it:
if element is array then push to stack, else if element is number then sum += number


kill yourself
>>
this:

clear all
clc

m = [1:1:20];
n = [1:1:20];
o = [1:1:20];

sols = zeros(3,20);
stored = 1;

for i = 1:numel(m)
for j = 1:numel(n)
for k = 1:numel(o)
if 5*m(i)+6*n(j)+10*o(k) == 87
sols(1, stored) = m(i);
sols(2, stored) = n(j);
sols(3, stored) = o(k);
stored = stored+1;
end
end
end
end


sols2 = zeros(6, length(sols));
stored2 = 1;

for i = 1:length(sols)
a = sols(1, i);
x = 0;
for j = 1:sols(1, i)
b = sols(2, i);
y = 0;
for k = 1:sols(2, i)
c = sols(3, i);
z = 0;
for l = 1:sols(3, i)
if ((138+x)*(106+y)*(58+z))/((20+a)*(20+b)*(20+c)) > 105 && ((138+x)*(106+y)*(58+z))/((20+a)*(20+b)*(20+c)) < 107
sols2(1, stored2) = x;
sols2(2, stored2) = y;
sols2(3, stored2) = z;
sols2(4, stored2) = a;
sols2(5, stored2) = b;
sols2(6, stored2) = c;
stored2 = stored2+1;
end
c = c-1;
z = z+1;
end
b = b-1;
y = y+1;
end
a = a-1;
x = x+1;
end
end
>>
>>56115507
>>56115493
now do it without recursion OR a stack
>>
>>56117236
That's literally the same as recursive way but instead of letting the compiler do all the shit work you're doing it for him, the only difference is that you're saving arrays addresses on the stack and i would be saving return addresses. What's the point? It isn't faster, it isn't better, you'll also run out of memory as fast as me.
>>
>>56117368
the explicit stack is on the heap you dipshit
>>
>>56117400
Yeah, it doesn't have to be. Also, it doesn't change a fucking thing.
I rest my case, you're a retard who's overcomplicating his life.
>>
>>56117445
lol ok have fun literally getting people killed due to your recklessness
>>
>>56117473
i kek'd a little inside. I like you, even though you're retarded.
>>
>>56117519
you're delusional, unbounded non-TCO recursive function calls are dangerous because they could blow the call stack
>>
>>56117400
chicken scheme allocates call frames on the stack and automatically evacuates them to the heap with it's garbage collector
>>
>>56117554
>chicken scheme
absolutely disgusting
>>
>>56117536
not a language with reallocatable call-frames
>>56117572
maybe it is, but it's compilation strategy is extremely clever if you ask me
http://home.pipeline.com/~hbaker1/CheneyMTA.html
>>
janitor
>>
New thread: >>56117669
>>
stop making /pol/ shit threads you cunts
>>
>>56117536
Yeah, maybe if you live in 1980s.
You can also manipulate stack size.
Plus that's your job to know when you can and can't use recursion.
>>
>>56117698
>Plus that's your job to know when you can and can't use recursion.
so not his job: >>56117047
>>
>>56117738
Meeeeh
im not really convinced. It seems like a lot of effort for a small reward.
>>
>>56117881
>a lot of effort
nigga i wrote >>56117236 like it was nothing
>>
>>56113973
Have you tried reading the fucking manual?
http://xmonad.org/xmonad-docs/xmonad-contrib/XMonad-Doc-Developing.html
>>
>>56117960
Yeeeeeeeeeah i still don't really know...
Maybe you're right and this is the better way, maybe you're future John Carmack. Maybe not.

Thanks for letting me know there's an alternative anyway.
>>
>still implying that recursion needs to use bounded memory
Thread posts: 350
Thread images: 35


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.