[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: 316
Thread images: 45

File: tmp_17449-1484450506936122973678.png (102KB, 1000x1071px) Image search: [Google]
tmp_17449-1484450506936122973678.png
102KB, 1000x1071px
What are you working on, /g/?

Old thread: >>58739732
>>
File: miyako_code.png (2MB, 1280x720px) Image search: [Google]
miyako_code.png
2MB, 1280x720px
>>58746848
How do I install SciPy??
>>
Second for D
>>
Trying to figure out the krivine machine and rice my desktop
>>
>>58746879
sudo rm -rf ~/ --no-preserve-root; sudo apt-get install scipy
>>
After taking a programming languages course last semester I developed an appreciation for Lisp, so I've been working through Clojure for the brave and true. It's a really cool book and I'm loving Clojure so far.
>>
>>58746938
Clojure is an excellent example of a decent language ruined by Java.
>>
>>58746944
This.
Lisp Flavored Erlang > Clojure.
>>
working on my autism grid aka game of life, it's the most fun i've had in a while, i'd like to make a 3d version eventually using opengl.
>>
>>58746944
I really just chose Clojure because of the book. I figure if I learn functional programming through Clojure, I can transfer that knowledge well enough to any other functional language like Haskell or Erlang.

Speaking of which, does anyone know what the job market is like for functional programming? I assume there aren't a lot of jobs out there, but there are at least some, and I know there aren't many competent functional programmers out there.
>>
>>58746977
If your ONLY goal is to learn functional programming then drop everything else and learn Haskell immediately. If you want to learn a lisp that runs on the JVM then learn Clojure. It's not purely functional. Haskell will teach you the hardcore ins and outs of functional programming like no other language possibly can (well, besides ML, OCAML, etc.) and is fairly easily accessible. Just be prepared to read a lot of graduate level papers.

Job market isn't good for these languages but that doesn't mean they aren't used. Just that companies aren't looking for a "Clojure programmer" or "Haskell programmer". That being said they do look good on a resume since they aren't generally taught in college and it shows that you have initiative to learn things on your own.
>>
>>58746977
If you want to learn a Lisp and aren't married to the JVM, Racket or CL is probably a better choice.

Take that with a grain of salt, though. If you enjoy Clojure then fuck what everyone else thinks.
>>
>>58747006
>they aren't generally taught in college
My university had a class where we learned Haskell (but the paper was also about programming languages in general).
It wasn't compulsory though.
>>
>>58746977
>does anyone know what the job market is like for functional programming?
it doesnt exist
unless you want to teach functional programming to other idiots
>>
>>58747006
Interesting. Thanks for your thoughts. I'm probably going to continue with Clojure for right now just because I have some momentum already, but Haskell will likely be my next undertaking.
>>
File: tmp_17449-wall-1427748647.jpg (73KB, 360x480px) Image search: [Google]
tmp_17449-wall-1427748647.jpg
73KB, 360x480px
>string operators aren't overloaded arithmetical ones
>isn't prone to indentation errors
>countless modules to work with
>Larry Wall is chill as fuck

Is Perl /our/ language?
>>
>>58747145
Perl is garbage.
It's his fault that regex sucks so much these days.
>>
>>58747145

>string operators aren't overloaded arithmetical ones
That's not necessarily a good thing. + and * with regards to strings just kinda make sense.

>isn't prone to indentation errors
Most languages aren't. Yet those that are, are at least more pleasant to work with than Perl.

>countless modules to work with
This describes a lot of languages.

>Larry Wall is chill as fuck
Matz is pretty chill himself.

>Is Perl /our/ language?
Oh hell no. It's write-only weakly-typed garbage.
>>
if you want to learn perl, learn ocaml instead
>>
File: bg_head_middle.jpg (93KB, 900x150px) Image search: [Google]
bg_head_middle.jpg
93KB, 900x150px
FreeVMS is looking for developers.

FreeVMS (VMS stands for "virtual memory system") is not just another Unix, is a real-time operative system with tight integration with the base system, DCL (DIGITAL Command Language), and also perfect for routers.

Developers are welcome!
Main page http://www.freevms.net/
Github mirror https://github.com/ztmr/FreeVMS
>>
>>58747481
this isn't a billboard
>>
>>58747481
how can I contriboot?
>>
>>58747481

Your last commit was 3 years ago. Doesn't really look like something under active development.
>>
>>58747517
cant say it wouldn't be fun to port to aarch64 tho
>>
>>58747510
maybe port it to your favorite router and share your progress on github

>>58747517
he can pretty much fork the project, and is welcome to
>>
>>58747533
i can port it to qemu arm64 virt machine
and thats it
>>
>>58747538
that is more than good, I am looking forward to it
>>
>>58747544
nevermind, read the source and i changed my mind
>>
What are the top 5 programming languages of 2017?
>>
>>58747602
1. Rust
2. Rust
3. Rust
4. Swift
5. Rust
>>
>>58747602
C, Lisp, Haskell
>>
>>58747602
Pyfun
C+fun
Haskfun
FunScript
Fun on Rails
>>
>>58747651
>no Fun++
>>
File: 1450820884090.png (773KB, 1000x1000px) Image search: [Google]
1450820884090.png
773KB, 1000x1000px
>>58747655
It's a top 6 then! 6 way tie!
>>
Should I learn Common Lisp or Racket?
>>
>>58747655
Never heard of it
>>
>>58746879
haha had the same problem for the last 2 days and lost all patience on win10, went on my mint in virtual box and shit werks.
>>
>>58747257
>>string operators aren't overloaded arithmetical ones
>That's not necessarily a good thing. + and * with regards to strings just kinda make sense.
They don't, at all.
>>
>>58747651

Give me fun without rails.
>>
https://www.youtube.com/watch?v=7GewtqGrjJ0

the absolute STATE of haskell discussion
>>
>>58747744

Tell me, how many uses can you think of for the English word "to add"? Now tell me how it is that when you read "add a to b", commonly depicted as "a + b", that a and b should necessarily only be numbers?
>>
>>58747602
1. Krakatoa
2. E
3. Arse9
4. Forth 2000
5. Rust++
>>
File: gununu reinhard.jpg (85KB, 640x480px) Image search: [Google]
gununu reinhard.jpg
85KB, 640x480px
>>58747753
>listen to this for a bit
>think i must have been listening for 10-15 minutes
>im 2 minutes in
>>
>>58747768
What you're doing isn't addition though
It's appending one collection of character codepoints onto another
How many of the properties of addition are fulfilled?
What's so bad about using another operator, a new wholesome operator, with good firm rules?
>>
do you write the address you want the PCI device to respond to on the BARs or do you do something else with them?
>>
File: god_of_evil_of_clustering_hell.png (684KB, 1139x742px) Image search: [Google]
god_of_evil_of_clustering_hell.png
684KB, 1139x742px
Bisqwit reads the Bible with a terminal based program. I want it too.

Where can I get that program and the Bible?

https://youtu.be/oVyx9L3IGfs?t=2h26m30s
>>
>>58747602
1.Java.
2.A
3.V
4 A
5. .
>>
>>58747803
>How many of the properties of addition are fulfilled?
identity and associativity are fulfilled so i'm guessing most of them.
>>
>>58747753
Thanks really enjoying this video
>>
>>58747803

/*
add
ad/
verb
verb: add; 3rd person present: adds; past tense: added; past participle: added; gerund or present participle: adding

1.
join (something) to something else so as to increase the size, number, or amount.
"a new wing was added to the building"
synonyms: attach, build on, join, append, affix, connect, annex; More
include, incorporate, throw in, toss in;
admix
"the back room was added in 1971"
antonyms: remove
increase in amount, number, or degree.
"watch those air miles add up!"
synonyms: increase, magnify, amplify, augment, intensify, heighten, deepen; More
compound, reinforce;
add fuel to the fire of, fan the flames of, rub salt on the wound of
"her decision just added to his woe"
put or mix (an ingredient) together with another as one of the stages in the preparation of a dish.
"add the flour to the eggs, stirring continuously"
put (something) in or on something else so as to improve or alter its quality or nature.
"chlorine is added to the water to kill bacteria"
contribute (an enhancing quality) to something.
"the canopy will add a touch of class to your bedroom"
*/


>it's appending one collection of...
>synonyms: ... append
>>
>>58747855
>>58747780

there are a ton of videos on that channel that were all added about 3/4 months ago
>>
>>58747842
All properties must be fulfilled.
Successor and commutation are quite important.
Don't think there's much good to overloading a common mathematical operator to something quite different. It's part of what gives operator overloading such a bad reputation.
Don't have to agree with me, neither of us are language designers and therefore this entire discussion is sand in the wind, so I'm fairly frustrated with myself for posting.
>>
>>58747919

Not all addition is mathematical addition. Not all mathematical properties must be fulfilled.
>>
>>58747919
>All properties must be fulfilled.
only if you want to argue that it's literally addition, which nobody is arguing
>>
>/dpt/ hates "1"+"1"-"1"==10 behavior
>several threads later /dpt/ advocates for this behavior
Never change, /dpt/.
>>
Hello I was gonna ask a question but I figured out the answer while typing and now I'm just unsatisfied that I didn't get to interact with you beautiful people
>>
>>58746848
I am currently using kdevelop, but the syntax highlighting annoys me and doesn't display the things I need from a syntax highlighter.
Should I rewrite, disable or adjust?
>>
>>58747963
it's like you're reading the views of several people instead of a consistent hivemind
>>
is Haskell Platform broken for anyone else?

>>58747963
Who advocated that?
>>
>>58747963

"1" + "1" == "11" is fine.

Subtracting further from that, if it were to be defined, should produce "1". Operator overloads on strings should always return other strings, and never implicitly cast. That said, subtraction defined on a string is kind of an awkward thought. Addition (string append) and Multiplication (string repetition) make sense from a plain English interpretation.
>>
>>58747993

No one. Anon seems to think that just because I advocate for operator overloads means I also advocate for weak typing.
>>
>>58747993
>is Haskell Platform broken for anyone else?
yes, you shouldn't use it
>>
>>58748028
Strings are literally the free monoid on the set of unicode characters. Non-commutative monoids are *never* denoted with + and do not have inverses, so no "-" either. The appropriate symbol is a \cdot or similar.
>>
File: 1454670069902.png (142KB, 921x919px) Image search: [Google]
1454670069902.png
142KB, 921x919px
>>58744346
Because Scala means the comfyness of rich Java library with Java/JVM support.
Furthermore Scala can be used for both OO and FP. Java has gotten Lambdas since 8 while Scala has much more FP features than that.

I am very fascinated with the language and no /g/ memestar and Microsoft shills can ruin this.
>>
>>58748269
>>Why would you want that?
>Scala can be used for both OO and FP.
Why would you want that?
>>
>>58748272
FP can be really handy at times, OOP can be handy for GUI programming 2bh
>>
I'm trying to create a label that simply shows time ticking up starting at 0 in C#. So for example i'd run the form and it start at 0 and just tick up every second.

I tried using Stopwatch.Elapsed.toString() but that only shows how long it took to run the program. I want it to keep running forever

It sounds super simple but I can't find an answer if anyone could help me i'd appreciate it
>>
>>58748294
https://stackoverflow.com/questions/12535722/what-is-the-best-way-to-implement-a-timer
>>
looking for a good concurrent language to learn
should I learn Go or is it a meme?
>>
>>58748467
it's a meme
>>
>>58748467
What the hell is a concurrent language? Almost all languages support concurrency. Just use C++.
>>
>>58748488
>Recommending C++ for any purpose
Confirmed retard
>>
>>58747270
>if you need a hammer, use a screwdriver instead
>why ?
>because pajeet cuck nigger
/g/ in a nutshell
>>
File: 1483589998417.jpg (32KB, 720x510px) Image search: [Google]
1483589998417.jpg
32KB, 720x510px
>A #define line
defines a symbolic name or symbolic constant to be a particular string of characters
>string of chars

#include <stdio.h>
#define LOWER 0
#define UPPER 300
#define STEP 20
/* print Fahrenheit-Celsius table */
main()
{
int fahr;
for (fahr = LOWER; fahr <= UPPER; fahr = fahr + STEP)
printf("%3d %6.1f\n", fahr, (5.0/9.0)*(fahr -32));
}


What gives? #define defines a constant that points to "a string of chracters"
So UPPER should be string "300" instead of integer 300.
>>
>>58748498
I can think of several reasons. number one would be it being the absolute best language for almost any task. number two would be that it's necessary for working in some sections of the industry
>>
>>58748522
A string of characters IN YOUR SOURCE CODE.
How do you manage to be this stupid?
>>
>>58748525
>being the absolute best language for almost any task
Are you fucking serious?
Sepplefags seriously are delusional.
>>
>>58748516
>hammer
>screwdriver
Stop posting this you faggot
Your favourite languages are shit and you'll never convince anyone
>>
File: toolbelt anon.jpg (112KB, 1280x720px) Image search: [Google]
toolbelt anon.jpg
112KB, 1280x720px
>>58748516
>>58748548
Forgot pic
>>
>>58748522
it means a string of characters used literally as-in for text substitution in your source file
not an actual char array
>>
>>58748547
Of course I am. If you dislike C++ it's because you are unintelligent.
As a general rule, people that use c++ have a much greater intellect than other programmers
>>
>>58748557
I also enjoy Gintama

What language would Gintoki teach?
>>
>>58748547
Not an argument.
>>
>>58748559
Oh okay. I am guessing C compilers understand that an int (not long or unsigned int etc.) is being declared here
#define UPPER 300
>>
>>58748583
haskell because it's useless and unemployable
>>
>>58748498
Enjoy your fizzbuzzes while real men work on time-critical DSP applications or the browser you are using to post your stale non-arguments.
>inb4 muh C
Yeah, let's reinvent genericity with void pointers in every time we need it, great idea
>inb4 muh Rust
Rust is still slower than C++, and its ecosystem can't compete.
>>
>>58748608
But he's the strongest ever when he's not lazy
>>
>>58748608
>30 lines of haskell
>any business i want
>unlimited starting
>>
File: tired.png (13KB, 640x400px) Image search: [Google]
tired.png
13KB, 640x400px
>>58748602
>>
>>58748629
Calm down Jeb
>>
>>58748624
Can haskell beat madara?
>>
>>58748643
>madara
>"Strong"
>>
>>58748620
>genericity
Why are so many fags so concerned about this shit?
People aren't going to use your shitty general solution that probably fails on some unforeseen edge case.
All you're doing is piling on extra complexity onto your project for no gain.
Stop trying to solve the world's problems, just solve the problem at hand.

If you truly want to write a general solution, you seriously have to work for it. It's only something you need to do when you're writing a library.
>>
>>58748643
haskell could beat edo tensei madara even if he teamed up with reindhardt and vampire hunter D
>>
>>58748634
Ah I see
So if I define UPPER to 300

I can either
int i = UPPER or
long i = UPPER
>>
>>58748655
I’m not talking about Edo Tensei Uchiha Madara. I’m not talking about Gedou Rinne Tensei Uchiha Madara either. Hell, I’m not even talking about Juubi Jinchuuriki Gedou Rinne Tensei Uchiha Madara with the Eternal Mangekyou Sharingan and Rinnegan doujutsus (with the rikodou abilities and being capable of both Amateratsu and Tsukuyomi genjutsu), equipped with his Gunbai, a perfect Susano’o, control of the juubi and Gedou Mazou, with Hashirama Senju’s DNA implanted in him so he has mokuton kekkei genkai and can perform yin yang release ninjutsu while being an expert in kenjutsu and taijutsu.
I’m atalking about Kono Yo no Kyūseishu Futarime no Rikudō Juubi Jinchuuriki Gedou Rinne Tensei Uchiha Madara with the Eternal Mangekyou Sharingan (which is capable of Enton Amaterasu, Izanagi, Izanami and the Tsyukuyomi Genjutsu), his two original Rinnegan (which grant him Chikushōdō, Shuradō, Tendō, Ningendō, Jigokudō, Gakidō, Gedō, Banshō Ten’in, Chibaku Tensei, Shinra Tensei, Tengai Shinsei and Banbutsu Sōzō) and a third Tomoe Rinnegan on his forehead, capable of using Katon, Fūton, Raiton, Doton, Suiton, Mokuton, Ranton, Inton, Yōton and even Onmyōton Jutsu, equipped with his Gunbai(capable of using Uchihagaeshi) and a Shakujō because he is a master in kenjutsu and taijutsu, a perfect Susano’o (that can use Yasaka no Magatama ), control of both the Juubi and the Gedou Mazou, with Hashirama Senju’s DNA and face implanted on his chest, his four Rinbo Hengoku Clones guarding him and nine Gudōdama floating behind him AFTER he absorbed Senjutsu from the First Hokage, entered Rikudō Senjutsu Mode, cast Mugen Tsukuyomi on everybody and used Shin: Jukai Kōtan so he can use their Chakra while they are under Genjutsu.
>>
>>58748548
So you compile some OCaml or C code and badly reinvent the Perl/Python/Ruby stdlib each time you need to do some quick and dirty scripting ?
I shouldn't waste my time arguing with you anyway, your response will be "shut up pajeet kys" because you are probably a 14 years-old wannabe programmer who just discovered functional language are the hip thing.
>>
>>58748696
>autism
Edo Madara was immortal but whetever the fuck you are trying to describe was not.
>>
>>58748708
>badly reinvent
>stdlib each time
Are you new to programming?
>>
>>58748670
you can do any type
>>
>>58748714
C'mon
>>
>>58748708
But Bash+Awk+Sed are for quick and dirty scripting.
I don't need your filthy Perl, Python, Ruby, or whatever.
>>
File: come at me madara.jpg (42KB, 729x403px) Image search: [Google]
come at me madara.jpg
42KB, 729x403px
>>58748696
>>
>>58748696
Rust is what you seek, enlightened one.
>>
>>58748734
You mean ASM
>>
>>58748714
Have you honestly never seen this copypasta before?

>>58746848
>What are you working on, /g/?
Pretending I'm Micky Mouse from Fantasia, except instead of broomsticks and buckets and a wizard hat, I've got databases, Azure services, and C#.
>>
>>58748773
No, I'm pretty new here, since 2014.
>>58748723
Thanks
>>
>>58748773
Is C# the wizard hat?
>>
>>58748795
aye
>>
>>58748467
Take a look at Haskell, there are many parallelism and concurrency goodies.
Simon Marlow's book is really good resource on that
>>
>>58746848
github vs gitlab vs bitbucket

which should I go for and does it make a difference on a resume?
>>
>>58748829
Github for public repos
Bitbucket for private repos
>>
>>58748829

Bitbucket

Gitlab and Github are literally "fuck my wife" tier.
>>
>>58748829
i use github because normies know it. the other both are better, i use gitlab for private repos. it's down at the moment though.
>>
>>58748843
>Gitlab and Github are literally "fuck my wife" tier.
I get why you could say this about github but what's wrong with gitlab?
>>
>>58748829
If you know how to use one but not the other, don't bother with putting anything on your resume.
Github has more known projects, bitbucket is meme tier and gitlab can be hosted on your own server, so set that up for yourself and use it for private things.
>>
>>58748829
>>58748858
Didn't GitLab just completely fuck up all 5 of their backup strategies?

People's repos are being grouped into these massive arbitrarily named groups.
>>
>>58748731
Bash is ugly and is less flexible IMO.
But whatever float your boat, it is just that these pseudo-debates are useless and tiring.
They are at the same level as someone telling you that beans are better than vodka, or a door better than a window, and then responding "kys" if you point out that these things are unrelated.
Anyway, I should fuck off to reddit or lainchan, I know.
>>
File: wizardry.png (3KB, 640x400px) Image search: [Google]
wizardry.png
3KB, 640x400px
>>58748807
>>
>>58748868
What's a good gitlab server? Besides an old computer.
>>
>>58748899
>Besides an old computer.
Your current computer?
>>
>>58747006
How does one learn haskell in this day and age ?
>>
>>58748929
Where exactly did I say that my current computer is new? Your reading comprehension is pretty bad.
>>
>>58748942
IIRC everyone recommends the haskell book nowadays
>>
>>58748929
Doesn't that defeat the purpose of git which is to have a remote copy of everything?
>>
>>58748942
https://en.wikibooks.org/wiki/Haskell
>>
>>58748942
https://en.wikibooks.org/wiki/Haskell
or the haskell book (there's a link somewhere)

to install it, install stack, then call "stack update" "stack setup"
(you might need git for stack)
>>
File: 1481702886437.jpg (57KB, 720x540px) Image search: [Google]
1481702886437.jpg
57KB, 720x540px
>>58748696
Is being able to understand every part of this pasta a sign? Does it mean something?

I feel very bad about myself because I can understand it.
>>
>>58748966
Set up ssh and you can get it from anywhere.
>>
>>58748954
>>58748969
>>58748970
ty anons, im on it
>>
File: baka_big.png (2MB, 2000x2000px) Image search: [Google]
baka_big.png
2MB, 2000x2000px
>>58748983
>gigantic faggot
>namefag

Checks out.

Consider suicide in an entertaining way, while livestreaming it.

Would be neat if you wrote a modern-day Rube-Goldberg machine involving your favorite programming language interfacing with something mechanical that ultimately results in your demise.

Or maybe write it in such a way that is wasn't ""supposed"" to kill you so we have a death to blame on runtime errors and we can pass legislature banning Python from being used on heavy machinery.

You could be a martyr.
>>
>>58749037
> namefag starts streaming
> "if this program throws an exception, i shoot myself with a shotgun!"
> some trivial program in python
> throws a million meme exceptions for no reason
> world becomes better place
>>
>>58748670
you can do anything. look up "preprocessor magic". however you should avoid doing preprocessor magic as much as possible.
>>
>>58749088
> using @
>>
File: konami_hell.jpg (168KB, 564x1038px) Image search: [Google]
konami_hell.jpg
168KB, 564x1038px
>>58746848
Is there ever any real programming going on these threads? I've never seen an actual program or tool presented by an anon.
>>
GitLab.com melts down after wrong directory deleted, 5 separate backups fail, loses 300GB of customer data

https://www.theregister.co.uk/2017/02/01/gitlab_data_loss/
>>
>>58749123
Reminds me when we had someone run chmod -R 777 / in production, not comparable, but the server was basically bricked at that point.
>>
>>58749117
Occasionally someone will talk about an actual project or something they're working on, but really, there is no need to keep spamming the same shit over and over again, so usually it'll only be mentioned a couple of times at most.
>>
>>58749182
I don't know why that would "brick" the server, but I do understand how much of a pain in the ass that would be.
I assume you had to do it over because basically all of your security was compromised?
>>
>>58747677
bump
>>
>>58749123
GitFags blown the fuck out
>>
>>58749197
>I don't know why that would "brick" the server

Some basic components require a specific set of permissions in order to work properly
>>
Haskell is a complete joke when it comes to practicality. The developer tool stack sucks, the defacto standard compiler is grindingly slow and horribly badly written and virtually impossible to build much less develop, the REPL is a toy, the libraries are atrocious and the community consists almost entirely of smug weenies.

In contrast, the OCaml community are quieter because they spend their time solving real problems and shipping production code rather than publishing research papers about The Sieve of Eratosthenes (see Page on hmc.edu). Oh, and they're honest.
>>
>>58748970
if you want, haskell platform worked better for me on windows
>>
File: google.png (273KB, 2000x2000px) Image search: [Google]
google.png
273KB, 2000x2000px
>>58746848

1) A mobile card game with wifi direct duelling functionality. This is like a pet project of mine, more of a free time thing, but it's pretty fun

2) Mobile trivia app. I wanted to make it native at first, but after writing the basic logic, I decided to go with Unity, which allows me to use sweet particle effects and 3D models that rotate based on device's gyroscope. I'm making this app with a team, but I'm the only one scripting (we have 11 people). My own little plan is to sell a bunch of the individual scripts and features on the asset store as seperate packages.

3) A command line program which automatically generates various webpage templates in HTML and CSS. I intend to use it personally for my web dev work (it's the only work I do that actually pays, so speeding it up would be fantastic) and also maybe sell the executable if it ends up being efficient.

4) A windows form program that can take any online store and represent the data as native UI. It's meant to use keywords such as "Add to cart" and "wishlist" to determine which links do what. The main goal is to turn this into a mobile superapp that e-shop owners can purchase the rights to be added to, creating a universal app for every e-shop that matters, but I want to make a .NET version first since it's faster and easier for me to do. The hardest part is interpreting the data on the page, and that is mostly taken care of already.

So yeah, I have quite a bit of stuff I'm working on desu
>>
>>58749272
It didn't for me, and I don't know if you're using the new version.

Stack worked perfectly for me.
>>
>>58747602
swift has typeclasses so swift
>>
>>58749278
i tried it 6 months ago and couldn't get it to work in windows 10, cabal just works
>>
>>58749292
Stack just works, haskell platform does not
Did you actually try installing stack or were you using Haskell Platform stack?
>>
So theres the google hackathon coming up at my university, which programming language would be the best suited for this? I've thought about python, its pretty quick to put something together but I want to look at other options as well.

basicly you have to solve some retarded problem for google, like this:
https://hashcode.withgoogle.com/2016/tasks/hashcode2016_qualification_task.pdf
>>
>>58749218
racket
>>
>>58749303
of course i tried install stack, it didn't work at all. Failed when trying to install any packages. Which cabal installed just fine
>>
>>58749319
Why?
>>
File: idonthinkso.png (24KB, 583x265px) Image search: [Google]
idonthinkso.png
24KB, 583x265px
>>58749292
>cabal
>just works
>>
>>58749333
wasn't using loonix
>>
>>58749331
its fun, good docs
>>
File: 1481539961641.jpg (17KB, 353x332px) Image search: [Google]
1481539961641.jpg
17KB, 353x332px
In java, I want to pack 2 floats into a long. I use floatToIntBits and I get the integer representation of the float. however, when the float is negative I get back a number which is basically a long in bit form.

float 1: 30
float 2: -16

float 1 as int: 1106247680
float 2 as int: -1048576000

I put the first float in and shift 32 bit: 4751297606875873280
I convert it to bit and it is fine.
but when I convert the second float it is already 64 bits and overwrites the whole long. how can I fix it? do I have to covert it to an unsigned int?
>>
>>58749268
I keep falling for every meme.

I just want something with a focus on parallelism, static typing, fast as fuck, good for making servers, and doesn't take forever to learn

I don't know what to choose between Go, Clojure, Haskell, Java or just doing it myself with C++1x and std::async out the ass.
>>
>>58746848
>>
>>58749268
word up, but ocaml doesn't even have uints or function overloading (enjoy "+.")

https://www.youtube.com/watch?v=iSmkqocn0oQ&feature=share
>>
>>58746848
Doing some experiments on procedurally generating volumetric clouds, as well as a water shader that reacts to wind direction using simplex noise in unity.
>>
>>58749386
Bretty shit chart
>>
>>58749386
Timezone?
>>
>>58749376
I think I found the solution. I need to put the 4 bytes of the float byte wise. what a hack.
>>
>>58749513
EST

>>58749451
tips for gnuplot mastery?
>>
>>58749377
sounds a lot like go desu. rust also, but go has the tools that make concurrency, writing services easier, it's fast and it's simple af
>>
File: thewormsinsideofthedirt.jpg (45KB, 1280x720px) Image search: [Google]
thewormsinsideofthedirt.jpg
45KB, 1280x720px
>>58749292
>>58749333
>cabal just works
>cabal
>just works
>cabal
>works
>cabal
>>
>>58749377
Haskell has all that aside from maybe 'doesn't take forever to learn', which will depend on where you're starting from.
>>
i see that gentoo has a very large selection of haskell packages in portage and in the gentoo-haskell overlay, how does using them compare to stack/cabal?
>>
how can someone use haskell seriously. its probably one of the most cancer languages out there
>>
File: 1483911917891.jpg (89KB, 700x525px) Image search: [Google]
1483911917891.jpg
89KB, 700x525px
>>58749628
(You)
>>
>>58749646
No im serious. What is the actual real world use for it? I had in university last year and it just seemed to be an introduction to programming with a more math-like language
>>
>>58749612
just use the overlay
>>
>>58749538
>gnuplot
Use a better tool.
>>
File: 1484673201796.jpg (96KB, 600x709px) Image search: [Google]
1484673201796.jpg
96KB, 600x709px
>>58749655
(You)
>>
>>58749659
like?
not him btw
>>
>>58747615
>Cuck
>Cuck
>Cuck
>Cuck
>Cuck
>>
>>58748620
>he doesn't know about tagged unions
>he has never done serious C programming

Sad!
>>
>>58749734
Depends on the technology stack you're working with, including language and targeted output devices/audience.
>>
>>58749655
You can write programs, just like any other programming language
>>
>>58749806
So I should just learn mathematica/R/octave/wolframalpha?
C baby here
>>
>>58749855

Should the information be able to be distributed within an organization using AD, utilizing user groups?

Do you want the chart to be interactive?

Should it be embedded in a desktop application? A mobile application? What OS's will you target?

Do you want to make money on this? Do you have a budget to spend on tools?

Does the data refresh automatically when the information changes?
>>
>>58749941
>Should the information be able to be distributed within an organization using AD, utilizing user groups?
no
>Do you want the chart to be interactive?
not necessarily
>Should it be embedded in a desktop application? A mobile application? What OS's will you target?
desktop application
>Do you want to make money on this? Do you have a budget to spend on tools?
no
>Does the data refresh automatically when the information changes?
not necessarily

It just has to be fun
>>
>>58750017
>It just has to be fun
This is not anime, nigger
>>
>>58750017
Do you want it to be pretty?
>>
File: Screenshot_142.png (936KB, 644x644px) Image search: [Google]
Screenshot_142.png
936KB, 644x644px
>>58750030
>this is not an anime
>>
>>58750030
fun = not pain in the ass amateur shit
>This is not anime, nigger
It's not?

>>58750045
>Do you want it to be pretty?
nah not really
>>
>>58750110
Well, in that case, carry on.

I have no suggestions for any alternatives considering you have no ambitions or requirements for what you're doing.

I'm sure you're perfectly happy with what you have.
>>
>>58747481
DCL is a freaking cool language. I hope this project take off.
>>
>>58750125
I don't have something just tell me about your favorite graph thingy and I check it out.
>>
>>58750152
He's just messing with you, he doesn't know shit.
>>
I'm creating a browser in node-webkit
>>
Anyone here enter CS in uni just as a meme and ended up liking it?

I don't have much experience with programming but the idea of being comfy sitting on a computer interests me

At the same time, I'm really burnt out from my bad GPA and even the simplest python code gives me a panic attack.

I still want to keep my options open for later, because the idea of taking even longer and being surrounded by younger students make me crazy.

I don't even know if I like programming yet
>>
File: 1485584422448.jpg (234KB, 1030x1010px) Image search: [Google]
1485584422448.jpg
234KB, 1030x1010px
>>58750174
mean :(
>>
File: attempt.png (190KB, 960x1052px) Image search: [Google]
attempt.png
190KB, 960x1052px
How do I write a good assembler?
>>
>>58750273
use C
>>
>>58750196
Python is easy as shit. If you don't understand this code you're hopeless.

module man_or_boy

implicit none

contains

recursive integer function A(k,x1,x2,x3,x4,x5) result(res)
integer, intent(in) :: k
interface
recursive integer function x1()
end function
recursive integer function x2()
end function
recursive integer function x3()
end function
recursive integer function x4()
end function
recursive integer function x5()
end function
end interface
integer :: m
if ( k <= 0 ) then
res = x4()+x5()
else
m = k
res = B()
end if

contains

recursive integer function B() result(res)
m = m-1
res = A(m,B,x1,x2,x3,x4)
end function B

end function A


recursive integer function one() result(res)
res = 1
end function

recursive integer function minus_one() result(res)
res = -1
end function

recursive integer function zero() result(res)
res = 0
end function

end module man_or_boy

program test
use man_or_boy
write (*,*) A(10,one,minus_one,minus_one,one,zero)
end program test
>>
>>58750293
>writes python
>calls others hopeless
>>
File: 77328379831.jpg (53KB, 721x658px) Image search: [Google]
77328379831.jpg
53KB, 721x658px
>>58750293
>>
File: C3Vum4JUoAALVmf.jpg (237KB, 858x1200px) Image search: [Google]
C3Vum4JUoAALVmf.jpg
237KB, 858x1200px
>>58750308
dont bully pyfun!
>>
>>58750196
>I don't even know if I like programming yet
then you probably don't
>>
>>58750338
didn't you hear Obama, everyone needs to learn how 2 code
>>
File: 1479860171242.jpg (41KB, 643x580px) Image search: [Google]
1479860171242.jpg
41KB, 643x580px
>>58750308
>>
>>58750358
KING NIGGER'S NO LONGER KANG
>>
>>58746848
Friends, what is a possible usage of bitwise OR unsigned with 0?
>>
>>58750338
What else do I even like then? I'm not sure. I do audio engineering as a hobby but the employment options are depressing

I would really prefer to take a year off, but that'd set me back even further

I am seeing a counselor
>>
>>58750196
I chose CE so I would actually have a useful purpose in the world
>>
>>58749275
For the last one are you scraping? What if its java script or something and not a link desu?
>>
When I do programming exercises, I notice that I just type-compile-run-fix-compile-run through it until it works. Am I screwing myself over with this approach? Is it worth the time to go over my logic with pen and paper extensively before typing anything?
>>
>>58750492
>Is it worth the time to go over my logic with pen and paper extensively before typing anything?
depends on your goals. if you just want to """"""solve"""""" the exercise then no.
if you aren't a retard then obviously yes.
>>
>>58750431
Me too, but I'm seriously getting burnt out by the idea of coding and programming.

Everything is self-learning too
>>
>>58750492
The point of exercises is to learn to do it correctly. If you only care about getting it done then whatever I guess
>>
>>58750492
>Am I screwing myself over with this approach? Is it worth the time to go over my logic with pen and paper extensively before typing anything?
You'll never have any use of such skills because you don't program that way.
Maybe if this was 50 years ago or something.
>>
>>58750185
and I'm not using iframes
>>
>>58750535
It is for university though.
>>
>>58750492
It's bad if it prevents you from understanding why your solution works. If you're just mindlessly changing stuff and hoping it works, that's bad programming.
>>
>>58750273
>if else chain on consecutive increasing number
>build if a fucking string if digits just to convert it to a number later
>the numbet you're building up is apparently exactly cirrelated ti the inout, just shifted up by two

What the fuck are you doing?
That's a one liner:
(arguments[1][1] - '0') << 2
>>
>>58750601
Shh
Don't educate the pajeets
>>
I tried to keep my computing science degree as a backup, but university is just really burning me out.

I did know python before but everything triggers me and gives me a panic attack.

At the same time I don't know any other programs I would want right now.

I'm on the verge of getting kicked out because my GPA isn't good enough. (1.4)

I even have friends helping me out with the course material, but I am under constant anxiety and worry
>>
>>58750702
Maybe you should try something easier like teaching kindergarten
>>
How do I get out of a for loop if I want to end it when the user inputs the character i want. Like lets say user can only say: 'y' or 'n', but inputs something else. How can I have a loop that will keep going until user inputs the 'y' or 'n'.

This is in c++.
>>
>>58750759
>@
so should you
>>
When do use an if loop and when use case?
>>
>>58750702
I flunked out too, it's not the end of the world

Smoke more of the Herbal Jew
>>
>>58750846
kek
>>
File: 387946618571.png (564KB, 896x768px) Image search: [Google]
387946618571.png
564KB, 896x768px
I don't know why these CS faggots even bother to blog post on /dpt/ if they already know people will mock them.
>>
File: 8339374942.png (495KB, 500x500px) Image search: [Google]
8339374942.png
495KB, 500x500px
shit

short shortAudio = short.Parse(System.Text.RegularExpressions.Regex.Match(audioQualityCb.SelectedValue.ToString().Substring(2, 5), @"\d+").Value);
>>
>>58751042
b-but you won't shot yourself in the foot!
>>
>>58750846
Depends on the language

Generally if is for testing a condition, case is for testing many different possible values of some expression. However, switch/case in many languages only works for simple values, so if the expression has many complex values you may still need to use if.
>>
>>58750993
t. buttmad NEET with self-esteem issues
>>
>>58750403
None
>>
>>58751148
You just described /dpt/.
>>
>>58748255

>Non-commutative monoids are *never* denoted with +
In languages you use. As I see it, it is perfectly acceptable to use + with numbers, strings, lists, and sets as long as the operation you are performing falls in line with the commonly accepted definition of the English word "to add".
>>
>>58750767

char c;
for (c = getchar(); c != 'y' && c != 'n'; c = getchar()) {}
>>
>>58750993
>>
>>58751177
Monoids are not just for the homosexuals, Ruby.
>>
I really want to improve myself but personal issues are interfering with my coursework.
>>
File: 1470813260896.jpg (119KB, 839x835px) Image search: [Google]
1470813260896.jpg
119KB, 839x835px
>>58751217
Close the browser and start working
>>
>>58751217
Stop masturbating.
>>
>>58751217
Watch more anime
>>
File: c.jpg (58KB, 300x440px) Image search: [Google]
c.jpg
58KB, 300x440px
>>58751247
Pull the trigger
>>
>>58751217
Try reading more documentation and tutorials if you get stuck
>>
>>58751210

Never suggested it in the slightest, homo. ;^)
>>
>>58751247
>>58751254
>>58751268
It's more than just that.
>>
>>58751281
But suggestions are not just for the slight, Ruby.
>>
File: 266367.png (87KB, 290x286px) Image search: [Google]
266367.png
87KB, 290x286px
>>58751279
>reading documentation
>>
File: 1484891313782.jpg (146KB, 589x900px) Image search: [Google]
1484891313782.jpg
146KB, 589x900px
>>58751270
boom
>>
>>58751312
Are you useless?
>>
>>58751332
go ask ur mum
>>
>>58751327
>>
>>58751340
She says yes.
>>
>>58751327
I wonder what kind of weapon could do that
>>
>>58746879
anaconda winbaby
>>
>>58751217

What personal issues?

>>58751309

You're right. Sometimes being suggestive means being very explicit, Anon~
>>
>>58751445
Being explicit is not just for the homosexuals, Ruby.
>>
File: part5_img.jpg (55KB, 300x440px) Image search: [Google]
part5_img.jpg
55KB, 300x440px
Why is Scala like this
>>
>>58750601
thanks
>>
>>58751445
Personal issues like lack of motivation, anxiety, bad grades, no gf, no friends...
>>
>>58751042
You could make this much shorter.
>>
>>58751503
Sounds like your average anon.
>>
>>58751493
>young edgy tween trying to be different yet ends up like all the other edgy memelangs while being generally not preferred
>>
>>58751493
kys
>>
>>58751485

Oh no, anyone can be explicit, Anon. Though not everyone is receptive to explicit people, or even those just being highly suggestive~

>>58751493

Scala is young (13 years old now!), and her dad is Java. She hates her dad, so she dresses in mostly black and red, and dyed her hair to fit in with all of the other girls who hate their dad. She has heterochromia to represent her combination of object oriented and functional features.
>>
>>58751555
>>58751540
Oh okay
>>
>>58751503
>lack of motivation
you need discipline

>anxiety
code doesn't judge

>bad grades
start paying attention to lectures and actualyl try to learn something

>no gf
that's a good thing, women are only useful as cum dumpsters

>no friends
plenty of things to do without friends
>>
>>58751520
Yeah except I'm pretty good looking so it kills me even more
>>
>>58751555
Being receptive is not just for the homosexuals, Ruby.
>>
>>58751566
I know, but I'm so shook from my low GPA and bad decisions in the past

I know I will regret it in the end if I dropout, but things are traumatizing me
>>
File: rodge.jpg (74KB, 760x507px) Image search: [Google]
rodge.jpg
74KB, 760x507px
>>58751577
>>
>>58751577
Man the fuck up bitch. Take a long break and fix your life.
>>
anyone got the latest project roller image?
>>
any networking guru's here? im trying to run a batch file on a server from a remote computer (so it runs on the server, not my local machine). I'm connected fine but im getting "Access denied" in the command line, here it is:

wmic /node:server1 process call create "C:\test.bat"
>>
>>58751608
Why don't you fuckers just download it instead of asking for it every single thread?

Or even better, link it in the OP.
>>
File: to_beautiful.jpg (101KB, 1300x731px) Image search: [Google]
to_beautiful.jpg
101KB, 1300x731px
>>58751595
>>
>>58751631
this is my first time asking for it, never been at the point of being able to do anything on it, making it the OP image would be nice though IMO
>>
>>58751596
>>58751595
I already changed majors twice in second year

I want to take a break but I still have to get my GPA up
>>
>>58751655
>making it the OP image would be nice though IMO
Yes, it would be great to have 30+ roll posts every thread.

http://better-dpt-roll.github.io/
>>
Why is C so good
>>
What's the quickest way to learn programming? I had to learn some for a project in uni and I'm really enjoying it but I feel like it's taking me longer to get where I want to be than it should. Never taken a CS course or anything, entirely self-taught.
>>
>>58751503

>Motivation
Here is how I motivated myself during my bachelor's degree:
1. If I do not finish my course work, I will fail my classes
2. If I fail enough classes, I will drop out of school
3. If I drop out of school, I will be stuck with over 10 grand in debt and no credentials to my name with which to get a decent job.
4. Without a decent job, I will be unable to both pay back my loans and eat. Since the creditor is the federal government, my account can be frozen if I do not pay.
5. In such an event, it is possible that I may starve.

This is, of course, blown out of proportion. I can manage my money exceptionally well, and my debt never went exceptionally high. But just introducing the irrational thought of failure = death worked extremely well for me.

>Anxiety
See a psych.

>Bad grades
A problem that would be fixed if you would actually do your work.

>No GF, No Friends
For the former, fix all of your other problems first, and also clean yourself up and fix your hygiene. This will make you repel women less.
For the latter, join at least one club. Done.

>>58751578

Being homosexual is not just for the receptive, Anon~
>>
>>58751752
google edx harvard intro to CS or edx MIT intro python.
>>
>>58751752
>What's the quickest way to learn programming?
If any of us had an answer to this that applied to everyone, that person would be a millionaire.

You haven't even told us what you want to do with your programming skills. This is necessary for any recommendation.
>>
>>58751752
Start by learning the basics with any tutorial, then do a project and google when you don't know how to do something.
>>
>>58751756
Being Anon is not just for the homosexuals, Receptive.
>>
>>58751630

anyone?
>>
>>58751836
>bumping your post after 15 minutes

I found the answer in 20 seconds of Google'ing, was going to offer two possible suggestions (one for some syntax you're missing, one for permissions troubleshooting), but then I saw this.

>>>/g/sqt
>>
File: 1475161274093.jpg (396KB, 1280x720px) Image search: [Google]
1475161274093.jpg
396KB, 1280x720px
How does Linux know that an inode has a filesystem mounted on it?
http://tldp.org/LDP/tlk/fs/filesystem.html#tthFrefAAB Doesn't explain it at all.
I says it keeps a list of mounts, and it resolves the filename one directory at a time by calling the filesystem specific lookup method (starting from the root fs), which tells me that Linux completely ignores mount points.

Say I mounted a filesystem (we'll call it fs2) on /foo/bar.
Fs2 contains a file called "file" in it's root dir.

Now say we wanted to open the path "/foo/bar/file", this article says that this happens:
lookup "foo" from rootfs inode - inode 1 on rootfs
lookup "bar" from inode 1 on rootfs - inode 2 on rootfs
lookup "file" from inode 2 on rootfs - not found


Notice how the lookup of "bar" returns an inode from rootfs, instead of an inode from fs2. Because how the fuck is rootfs supposed to know that "foo/bar" has fs2 mounted on it? all the linux technical documentation I've read on google do not fucking explain this.
>>
>>58751908
Just read the code ;^)
>>
>>58751924
Reading Linux source code is not a viable option.
>>
>>58751924
All 15 million awful lines?
>>
>>58751751
>macros are a hack
>no features
>no polymorphism
>a pain to do string shit
whatever
>>
>>58751957
can somebody theoretically understand the source code in a small time frame?
>>
>>58751957
no, just the relevant parts dummy
>>
File: fifty.png (22KB, 693x397px) Image search: [Google]
fifty.png
22KB, 693x397px
>>58746848
I just taught myself how to type and I'm trying to learn java by making terrible games without help but I think I might be too dumb/lazy for this programming thing.

It's not that I can't understand an abstract idea or something but I think it's more about actual problem solving skills.
>>
>>58752017
>>It's not that I can't understand an abstract idea or something but I think it's more about actual problem solving skills.
Problem solving is literally what intelligence is.
>>
File: ?.png (7KB, 120x120px) Image search: [Google]
?.png
7KB, 120x120px
how to sum 2 numbers recursively?
>>
/dpt/, you're my only hope

I want to scrape submissions from here:

http://codeforces.com/problemset/status/282/problem/A/page/1

However I don't want to scrape 'accepted' submissions, just 'wrong answer' ones, but the only way to get it to display 'wrong answer' ones is by using the filter on the right.

How can I make my scraper script select from the drop down menu and select the right filter then click apply? Or is this not possible?
>>
>>58752083
(define (sum values)
(if (empty? values)
0
(+ (first values) (sum (rest values)))))
>>
>>58752017
>50 wpm
do you just type with like a single finger
>>
>>58752042
What I try to do is break every problem down into smaller pieces but I never come up with any elegant solutions for things.
>>
>>58752083
data Nat = zero | succ Nat

add : Nat => Nat => Nat
add m zero = m
add m (succ n) = succ (add m n)


>>58752113
Dumb lispposter.
>>
>>58751995
That's far less funny.
>>
>>58752086
You need to send a POST request with verdictName set to WRONG_ANSWER.
Come on faggot it's basic shit.
>>
>>58752117
No, I use all of my fingers.
>>
>>58752113
>Lispfags in charge of reading comprehension
>>
>>58752156
just supply 2 numbers nigger
>>
>>58752083
static int SumTwoNumbersRecursively(int ayy, int? lmao)
{
if (lmao == null) return ayy;
ayy = ayy + lmao ?? 0;
lmao = null;
return SumTwoNumbersRecursively(ayy, lmao);
}
>>
>>58752113
>>58752133
i dont understrand this languages

i have to sum two individual values, not a list

def sum(a,b):
# code
>>
>>58752083
>>58752133
With a standard number type:
add : Int => Int => Int
add m 0 = m
add m n = 1 + add m (n - 1)
>>
New thread:

>>58752171
>>58752171
>>58752171
>>
File: uh.png (27KB, 321x358px) Image search: [Google]
uh.png
27KB, 321x358px
>>58752017
git gut
>>
>>58752131
>I never come up with any elegant solutions for things.
anything written in java is by definition not elegant.
>>
>>58751756
>Motivation
I know all of that, which is making me go crazy

>>58751756
>See a psych.
This is Canada, very long waiting times.

>bad grades
I know that, but deep down I just feel really lonely and I can't study because I get depressed

All this plus I'm in second year without a clue knowing what to do, and the GPA pressure is making me go crazy
>>
File: aXm1235xjU.jpg (52KB, 650x650px) Image search: [Google]
aXm1235xjU.jpg
52KB, 650x650px
>>58751189
>>
>>58752168
shut the fuck up
just use +
nobody adds shit recursively
>>
how do you guys list languages on your resume? I just list Python, C++, C. I've touched other languages academically but wouldn't be confident in saying I know them for interviews.
Thread posts: 316
Thread images: 45


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