[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: 359
Thread images: 34

File: dpt.jpg (1MB, 1920x1411px) Image search: [Google]
dpt.jpg
1MB, 1920x1411px
Last thread: >>52638044

What are you working on, /g/?
>>
Fuck off, newfag.
>>
delete your thread
>>52643955
>>
learning m4, fucking autotools. I know I don't need to but now I want to.
>>
>>52644204
lol, the other OP comes in demand person take down their thread.
>>
>>52644215
Why the fuck would you do that to yourself? It's a clusterfuck.
>>
>>52644233
I just don't know... Seemed liked a good idea at the time(about 2 hours ago), it's K&R after all.
>>
Rule violation.
>>
Java has the fastest web frameworks
>>
Daily reminder, trap fags are objectively worse at programming than cis hets.
>>
Reminder to report and sage.
>>
>>52644290
Who the fuck would choose java to create a website?
>>
>>52644372
Who the fuck would choose Java in general?
>>
>>52644393
People who will pay you.
>>
>>52644372

A lot of people.
>>
>>52644375
Yeah I'm pretty sure that Forth (well established RPN language) has conditionals like 'if' as a language construct rather than a function.
Well, 'if' is still a "word" but it switches forth into compile mode instead of interpreter mode or something like that. Look into that.
>>
Fuck off newfag, there's already a thread.
>>52643955
>>
>>52644393
These stock image models probably would.
>>
real thread here

>>52643955
>>52643955
>>
File: image-vertical-giant-pen.png (63KB, 600x714px) Image search: [Google]
image-vertical-giant-pen.png
63KB, 600x714px
>>52644423
>4 replies

Who cares anon this thread wins.

Life fucking sucks mannnnn
>>
>>52644403
Couldn't pay me enough to use it desu
>>
>>52644264
>it's K&R after all.
What do you mean? I'm guess you don't mean the C book?
>>
>>52644436
fuck off retard
>>
>>52644290
database is limiting factor in most cases (and the queries that you write against it) so this isn't really an interesting argument. in fact, using hibernate or similar things will probably damage you because lazy fetch kills performance
>>
>>52640871
>>52640871

Everyone shut up, THIS is the real thread now.
>>
>>52644459
m4 was created by Kernighan & Ritchie. Slightly before UNIX, in an attempt to un-shit assembly.
>>
>>52644506
Nevermind, I'm retarded. Way after UNIX.
>>
>>52644403
>People who want to watch the world suffer
>>
>>52644372
I don't think anyone has chosen to program in java as a choice
>>
File: 1439615972335.jpg (27KB, 350x466px) Image search: [Google]
1439615972335.jpg
27KB, 350x466px
>>52644529
>>
>>52644527
Bout to say... You are thinking of C. m4 is just a macro system.
>>
>>52644584
Russia detected
>>
File: swift.webm (1MB, 800x675px) Image search: [Google]
swift.webm
1MB, 800x675px
Factorials working now, even with decimals because I finally found a gamma function.

Any advice?
>>
>>52644585
Wrong on the date, I thought it was before UNIX and C.. Way off. It is K&R though.
>>
File: 1439617684313.jpg (44KB, 400x509px) Image search: [Google]
1439617684313.jpg
44KB, 400x509px
>>52644596
>>
Why is it that on any other board, generals don't get remade until they're 500 posts and on page 8, but on /g/ I constantly see the catalog shitted up with programming generals. Seriously, what the fuck is the issue?
>>
>>52644636
On /vg/ and shit the post limit is 500, on /g/ it's 310. There's also an image/op war going on.

It's complicated but essentially people here are very autistic.
>>
>>52644606
Ahh, didn't know that. I thought it was a GNU autotools thing. Yeah, originally made for assembler macros. They are pretty indispensable when writing assembler, can't really see a use for them outside of that, they are too limited.
>>
>>52644636
Animefags feel the need to post early so that they can get their weebshit in the OP, anti-Animefags post their threads earlier so there's no weebshit in OP, Animefags post even EARLIER to get weebshit in OP, etc, etc...
>>
What programming language is cross-platform friendly? Looking to learn a new language for to fill up some of my free time.

Haxe looks kind of dead, Java is just so meh(or does Java8 really fix a lot as I've heard?).

Kotlin looked promising but I've never really worked with those JVM languages.

Any advice?(I already know C++ and Javascript)
>>
Does the hacky shit Matlab code I write for data analysis and control in my research count as programming?
>>
Got a intern fair college at the university. What should I make before tomorrow to put on my resume?
>>
File: ayano-06.jpg (70KB, 1280x720px) Image search: [Google]
ayano-06.jpg
70KB, 1280x720px
>>52644688
And the anti anime trap team is always vigilant to post an anti early forced trap shit anime thread.
>>
>>52644748
2D waifu simulator
>>
>>52644691
> cross-plataform
theres only Java m8, I know it's shit but it's the only way.

> I know C++ and JavaScript
lel

Now seriously, what do you want to develop for? Desktops or mobile?
>>
>>52644714
Yes, it does. Post it.
>>
>>52644650
What about /sp/, /ck/, or /lgbt/?
>>
>>52644770
Just looking for something new. Also, mobile.
>>
>>52644691
>cross-platform friendly
C, C++, Go, D, etc. if you can set up an environment and recompile and use library that abstract the file system.
Java and JVM languages...
Scripting languages are by definition cross-plat, you just pass around the source code: Python, Lua, Julia (even bash is, if you set up a proper environment)
>>
>>52644780
It's top secret
>>
>>52644787
/ck/ is 310, but slow as shit so a thread can last up to 500 posts.

/sp/ is 500 limit, enough said.

/lgbt/ is 310, never been there since the day it was created.

For reference:
https://a.4cdn.org/boards.json
>>
Is there a good C/C++ web framework?
>>
>>52644822
>reasons why /prog/ should be a thing
>>
>>52644837
No, you don't write websites in C/C++ unless it's in embed devices. For example the web interface on your router is likely in C or C++.

It's just too risky.
>>
>>52644813
C, C++ aren't that cross-platform friendly unless you feel like littering your code with #ifdef
>>
>>52644795
Swift is new and mobile.
>>
>>52644604
.1 + .2 - .3
>>
>>52644856
Which is why I added use a library that abstracts the file system and can work between OSes. Also, is there a recommended library for C or C++ for doing this? I'm sure boost can do it for C++...
>>
are there any good new languages? like, designed in the last year?
>>
reminder that lazy evaluation is the future
>>
I've been extensively learning java recently, but have been thinking of switching over to c++ as I hear it gives a more fundamental understanding to programming. What does /g think?
>>
>>52644884
If he was smart he would be using arbitrary precision rationals. Shit doesn't need to be fast, it should act correctly, it's a GUI calculator.
>>
>>52644911
No, just shit you could do with a language created 10 or 20 years ago but it's NEW, SUPER EXCITING AND BACKED BY GOOGLE, APPLE OR SOME NEW JAVASCRIPT COMPILER WRITTEN BY SOME NOBODY.
>>
>>52644941
>the future
Lazy evaluation has been around for quite some time.
>>
File: 1444519185838.jpg (122KB, 425x516px) Image search: [Google]
1444519185838.jpg
122KB, 425x516px
>>52644215
>>52644233
Autotools is a fine build system, I would argue that you certainly do need to know it.
>>
>>52644911
C++17 is shaping up to be "C# without GC"
>>
>>52644963
Since the 70s, if you're wondering. Didn't catch on then either.
>>
>>52644978
But do you need to know m4 to use autotools?

The answer is no.
>>
File: tumblr_nvo62on7LE1rro9xpo1_1280.png (886KB, 1280x720px) Image search: [Google]
tumblr_nvo62on7LE1rro9xpo1_1280.png
886KB, 1280x720px
I'm new to programming, what language should I learn? I was thinking of C++ or Python.
>>
>>52644944
Learn python instead, it's way better than both Java and C++
>>
>>52645020
What do you want to program?

games? systems? robots? what dude?
>>
>>52644604
>spending all this time on a fucking calculator

alright buddy
its time to move on to something serious
>>
>>52645046
Wanted to program games, later down the line when I'm real good I wanted to make a phone os
>>
>>52645020
if youre doing low level stuff that requires critical performance, c++

otherwise use python
>>
File: kel.jpg (68KB, 764x1394px) Image search: [Google]
kel.jpg
68KB, 764x1394px
>>52644884
kek (pic related)

>>52645050
I'm almost finished with this calculator m8, I have some ideas for my next apps. This calculator was great for learning the basics of iOS development tbqh.
>>
>>52644813

I'm liking JRuby most from what I've seen so far.
Dunno much about Scala tho ugh.

>>52644867
Can't seem to find much about starting with android devving. But indeed I heard it went open-source should just be a matter of time.
>>
>>52645079
OK. Thanks
>>
>>52645078
Yrah I'm on the same page right now
>>
>>52645118
How important is it that it's cross platform? How do you plan on distributing what you make?
>>
>>52645078
Games choose either C++ or C#.

An OS is usually at the core C, requiring a lot of system architecture knowledge. It's not simple and requires a fair amount of previous programming experience. Study Computer Engineering and the Linux or BSD kernel code to just get a grasp of what you're implying.

There's this site: http://wiki.osdev.org/Main_Page, that will explain a few things but come nothing close to a functional, robust OS.
>>
posted in stupid questions, but probably would be suited better here.

Assuming we have 4 byte intgers, >>52644987
>Why would does
god damn it.
>>
>>52645159
~0xffff = 0xffff0000 = -65536
>>
>>52645159
As a 4 byte integer, 0xFFFF is 0x0000FFFF. ~that = 0xFFFF0000.
>>
https://bitbucket.org/runhello/emily/wiki/Home

What does /dpt/ think of this?
>>
>>52645178
>>52645187
fuck, i knew i was missing something obvious. thanks guys. I dont know why i was thinking each F was a byte.
>>
>>52644393
Android App makers?
>>
>>52644911
Look at Go and Rust, theyre not designed in the last year, but theyre newish.
>>
>>52645194
>MLP
Dropped
>>
File: baebc1eb.jpg (559KB, 800x1170px) Image search: [Google]
baebc1eb.jpg
559KB, 800x1170px
>>52629711
I know this is a post from 18 hours ago, but who knows, this guy might see it.

The reason that's happening is because with vsync, your game loop is running according to your refresh rate. That's usually 60fps. Without it, your game loop loops as soon as it is done, which is much faster. But that untamed speed is not what you want because the lower the fps, the slower your game moves. Make a frame counter, keep printing the output with and without vsync and you'll see.

Which is why you should use delta time for any variables that tend to affect position, such as speed and acceleration. It'll give you a consistent feel no matter how fast or slow your game updates.

This is all second hand information. But it should be accurate.
>>
>>52645129
Really? How long have you been doing this?
>>52645153
I'm actually going for computer engineering and yeah I had a clue it wasn't going to be easy.
>>
>>52645220
It's a girl, she's allowed to like MLP.
>>
What books do you guys recommend for good practices with C++?

I'm a beginner. I'm good at fiddling around but I never know if I'm doing things correctly or in ways that won't bite my ass later. Just the other day I got yelled at for using global variables.
>>
>>52645194
You spend a large paragraph explaining what I think is just that 'emily' is a functional programming language and I'm confused about the significance.
DESU I'm more interested in type systems or metaprogramming rather than just first class functions. Syntax is confusing but that's cause I haven't written code in it so I'm going to assume it's clear when you get the hang of it.
Nice job though, getting a programming language to completion (or just close) is no easy task.
>>
>>52645234
trannies are an exception
>>
Why are computer science programs at college so cuck tier? Most of them go way to slow, and by the time you get out of college you still arent really that prepared for a job. At a top school for CSE and I teach myself the all of a classes material a couple weeks every quarter.
>>
>>52645284
your first mistake was thinking that college is job training
it's not, even if all companies believe it is
>>
>>52645284
What state?
What uni?
>>
>>52645293
But it doesnt teach you good theory either. And I'm at a school that focuses heavily on theory stuff.
>>
>>52645284
Maybe your community college filled with niggers isn't exactly the best place to learn. It's closer to vocational training.
>>
>>52645296
University of Washington.
>>
>>52645020
learn C++

be great at every other language

learn python

be great at python
>>
>>52645312
I'm at WWU and have multiple friends that could not get into the CS program there with 3.85 and 3.90 GPA and transferred here because of it.No way in hell was I getting in the major at UW. You're actually just really smart and good at school.
>>
>>52645226
CE major as well. You better fucking know programming by ECE fundamentals or you're ded.
>>
>>52645259
Thanks!
>>
>>52645342
Or maybe you and your friends are dumb-dumbs.
>>
>>52645342
The thing is they do a bad job at selecting who gets in the major imo. I've noticed that the direct admits are typically much less intelligent than the people who apply to the major normally.
>>
>>52644691
>What programming language is cross-platform friendly

I've been looking into Scala lately, which compiles to Java VM bytecode and can interoperate with Java libraries. Not yet far enough into it to give a conclusive opinion, but it looks very promising.
The syntax is a bit different, but basically imagine Java without all the shitty parts, and add on a few awesome parts. No more verbosity, a type system that can deduce a lot of stuff by itself, and (basically) multi-inheritance. Also, the functional part has been tacked on to Java 8 and it really shows, Scala was designed multi-paradigm from the getgo and does it far more elegantly.
>>
>>52645353
CE major here. Computer Engineering or its not a real degree.
>>
>>52645377
What about studying CEIFF?
>>
>>52645377
yeeep. I know some people in CET (computer engineering technology) and they suck at everything beyond python programming.
>>
>>52645384
dafuq is that
>>
>>52645312
Applied there, to the honors program too but don't think I'll get in. So I shouldn't attend if I'm planning on pursing theory and CS, given I'm already proficient at programming atm?
>>
>>52645415
CE fags everybody, absolutely no critical thinking skills greater than a 6 year old child.
>>
File: 1448561031003.png (1MB, 1702x2471px) Image search: [Google]
1448561031003.png
1MB, 1702x2471px
>>52645376
>is cross-platform friendly
>>
>>52645340
>learn C++
>be great at every other language

Especially those very C-like like Lisp or Haskell.
>>
>>52645435
Sure.
>>
File: photo.jpg (19KB, 396x403px) Image search: [Google]
photo.jpg
19KB, 396x403px
>>52645443
Right. You're much better off with your NEET degree, aren't you?
>>
>>52645555
300k starting
>>
>>52645565
Riiiiight. Doing what?
>>
>>52645603
Don't feed the trolls.
>>
>>52645603
Designing perfect 4chan shitposting wire routing algorithms.
>>
>>52645510
>LISP
>C-like

>literally any functional language
>C-like
Stop talking out of your ass, this is embarrassing.
>>
>>52645623
Sarcasm m8
>>
File: sarcasm_detector.jpg (16KB, 480x360px) Image search: [Google]
sarcasm_detector.jpg
16KB, 480x360px
>>52645623
I believe that was sarcasm.
>>
>>52645635
>>52645638
https://en.wikipedia.org/wiki/Poe's_law
>>
>>52645654
:^)
>>
>>52644963
>>52644999
That's because it's a bad idea.

Imagine that 50 years from now, someone reads old paint recipes and decides lead paint is a good idea and we're all "ignorant" for not putting lead in our paint.

That's computer science in a nutshell.
>>
CE vs CS

post your opinions now
>>
>>52645770
You're a fucking faggot.
>>
File: maxresdefault.jpg (147KB, 1280x720px) Image search: [Google]
maxresdefault.jpg
147KB, 1280x720px
>>52645787
>>
>>52645770
I'm in CE. CE is boring and frustrating. Engineers are jackasses trying to look smarter than everyone else. Probably going CS for my masters.
>>
>>52645770
CE is just CS but for people who actually want to put in the effort to understand how things work.
>>
What's a good language for ios and android app development ?
>>
>>52645805
so you're a lazy fuck and everyone else must be showing off because they're smarter than you

kill yourself
>>
>>52645842
c#
>>
>>52645856
is python good for it too? if so which would be better ? Also would I have to learn multiple languages to make a mobile app ?
>>
>>52645852
Nah, doing fine, probably better than most of my classmates. You don't do 'okay' in CE, you'd fail and they'd kick you out. Hardware is boring and tedious and all the shitty tools for it make it frustrating. Software is pure and hassle-free. It's much more enjoyable to work with.
>>
File: snibbidy snab.png (34KB, 666x666px) Image search: [Google]
snibbidy snab.png
34KB, 666x666px
Okay /g/ I'll try and wrap this up pretty quickly. I hate asking for help on this shit but I've been struggling every step of the way so far here.

The task is to read a batch of listings from a text file in C++ and load them into the structure. For me, it's
struct listingdata
{
string item;
string listingtype;
int price;
};


As you load each line of the txt into the struct, it wants you to go back and check a set of conditions
>is it the same type?
>if yes, is one a listing and is one a "wanted"?
>if yes again, can the wanted buy the for sale given their price range?
>if yes, output the item and then remove the item from the array of structs, and shift the rest up to fill the gap
I'm struggling with the algorithm on this, and c++ being my first big boy language isn't helping.

#include <iostream>
#include <fstream>
#include <sstream>
using namespace std;
struct listingdata //Create the structure
{
string item;
string listingtype;
int price;
};


int main()
{
int loopcount = 0,tempprice;
listingdata lData[100];
ifstream inFile ;
string data, tempitem, temptype ;
inFile.open("data.txt");
if(inFile.good())
{
cout<<"Opened Successfully!"<<endl;
int i = 1,itempprice;
getline(inFile,data); //need to set the first position to not mess anything up
stringstream ss(data); //separate out the lines
getline(ss,lData[0].item,',');
getline(ss,lData[0].listingtype,','); //can be 'For Sale' or 'Wanted'
ss >> lData[0].price;

while(getline(inFile,data)) //reads the file line by line{
{
getline(ss,tempitem,',');
getline(ss,temptype,','); //can be 'For Sale' or 'Wanted'
ss >> tempprice;
//then test the remainders
}
}
cout << loopcount;
}

We are supposed to use a loop according to: 1 for loading the file, x iterations for finding the matching item, and...
>>
>>52646001
lel forgot to add a end code tag

Anyways...
We are supposed to use a loop according to: 1 for loading the file, x iterations for finding the matching item, and y for shifting the contents of the array up 1. I've tried a lot of things, and it always just turns into a fucking mess. I don't suppose anybody could provide insight into this for me that I can try and bark up in the morning? I really want to git gud at C++ while I'm in this course, but it's barely a few weeks in and I'm already struggling ;_;
>>
>>52646001
your coding style is very feminine
are you a girl?
>>
>>52645361
Yeah, it sounds like a mess. I hear it's really competitive within the major too? That sounds awful.
>>
>>52646038
Only in my dreams.

All of our coding professors are girls might be why?
>>
>>52646038
Yes. Please help.
>>
>>52645840
>being this elitist about playing with beepity boopity circuit boards
>>
>>52646026
>and it always just turns into a fucking mess.
Separate each part of the algorithm into it's own function. That should keep the hideousness down.
>>
File: 53481927b35cf.png (5KB, 200x200px) Image search: [Google]
53481927b35cf.png
5KB, 200x200px
ITT: Butthurt CS majors
>>
>Classmate: Professor, how much longer will we be working with Prolog?
>Professor: The whippings will continue until morale improves.

(We will be using Haskell after this next assignment, and the professor has given us a few lessons on some type theory shit, so I might actually be understand what half of DPT is saying now).

And on an unrelated note, I have found GTP's waifu:
https://www.youtube.com/watch?v=V-MixcXotj8
>>
>>52645842
java and C++

>>52645907
>is python good
absolutely not

>would I have to learn multiple languages to make a mobile app ?
not really if you use babby tools but if you use java and C++ you can get by fine. only java is "needed" on android unless you want the best possible performance (then you can combine it with C++) and on iOS you can use java with robovm, and also objective-C++ which is apple's objective-C combined with C++.
>>
How good of a programmer you are or what programming language you use doesnt matter. Just the results.
>>
>>52646131
the results depend on how good of a programmer you are and what programming language you use
>>
>>52646083
>>52646085
your problem is that you're doing everything in main()
don't do that
if you're doing something repeatedly, or if you have to embed a loop within another loop, make the loop it's own function.
>>
>>52646115
People dislike Prolog? One of the easiest classes I ever took.
>>
>>52645020
java and then C++ or just C++

absolutely don't learn python ffs
>>
>>52645805

I have actually considered CE if I ever do a PhD (which will likely be after at least a few years in the industry).
>>
I'm finishing college in an engineering major I do not think I am cut out for, and I just got rejected from nearly every med school and masters program I applied to. There's a very real chance that I'll never get in.

Parents are giving me a year to live at home and be partially NEET to make my application better to try again (gap year) but I'm definitely getting thrown out of the house next June if I don't get into any schooling program or don't have a job.

The only work I've ever done is programming related and I get paid quite well doing it now in college though my contract only lasts until this August (I may be able to stay with the company longer if I can prove myself, but there's no guarantee), and the cost of living where I am is significantly higher than the rest of the country.

So how's the job market looking for programmers? If I can't live with my parents rent free I'm going to move somewhere cheap like Texas.

I don't need to be as well-paid as I am now (~$50/hour), I just need to be able to eat.
>>
>>52646144
no, kill yourself

a function should do a logical "thing". don't make a function just for a loop unless that's all that your "thing" is.
>>
>>52646103
>>52646144
Okay. I'll try that tomorrow when I wake up then. Cheers, anons.

I'm assuming I need to use a void function, right? What do I need to pass to it?
>>
>>52644165
so I hardcoded foo(a,b) = a*(b+2)
and somehow
> eval if(1>2,foo(4,5),foo(8,12))
= 112


I have no fucking idea how I did it, but I just implemented an algorithm that should let me resolve and evaluate recursive functions without building a parse tree

That's it working, right there, and by my debugging log I know it lazily resolved that conditional (i.e. it didn't bother resolving foo(4,5)), which means all I need to do to test it is define a recursive function

I had to rebuild my entire interpreter from scratch but now it's a lot more cleanly set out and should give better error messages to the user for, e.g., mismatched parentheses or misplaced commas and such
>>
>>52646184
look on ycombinator/hacker news for programming jerbs, hnhiring.me or weworkremotely.com
>>
>>52646153

I dislike prolog, although I'm at the very least able to get the assignments done within a reasonable amount of time. I still would like to think I'd have a more fun time writing a highly optimized C implementation of a parser and tokenizer.

The guy that was complaining though, ironically, was very enthusiastic about prolog, but had admitted to me he was unable to complete the second assignment.

>>52646184

>med school
Unless your major was some sort of bio-engineering, why were you applying for med school?

>master's programs
These aren't that hard to get into. You don't need to be a special snowflake or anything; you just need decent GRE scores. I barely even studied for the GRE (and most of my studies were focused on the vocabulary, since the math section doesn't even count calculus), and I got reasonably high scores.

>The only work I've ever done is programming related
>So how's the job market looking for programmers?
The job market for programmers is quite alright for people who already have experience working in the industry.

>I don't need to be as well-paid as I am now (~$50/hour), I just need to be able to eat.
Anon, if you worked an average of 40 hours a week, 52 weeks a year, your $50/hour wage would be equivalent to 104k/year, a comfortable wage anywhere. But nonetheless, you should be able to use it as leverage to negotiate a higher pay.
>>
File: 1361896227761.gif (9KB, 511x494px) Image search: [Google]
1361896227761.gif
9KB, 511x494px
>>52646268
So you finally decided to read your SICP? Mr snek would be proud.
>>
>>52646140
Nah, not true. Nearly every single piece of software, at some level, was someone deciding what they're good in, and writing a lot of code they're ashamed of, but if the code works, it works.

Caring about what language you're writing or even more danagerous, worrying about how there are a few ugly spots in your code, is a one-way-path to never ending projects and out of control spaghetti code.

Get something that works as a proof of concept and worry about this shit later.
>>
>>52646323
My major was some sort of bioengineering and my GRE scores were around the 80-90th percentiles.

My experience in programming is mostly academic, but I just got hired onto an outside company spun off of my academic project last month. I have no idea how long it will last, if it will even last.
>>
>>52646184
Job market is out of control. I get 3-5 emails a day from recruiters. Depends on how you want to work, though. If you're cool with corporate America, go into CRM work. Salesforce/Dynamics particuarly. Super easy c# work with some javascript thrown in, usually no more than 100 lines. Average about $100k/yr for a junior level dev.

Job listings as proof:
http://www.nigelfrank.com/us/dynamics_jobs/dynamics-crm-developer
>>
>>52646179
What would you study?
I've been looking at some EE programs in Texas, there isn't a whole lot going on at my uni for ECE grad work. Personally I'm interested in autonomous craft. I wrote a paper on a system for collision avoidance in Autonomous UAVs for my Tech Writing class and I'm doing a autonomous boat for Senior Design. It's a lot more CS than EE, which is why I like it.
>>
>>52646368
there is no excuse for using something like python, it's not even more time consuming to use something like java or C++, maybe for a quick script but not for a full-fledged application. and sure there maybe be a few "ugly spots" but having bugs in your code is fucking unacceptable.
>>
>>52646402
>VB.NET

Seriously? People actually take that kiddie shit seriously?
>>
>>52646410
It's perfectly acceptable. Google uses Python a TON. I've personally written projects that have paid my rent using Python, and did something cool no one else was doing.

You get to the point where the language you're using absolutely does not matter. If you can produce the end result, that's what matters.

Seriously...
>>
This is my current colour scheme for my terminal.
Anyone else got a nice one? I'm trying to find the nicest colour schemes.

in case anyone likes mine
text: #7ACED2
background: #2C3E50
>>
>>52646447
Yeah, unfortunately. One of my professors uses it exclusively. All the assignments are to be don in VB. It's awful.
>>
>>52646447
Hell yeah. Nigel Frank is a Microsoft recruiting company who works with partners. A ton of internal tools are written in VB.net. In fact, a shit load are written in VB6 or VBSCRIPT. There's a market for it.

.NET is a HUGE market at the moment. Usually one or two devs run an internal IT team and develop tools based on what they know. If the company is looking to expand or to replace a developer, they'll hire someone who can do the shit.

Again, see:
>>52646454
>>52646368

I personally am of the same opinion of you guys. VB.NET, really? But I learned a lesson over time that it doesnt fucking matter what language you use.
>>
>>52646388

>My major was some sort of bioengineering and my GRE scores were around the 80-90th percentiles.

Well my GRE scores were around those percentiles as well, and I got into grad school easily. Where all have you applied?

>>52646407

Well, I actually have been developing a bit of an interest in the inner-workings of CPUs, and into various instruction set architectures. I'm not entirely sure what I'd focus my studies on, but it would likely revolve around CPU design, possibly something theoretical in nature. For example, how would you design an instruction set for a quantum computer?

Although I have seen pure CS guys dabble in this area as well. For example, the guy that designed RISC-V was pure CS, and I'm not sure if he had a lot of formal training behind hardware design.
>>
File: 1450589843141.jpg (35KB, 637x946px) Image search: [Google]
1450589843141.jpg
35KB, 637x946px
>mfw I do my best and most consistent work work in the middle of the night when i'm too exhausted to let my temper get the better of me and I instead sarcastically step through my code line by line as a way of beating myself up only to actually discover the bug.
>I keep waking up at 3 in the afternoon and can't wake up earlier unless I have to go to work.
>>
>>52646500
I only applied to the masters program at the school I will get my BS from since I was focusing so heavily on med schools.
>>
>>52646478
.NET is .NET. Learn VB.NET and you can jump to C# in about 4 hours. It's just syntactical changes. 95% of libraries and imports, etc are the same. Your professor is doing you a favor in terms of a job. You should pay attention.
>>
>>52646447
Currently employed in healthcare IT (payer side, but prior to this I worked clinical), and I can tell you that large swaths of this industry are heavily entrenched in legacy MS tools.
A large part of what I do is build on/interface with the VB CRUD applications of the fucker who came before me.

Also listen to what >>52646534 says. The differences between C# and VB.NET are trivial (they are near feature parity afaik), but code doesn't port itself.
>>
>>52646534
>Your professor is doing you a favor in terms of a job.
No, he's just being stuck in his ways.
>>
>>52646362
Nope!
>>
>>52646454
it depends on what you're doing. code monkey desktop apps then yeah it doesn't matter. for game engines, hell yeah it matters.
>>
>>52644165
Why is that animu grill reading the back cover of K&R?
>>
>>52646268
$ ./main
> def fact(n) = if(n<2,1,n*fact(n-1))
> eval fact(1)
= 1
> eval fact(2)
= 2
> eval fact(3)
= 6
> eval fact(4)
= 24
> eval fact(5)
= 120
> eval fact(20)
= 2.4329e+18
> end


It fucking works!

I don't know why but I don't give a shit
>>
>>52646687
>grill
either it's a very poorly drawn grill or it's a trap
>>
>>52646653
Unless you're working for le bleeding edge Silicon Valley startups, being stuck with old tools is 100% perfect job preparation.
>>
>>52645111
You hardcoded that in, didnt you?
>>
I have a series of functions that need to be called in order. Each is error prone and may throw an exception. If any fails, I want to log it and continue. This is what I wrote:
try {
funct1();
} catch (e) {
log("error!")
try {
funct2();
} catch (e) {
log("error!");
} try {
funct3();
} ...
This is terrible. Is there a better way
>>
>>52646711
VB is disgusting and the industry hardly uses it
>>
>>52646804
>VB is disgusting
granted.

>the industry
which?
>>
>>52646522

Well damn. Many schools actually have a bias for their own students. Nonetheless, I would recommend you to check a few other schools out if a master's degree is the way you want to go. Otherwise... just use your current boss as a reference and go program somewhere.

>>52646682

In general, if performance or compatibility with certain libraries/APIs matters, language matters. If productivity matters more, language choice slides to whatever one can be most productive in. For many, that language is Python, C#, or Java, and thus I have seen many jobs that request those skills.
>>
>>52646701
$ ./main
> def ack(m,n) = if(m=0,n+1,if(n=0,ack(m-1,1),ack(m-1,ack(m,n-1))))
> eval ack(1,2)
= 4
> eval ack(2,0)
= 3
> eval ack(2,1)
= 5
> eval ack(3,0)
= 5
> eval ack(3,2)



uhh
how long should this be taking?
>>
File: 1439593367106.png (124KB, 1403x266px) Image search: [Google]
1439593367106.png
124KB, 1403x266px
how many LoC do you guys average a day?
>>
>>52646893
Does anyone know how many times ackermann(3,1) is supposed to recurse?
I've got it going and I'm up to like 40,000
>>
>>52646940
Like 5.
>>
>>52646940
Maybe 100-150. I don't code every day.
>>
>>52646893
probably not as long as it takes in your meme lang but it will take some time for larger parameters at least
>>
>>52646989
Just passed 200,000
is this supposed to happen?
>>
>>52647029
>how do i google
>>
>>52647029
are you sure its lazily evaluating?
>>
>>52647028
friend, I can guarantee you that that language is not a meme lang because I'm literally the only person on earth using it
>>
>>52647055
so it's a hipster lang

do you even know what ackermann's function is?

https://www.youtube.com/watch?v=i7sm9dzFtEI
>>
>>52646989
>>52647029

The ackermann function is notorious for blowing up really fast in the amount of recursion it requires.

https://en.wikipedia.org/wiki/Ackermann_function#Table_of_values
>>
>>52647052
Well it doesn't even resolve function calls if it doesn't need to, so yes

>>52647038
What should I google then? I can't find a table

>>52647066
>>52647077
jesus, I know what the function is, I just want to know if it's normal that I get ack(3,0) instantly but ack(3,1) is literally still going as a speak

I wrote the interpreter myself and haven't optimised anything yet so I get that it's going to be slow as shit. I just want some information on precisely where it's supposed to go from taking milliseconds to taking more than a few minutes
>>
>>52647101
okay I wrote the code in C and it looks like ack(3,1) is only supposed to recurse 15 times, so either my definition is fucked or my interpreter is fucked
>>
>>52647133
https://www.youtube.com/watch?v=i7sm9dzFtEI

yeah and at 10 mins into this vid it had a bit of a gasp of air at ack(4,1) but not at ack(3,1) apparently
>>
>>52647148
So I guess it's fucked then
I'm reasonably sure my definition of the ackermann function is sound, so it must be something within my interpreter

I think the fact that I don't have the faintest fucking clue how my code works is going to be a bit of a problem after all
>>
>>52647349
> def fib(n) = if(n<3,1,fib(n-1)+fib(n-2))
> eval fib(23)
= 28657

lmao that took like 2 minutes I'm gonna have to optimise the shit out of my code
>>
>>52647562
what did you do, write your interpreter in python?
>>
in Java is there a way for me to display every entry that has an integer value above 0?
>>
>>52647562

>using an O(2^n) fibonacci interpretation
Yuck. No wonder it took 2 minutes.
>>
>>52647578
``if"
>>
File: 1430853197680.png (331KB, 474x432px) Image search: [Google]
1430853197680.png
331KB, 474x432px
>>52647581
>using recursion at all

fib(8) using iteration: 1 1 2 3 5 8 13 21

fib(8) using recursion:
fib(8) = fib(7) + fib(6)
fib(7) = fib(6) + fib(5)
fib(6) = fib(5) + fib(4)
fib(5) = fib(4) + fib(3)
fib(4) = fib(3) + fib(2)
fib(3) = fib(2) + fib(1)
fib(2) = 1
fib(1) = 1
fib(3) = 2
fib(4) = 3
fib(5) = 5
fib(6) = 8
fib(7) = 13
fib(8) = 21

which is more elegant and useful?
>>
>>52647585
>>52647578

I meant from a HashMap specifically.
>>
>>52647570
No, D

even if I had written it in python, it wouldn't be substantially slower. The performance killer in something like this is the way I implemented it, not in what language I implemented it

>>52647581
>>52647597
I'm doing it to test my recursion, and there's not really a better way than to give it a bitch of a function to evaluate
>>
>>52647597
> not solving it in O(logN)
>>
>>52647617
python is up to 50-100x slower with the same way of implementing it depending on the task
>>
>>52647612
``if"
>>
>>52647624
>not solving it in O(1)
>>
>>52647612
iterate through this and check if they're > 0

https://docs.oracle.com/javase/7/docs/api/java/util/HashMap.html#values()
>>
File: mayday.webm (2MB, 718x404px) Image search: [Google]
mayday.webm
2MB, 718x404px
Ask your much beloved programming literate anything.

>>52647578
Map<String, Integer> foo = new HashMap<>();

// ...

foo.forEach((key, value) -> {
if(value > 0) {
System.out.println(value);
}
});
>>
>>52647597

We'll let fibh be a "helper" function for fib that uses arguments to store results of subproblems.

fib(8) = fibh(8, 0, 1)
= fibh(7, 1, 1)
= fibh(6, 1, 2)
= fibh(5, 2, 3)
= fibh(4, 3, 5)
= fibh(3, 5, 8)
= fibh(2, 8, 13)
= fibh(1, 13, 21)
= fibh(0, 21, 34)
= 21


And thus recursion isn't so terrible, is it?
>>
>>52647668

Thanks. A small edit to this and I got exactly what I was after for a shitty text adventure inventory system.

>>52647652

This will be very handy in the future as well. Thank you.
>>
>>52647758
it's not too horrible but at that point you may as well use a loop inside of fib that does the same thing as fibh. i don't get the appeal of using recursive functions in place of trivial loops
>>
>>52647101
Number of calls for A(m,n):
m/n  0     1     2     3     4
0 1 1 1 1 1
1 2 4 6 8 10
2 5 14 27 44 65
3 15 106 541 2432 10307

A(3,4) only takes 5ms in Python, so it shouldn't be taking minutes in any language.
>>
>make the evaluate function write its input to the console, for debug purposes
>run fib(10)
>see this after a while
I mean it works, eventually, but fucking hell man
>>
Trying to learn Assembly, more exactly TASM so I can use it in other programs and because it's an interesting language to know about.
>>
>>52647807
> i don't get the appeal of using recursive functions in place of trivial loops
People seldom write a fibonacci function because they have some practical use for the results. It's far more common for it to be used as an example of some concept in mathematics or CS.

One of the areas where it occurs frequently is in dynamic programming, where it's the canonical "hello world" example.

Challenge: write a version that computes fib(n) modulo m, for large n (e.g. 10^20), in a reasonable amount of time (modulo because you can't even fit the numbers in memory, let alone perform the calculations in any reasonable time frame).

You *can* do that with a loop, but even if you do, you're probably going to start with a recursive formulation just to figure out the course of values (and most people will settle for just memoizing the recursion).
>>
>>52647988
i still think iteration is the most obvious and intuitive way to generate fibonacci numbers. you start with the base case and take the sum of the last two numbers to get the next one and so on until you get to the one you want. and dynamic programming is an awful buzzword
>>
>>52648043
> i still think iteration is the most obvious and intuitive way to generate fibonacci numbers.
Recursion is the most *obvious* way, because that's how the Fibonacci numbers are actually defined.

Iteration is more practical if you want to enumerate all of the Fibonacci numbers in order.

It may even be more "practical" if you want specific values for very small N (i.e. just generate all of the values in sequence up to the largest one required), in the sense that it may not worth be worth the effort of writing a more efficient approach for the sake of a few microseconds.

But if you want F[n] for arbitrary n, computing the entire sequence up to that point is rather inefficient to say the least.

> and dynamic programming is an awful buzzword
You not understanding something does not make it a "buzzword".
>>
what's the simplest way to replace a regexp in a file using Python
i'm trying to do something like
def step4(input):
with open(input,'rw') as file:
regex = re.compile(r'HI[A-Z]')
for line in file:
line = regex.sub("HIS",line)


but it doesn't work !
>>
>>52648245
>dynamic programming is a method for solving a complex problem by
>breaking it down into a collection of simpler subproblems
this part is just basic problem solving/common sense
>solving each of those subproblems just once, and storing their solutions
this part is obvious if you're solving something complex where the memory storage and lookup is cheaper than computing the result again
>>
File: werk.jpg (1MB, 3264x1836px) Image search: [Google]
werk.jpg
1MB, 3264x1836px
I'm going to a cc during the day to finish off a as in computer networking hardware, most the classes are a joke but it i get to sit for the CompTia and CCNA cert test. I have been interested in learning programming on the side and with my night gig I basically get paid $9 an hour to do so.

Code Academy seems kind of gimmicky, I have been going slowly through the python course taking notes and making sure I get everything but I am worried this is a bad way to learn. Should I just lose the note book and blow through the sections then fuck around with what I learned while filling in the blanks as I need too? After I have a grip on this I would like to be able to move on to Java or C in a month or two if that's possible, any recommendations on how to approach this?

>pic related my desk right now
>>
What are the vantages of learning python instead of Java?
>>
>>52648570
python has a load of pre-fab libraries that enable you to do basic tasks with ease. for example plotting graphs or downloading images from the web
>>
>>52648616 (Me)
but that's pretty much the only advantage of python. definitely learn java, especially if it's your first programming language.
>>
>>52648570
I'm the night shift bro, I only started with python because I heard it's a nice place to begin. I see a lot of people suggest to make the choice based off of what you want to eventually create so maybe would start there.
>>
>>52648537
codecademy is shit

just start with java now you'll get a decent grasp of it in days or weeks

https://docs.oracle.com/javase/tutorial/
>>
>>52648537
For me the best thing is to fuck around with code, break it. See why certain things don't work
>>
>>52648645
Thanks for this man this looks solid, I still am gonna knock out the rest of the lessons but your link looks like a way better way to learn.
>>
>>52648537
Also don't listen to people on
>X language is shit! Change to Y
If you start doing that you'll never learn a single language. All languages have their uses
>>
>>52648673
python and all dynamically typed languages are legitimately shit
>>
>>52648691
Define shit, because I'm earning a good living off of what you call shit.
Or actually dont. Not like I'll listen to your arguments anyway
>>
>>52648673
Wrong

people kept telling me that until I got to D, and now I'm enjoying the shit out of it and I know a whole bunch of it
>>
>>52648570
cleaner syntax, dynamic, dynamically typed, doesn't enforce oop, doesn't need compilation.
>>
>>52648789
>cleaner syntax
kill yourself
>>
>>52648794
Did a python user strangle your family or something?
>>
>>52648794
why ?
>>
>>52648820
python's syntax looks like shit

java is cleaner and more consistent. just because you have curly braces and often more whitespace (which improves legibility) doesn't mean the syntax isn't clean.
>>
>>52648832
https://news.ycombinator.com/item?id=1803815
>>
>>52648816
>python user
notice how you say 'python user' while you would say 'java programmer'.

>>52648841
kill yourself
>>
File: 1441684460338.jpg (92KB, 1280x720px) Image search: [Google]
1441684460338.jpg
92KB, 1280x720px
>>52648789
>Listing 'dynamically typed' as a pro
>>
File: overthesun.png (3MB, 4961x3508px) Image search: [Google]
overthesun.png
3MB, 4961x3508px
[- Python -]
> http://www.python.org/

Friendly reminder that python is the top notch programming language
and has been heavily adopted by the industry and the academics.

Python has events and conferences all around the world:
> http://www.pycon.org/

Python even has a video repository!!
> http://pyvideo.org/

Find your local pythonistas group
> http://wiki.python.org/moin/LocalUserGroups

Join python and become a true computer scientist.
>>
File: Bait.png (114KB, 955x957px) Image search: [Google]
Bait.png
114KB, 955x957px
>>52648886
>>
File: 1452635429762.jpg (67KB, 416x508px) Image search: [Google]
1452635429762.jpg
67KB, 416x508px
>>52648886
>>
>>52648886
Replace python with C# and you're on to something here
>>
>>52648919
Being a Microcuck is just as bad as being a meme-snaker.
>>
How would this be writ in Haskell (from c#)?

public class Node {
String value;
Node parent;
Node son;
...
}
>>
>>52646940
300+ if it's a good day and I'm starting out on a project, but most days around 20-30 for one function I'm working on.
>>
>>52648919
>>52648931
Both are fine languages.

Can't we all just get along?
>>
>>52648964
https://wiki.haskell.org/Algebraic_data_type
>>
>>52649001
No! I have to brainwash new people in to using MY language instead of some other language
>>
>>52649001
python really isn't fine
>>
I'm tryna figure out how to randomly select an element of an array within a certain range in javascript.
>>
>>52649094
http://www.w3schools.com/jsref/jsref_random.asp

Use the random function, and use the length of your array.

http://www.w3schools.com/jsref/jsref_length_array.asp
>>
Alright you guys convinced me. I'll drop learning python and instead learn Ruby
>>
>>52649081
for more, see >>52639500
>>
>>52649217
Ruby is pretty much the same; actually even less universal - Python can be at least used in science and/or some sysadmin stuff; Ruby is mostly just web via Rails.
So between Ruby and Python I chose the latter.
>>
>gay mods delete the real /dpt/ and leave the fake /dpt/ intact
Thanks, hiroshima nagasaki!
>>
Can I get my code reviewed here? A company gave me an exercise for their graduate java position and I haven't heard anything for over a week now. I didn't think my code was that shit desu, but maybe someone on this thread could tell me.
>>
>>52649382
Sure, anon. Post your fizzbuzz here. I'll take a look.
>>
>>52649358
kill yourself trap spammer
>>
I want to be able to take screenshots of a whole page in a browser, or an entirety of a class file in Visual Studio.

How the hell do you achieve that? I can't seem to find any references to anything in regards to this.
>>
>>52649218
kek the python shitter himself admits that python isn't great

>>52647874
>All in all - a decent programming language, as long as you're not a programmer.
>>
>>52649401
>be literal cancer figuratively
>tell other people to kill themselves
LOL
>>
>>52648310
Wanting to be able to store and re-use the answers to subproblems is one thing. Actually figuring out how to do that can be rather more involved.

First off, there's the issue of how you actually break up the problem so as to minimise the number of subproblems and maximise their re-use. (Project Euler problem 161 is fundamentally about this: changing the order in which you place pieces affects whether the running time is seconds or days).

Then there's the issue of identifying the lifetime of a result. If the problem is large, you can't simply store every intermediate result indefinitely. Ideally, you want to discard results once they are no longer needed.

Then there's top-down (recursion with memoization) versus bottom-up (for which iterative fibonacci is the simplest example). Any recursive approach can trivially be memoized (albeit with varying utility), but "reversing" that to determine in advance which subproblems need to be solved (and the lifetime of their result) is what makes DP more than just "cache results". Also, you ideally want to be able to refer to results via compact (e.g. integer) indices rather than a parameter tuple which could potentially be rather large.

Finally: not everyone considers top-down approaches to actually be "dynamic programming", instead reserving that term for bottom-up approaches and treating top-down as a precursor to an "actual" DP approach.
>>
>>52649217
ruby is also shit, actually even shittier, you shitter
>>
>>52645216
>Rust
Heavily infested by SJWs (just like Mozilla in general), approach with caution.
>>
>>52645216
>look at trash and dogshit, they're not designed in the last year, but theyre newish.
>>
>>52644911
nim is currently in the process of being designed
>>
>>52644911
>designed in the last year
Ain't gonna happen.
>good new languages
Mezzo
>good languages
OCaml, Mezzo, ATS, F#, that's it.
>>
>>52649457
nim is currently the shittiest language on the planet.
>>
File: bCmBtqz.png (464KB, 600x600px) Image search: [Google]
bCmBtqz.png
464KB, 600x600px
V U L K A N
>>
>>52649459
The fuck is Mezzo? Not bothered to look it up. Sell it to me with one sentence.
>>
I have an assignment that involves Java/Android Studio development

How do I do it without killing myself?
>>
>>52649505
Is not C.
>>
>>52649511
you drop out and go for something less retarded
>>
>>52649478
M E M E
>>
>>52649505
It's ocaml with a permissions-based typesystem (which is a very powerful version of linear types).
>>
>>52649540
It's one assignment out of an entire course
>>
>>52649537
then it's shit
>>
>>52649511
why are you even in school for this, you can figure this out by yourself
>>
File: enterprise.jpg (93KB, 739x710px) Image search: [Google]
enterprise.jpg
93KB, 739x710px
>>
File: 70y9n.jpg (30KB, 480x360px) Image search: [Google]
70y9n.jpg
30KB, 480x360px
>>52649552
>>
>>52649553
then just do it you memeing pussy ass faggot

android is kinda shit but java isn't bad at all you memetard
>>
Trying to right some basic newsgroup scraper for anime in [spoiler]nodejs[/spoiler]
http://pastebin.com/w5qma7Me

Probably doing a lot wrong, I'll actually try and learn javascript at some point.
>>
>>52649565
what am I looking at?
>>
File: 94fMJPU.jpg (105KB, 734x960px) Image search: [Google]
94fMJPU.jpg
105KB, 734x960px
>>52644911
http://justpaste.it/qx6e
>>
>>52649590
>filename
>>
>>52649590
Typical enterprise code.
>>
>>52644691
Python is good.
>>
>>52648570
> What are the vantages of learning python instead of Java?
Python has a REPL (read-eval-print loop, i.e. you can type stuff in and get results out), Java doesn't. Also, it has operator overloading and NumPy.

If you're developing substantial software and you basically know what it's going to do and how to do it, pick Java.

If you're doing exploratory programming, particularly anything with a math bias, pick Python.
>>
>>52649570
Either you've never programmed in Java or you do it all the time as a professional faggot
>>
>>52649597
If your IQ is sub-70.
>>
>>52649590
enterprise callstack
>>
>>52644691
>Haxe looks kind of dead
https://github.com/HaxeFoundation/haxe/commits/development
>>
>>52649598
Numpy is dogshit compared to the plethora of software of the same class available in java. Numpy is such shit that in version 1.8, it didn't correctly calculate mean on vectors for a long time.
>>
>>52648570
If your only two choices are Java and Python you should probably just give up
>>
Where does sublime text 3 store the build systems on linux? I want to add a python3 build system and in theory I'd only need to change "python" to "python3" in the default build systems. But where are they?
>>
>>52644691
OCaml of course!
>>
>>52649426
In firefox you can use the command line.
Shift-F2, then type screenshot --fullpage
>>
>>52649621
>he fell for the sublime turd meme!
>>
>>52649608
Haxe is written in ocaml. Cut the middleman, use a real language NOW!
>>
>>52648886
>Python has events and conferences all around the world
>> http://www.pycon.org/
Your friendly reminder that PyCons are infested by feminists who would eavesdrop on your conversation, hear "forking a repo", think it's the sexual reference, claim they fear for their lives, harass you via Twitter and get you fired.
(google DongleGate)
(For bonus points, the bitch who did it ran for PSF board of directors.)
>>
>>52649163
Mozilla's MDN is preferable for reference over W3schools, which contains a lot of incomplete, outdated and/or misleading info.
>>
>>52649434
don't hate on me, dude!
I was young and stupid, and I needed the money.
>>
>>52649639
OCaml is written in C. Cut the middleman, use a real language NOW!
>>
>>52649633
Works p. good for me.
>>
>>52649664
Nope, it's written in ocaml. CUT THE MIDDLEMAN!
>>
>>52649664
interpreter is written in c, native compiler is written in ocaml.
>>
>>52649664
the compiler is written in OCaml actually
>>
>>52649666
Notepad would work "p. good" for you.
>>>/reddit/
>>
>>52649426
>>52649628
I guess for the code you could do this by pasting it into http://hilite.me/ and using firefox to generate the image
>>
>>52649639
who care ? haxe is a meta-compiler which compiles to c++, c#, java, python, actionscript, javascript, ...
>>
>>52649686
Yes it would. You an eclipse babby or something? Why get this mad?
>>
>>52649698
Because OCaml is fast, high-level, significantly more usable than haxe, and the best language currently available.
>>
>>52649710
k tard, it doesn't even has parallel threads.
>>
File: story.chappelle.jpg (12KB, 220x168px) Image search: [Google]
story.chappelle.jpg
12KB, 220x168px
>>52649698
>codegen
>>
>>52649719
Is this 2015 in here?
It does.
>>
>>52649719
it does though. It's not 2015 anymore.
>>
http://www.podval.org/~sds/ocaml-sucks.html
>>
>>52649735
>70% wrong
>20% misunderstanding
>10% outdated
Wew!
>>
does ocaml have type classes yet
>>
>>52649735
That entire article is retarded. How about you tell us the part of it that most convinced you so we can carefully explain how much of an utter idiot you are.
>>
>>52649743
>100% meme
>>
>>52649728
>>52649729
there nothing about native threads in the change log, it's well know that ocaml has a GIL like CPython and CRuby.

https://github.com/ocaml/ocaml/blob/trunk/Changes
>>
>>52649774
https://github.com/ocamllabs/ocaml-multicore
>>
>>52649743
>>52649770
Nice arguments you got there friends. I am now completely convinced that that page is shit and you two anonymous posters are right.
>>
>>52649794
>why won't you take an hour to write up a thorough report on how 1+1!=3??? Waaaaahhh! Mommy! ;_;
>>
This is like a new yearly record for length of /dpt/ without a new thread.
>>
>>52649810
Exactly. And that's why nobody gives a shit about anything you ever produced in your worthless life.
>>
>>52649770
>>52649810
>my favourite programming language was criticised
>better call the guy an idiot, that will show him!
mature response there, buddy
>>
>>52646464
you shouldn't post you name on a monoglian ladyboy drawaing site, bill
>>
>>52649867
>>52649835
The butthurt is so thick it's palpable.
>>
>>52649784
that was a side project done by a student and it has been terminated in april 2015. the last commit was 4 months ago. the official implementation of ocaml has no native threads.
>>
>>52649878
You can deny reality however much you like, but it will not change the truth anyway.
>>
>>52649395
Not exactly FizzBuzz. The exercise was this: http://codekata.com/kata/kata06-anagrams/

The code: https://gist.github.com/anonymous/30f99e03347a2154b95d

It finds the exact number of anagram sets that it's supposed to.
>>
>>52649599
epic meme

even if you think that for example C# is better, it's still only a little bit better than java
>>
>>52649876
>butthurt about a text document some russian guy wrote years ago
ok kid
good thing you're not obviously butthurt or anything
>>
>>52649871
...along with your Uni name

oh well. Can't spell 'canuck' without 'cuck' these days.
>>
New thread: >>52649919
>>
>>52649906
Your tears are delicious. Please don't stop posting.
>>
>>52649887
sure. if you take a look at the commits history, you will see that ocaml-multicore is only implemented on the bytecode compiler. lel.
>>
>>52650038
>being this much of a retard
That shouldn't be legal.
>>
how do i expand [(2,4)] to a list that is [(0,0), (0,1), (0,2), (0,3), (0,4), (1,0) ... , (2,0), (2,1), (2,2), (2,3), (2,4)] in haskell?
>>
>>52650078
The same as in any other language. You create two lists (in your case 0..2 and 0..4) and then compute the carthesian product using those.
>>
>>52650213
except in haskell you're supposed to use some built in meme function
>>
>>52650246
I don't even know HASKAL. Just write the cartesian product function yourself if there is none.
But that would be retarded, because the result that you want is literally a cartesian product (except the input isn't required to be a set and the output isn't, either).
>>
>>52650304
haskell is retarded
>>
>>52650372
you're hasklel kek
>>
>>52650213
>[(0,0), (0,1), (0,2), (0,3), (0,4), (1,0) ... , (2,0), (2,1), (2,2), (2,3), (2,4)]

got it [(a,b) | a <- [0..2], b <- [0..4]]
but say i now have list1 and list2 how do i compute every list elem of 1 minus all list elem of 2, say: elemL1 - elemL2atPos0, elemL1 - elemL2atPos1 ?

i think that is similiar to yielding in scala
>>
>>52649922
Dumbass
Thread posts: 359
Thread images: 34


[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.