/dpt/ - Daily Programming Thread

What are you working on, Jow Forums?


Previous thread:

Attached: karen haskell.png (1280x719, 818K)

Other urls found in this thread:

youtube.com/watch?v=uh25alZ5riY
nim-lang.org/blog.html
twitter.com/NSFWRedditImage

hi is this the new thread

Fuck you if you use notepad. Fuck you, it's a shitty editor and it fucking sucks.

Why are scheme's numeric literals so fucking overcomplicated? Everything else in the language is so simple but holy fuck the numeric literals. THIS is a valid numeric literal:
#o#i12113700##################

It's 4.79234881819928e+22 if you were wondering.

How can I make this layout in Swing?

Attached: Untitled.png (468x311, 3K)

Do you want us to write the fucking code for you?
install gentoo

Sorry, not complicated enough,
#o#i1304####+0334###i

It's 2899968.0+112640.0i. Fuck me what crack were they smoking.

Goodnight /dpt/ :)

I hope your sleep is restless

I hope you don't use notepad

Don't you mean RESTful lol

>Do you want us to write the fucking code for you?
Yes please

Typical notepadfag

who is this guy ? is he an autist like Terry ?

>Terry
Terry is a shitty meme

The guy is a functioning savant. He looks physically healthy, can explain himself well, but is so far down in an esoteric rabbit hole that he wastes his intelligence creating a compiler for a language that has a few hundred users at most.

don't bully him, it makes him feel like an oldfag

He uses notepad like a faggot would

>implying someone who talks about running over glow in the dark gay cia niggers who are trying to turn him into a pedo is anything but schizo

can you write an interrupt routine in haskell?
ah? you are swimming with some niggers deep down in the ocean, not seeing what is underneath you

Is it even worth it to learn JavaScript?

Attached: mr_andres_million_dollar_question.jpg (800x450, 52K)

Dumb meme terryfag

based

haskell is a bad joke.

Let me put it this way. If you CAN'T learn JS, you're fucked. You've got no hope of understanding anything more complicated than python.

yes its lisp on the browsers.

Sure

Attached: pj.jpg (498x548, 93K)

JS 6 its implicit python with braces

Well I understand it fairly well right now. Just hoping I can retain the info for when I start CS classes.
I also want to work with blockchain/cryptos and from what I've been told JS is the most like them.

Notepadfags are the cancer killing /dpt/

>can't focus in class due to arousal

Attached: 1474632343437.gif (640x360, 198K)

stop wearing programming socks you slut

>a few hundred users
Threaded reminder that numpy is APL.

I don't own any.
The programming socks I want don't even exist.

start wearing programming socks

gotta do something about that, user

Attached: img.gif (365x205, 2.98M)

Have you read your SICP today yet?

Attached: oni sicp.jpg (1920x1080, 382K)

>tfw no girlbits

Attached: 1471392765039.gif (640x480, 709K)

Swing is old, why aren't you using JavaFX

How do I make pong in java?

because 95% of Jow Forums-tards can't see the power and benefits of using embedded web views in their applications.

It will probably happen in the next 10-15 years.
We can already grow ovaries in people.

use python

import pong;

pong.use()

the egg / bullet vibe can still do it even for boy bits if you place it right

kill you are self

Fuck off notepadfag

all editors other than vim or emacs are at notepad level.

No, notepad is the worst. You're a faggot.

I'm trying to get the motivation to kill myself

I'm in community college and i'm taking an "intro to comp sci" course and I have an assignment due in 70 minutes. The assignment is to write a program (in java) to parse a file and return the number of lines, number of characters, and the number of words.

I already did that part but we have to include our own .txt file alongside our code. The only thing is I don't know what I should use for the .txt file. When I first did this for an online course they used the entirety of Alice in Wonderland, which I thought would be clever but it's pretty long and probably pretty autistic. I wrote just 3 lines that said
"this is a text file
there are many like it
but this one is mine" but i'm not sure if that's autistic or not. I'm not a marine so maybe I shouldn't do that.

What do you anons think? Please hurry I'm already down to 67 minutes now.

Attached: 1445925837063.jpg (567x561, 57K)

future proof code is written in C

Ive never seen so much hate towards notepad++ on Jow Forums.

the only autism here is caring this much
grab something cs related, maybe put in your source code or something

proven to be wrong in advance

>not putting the interjection as the text file
Its like you're not even a gentooman.

>C
C++ >>>>>>>>> C

Notepad++ is good but notepad is for fucking faggots because it's a shit editor. It's a shit editor and you're a shit person for promoting it.

youtube.com/watch?v=uh25alZ5riY

this

hey guys any tutorials on how to write an adventure game in mac/linux terminal?
I'm a bit of a noob but would like to learn something like this to liven up my github

What a fucking waste of trips, you moronic cunt.

black box that will be hard to refactor != future proof

use this:

I'd just like to interject for a moment. What you're referring to as Linux,
is in fact, GNU/Linux, or as I've recently taken to calling it, GNU plus Linux.
Linux is not an operating system unto itself, but rather another free component
of a fully functioning GNU system made useful by the GNU corelibs, shell
utilities and vital system components comprising a full OS as defined by POSIX.

Many computer users run a modified version of the GNU system every day,
without realizing it. Through a peculiar turn of events, the version of GNU
which is widely used today is often called "Linux", and many of its users are
not aware that it is basically the GNU system, developed by the GNU Project.

There really is a Linux, and these people are using it, but it is just a
part of the system they use. Linux is the kernel: the program in the system
that allocates the machine's resources to the other programs that you run.
The kernel is an essential part of an operating system, but useless by itself;
it can only function in the context of a complete operating system. Linux is
normally used in combination with the GNU operating system: the whole system
is basically GNU with Linux added, or GNU/Linux. All the so-called "Linux"
distributions are really distributions of GNU/Linux.

Well you gotta use a text file to test your program yea? So include whatever text file that gives you a correct output.

rust doesnt have this problem

copy and paste mein kampf

Common Sense by Practice Pajeetzon. Second Edition.

Git gud

kek! That's actually pretty brilliant idea but also 10/10 autism. Maybe I should start bothering her about how we shouldn't be forced to use software that isn't OS for the class.

Attached: POO.jpg (709x895, 68K)

the windows kernel is written in ansi c. Microcontrollers are written in c. C++ currently exists in two forms, old C++ and modern C++. At least 1+1 = 2 in C. 1+1 = ? in C++ since you have to make sure what the operators are and of course OOP destroys language code bases.

You mean C++

dude C is just like the 5% of C++11/14 expressive power, I like C but:

>No operator nor function overloading
>no lambda expressions
>no generics so you have to do macro abuse
>use messy long names to operate on structure members like :
vector_dot_product(vector);
string_concatenation(string_a, string_b, result )


Have you ever done something bigger than fizz buzz, i.e. work in projects that uses lot of complex math operations or tensorial math? its a fucking mess to work with in C, C++ has the same performance and the code its easier to mantain.

Yes, I've implemented ANNs in C. You just need to git gud.

Learning and trying to find a place to make my projects with more people, but I still without know people in this area.

Attached: 1521042712096.png (1389x1732, 200K)

how to into i am to speak in which towards english???

yes there are ANNs wrote in Javascript too.

I'm using shunting yard to parse some type literals for a little C linter.

>Have you ever done something bigger than fizz buzz
Nobody who posts on Jow Forums has ever done anything other than fizzbuzz. That's why we evaluate the merits of programming languages solely on how they lend themselves to writing fizzbuzz, and why we should just stick to x86 machine code

Nim BTFO

Attached: Screenshot from 2018-04-09 12-58-36.png (2484x906, 220K)

we're on on .18 now, lad.

Bootcamps... Yay or nay?

What changed?

Attached: Screenshot-2018-4-9 Octal Zero considered harmful.png (3816x4274, 843K)

3.5 years of work
nim-lang.org/blog.html

What’s the best way to disipline yourself to work longer stretches? I have trouble focusing after only an hour but I’d like to work 4-6 hours at a time ideally. Would slowly incrementing over time be effective or maybe some other method? Any advice or tips would be great. I feel like I’m capable but waste my potential and time doing other things like vidya or watching tv.

Attached: AF614CE3-3604-4F39-8AD9-9907936F52A4.jpg (815x622, 99K)

Fuck notepad I had that editor so much

Never got JavaFX to work. Swing works out of the box, even on old jvm's, with no dependencies.

meth

>watch some youtube video of a programming language or something similar
>90% of the time he's Indian
Why the fuck is this? Their accent is so fucking annoying so I just close the video.

there's over a billion of them

>go to search engine
>copy paste question
>stackoverflow.com

If I make a header file with 1.7 million or so structs, will that bloat executable size if I only use a few of the structs? Asking because the partition number of 64 is 1.7 million.

I finished the euler 14 challenge for another thread on Jow Forums, I thought it was a neat idea to get used to Elixir. Top comfy language 2bh

Attached: 1506005442980.jpg (453x410, 88K)

dumb frogposter get out of my thread reeeeee

Attached: 1523236952702.jpg (640x360, 60K)

=()=>

or

=_=>

?

you just took an O(n^3) solution and made it an O(n^3) solution with 4 threads

==> because it's a valid haskell operator

haskell was mistake.

Figured I might as well ask here.
I'm trying to extract the art from pc-98 visual novels. I've extracted the hard disk image but I'm not sure which of these files would contain the art, or how to extract them.

Attached: explorer_2018-04-08_23-35-24.png (609x987, 69K)

did you solve it under 2MB in less than 2M steps?

who cares about O() when you can spawn 200 million concurrent processes? elixir is so underrated

wrong