/dpt/ - Daily Programming Thread

Previous Thread: What are you working on, Sup Forums?

...

why are comfy interpreted languages so goddamn slow ?

That's the price of freedom.

Because they're interpreted?

speed isn't comforting

Just finding it interesting that Lisp and Scheme are still more popular than Haskell.

>Lisp Scheme Logo
>Logo

Fucking Lisp memers

>Logo more popular than Haskell

Nice.

TIOBE Index for July 2016

Top 10

>What are you working on, Sup Forums?

I want to write a piece of shit hobby operating system just for the sake of better learning how they work, can I just use C or do I have to write some assembly no matter what? I'm not going to make a bootloader or anything.

That's just how the results happened to end up on the TIOBE index. It's really just a indicator on how much people search for information and resources on said languages.

To the guy who wanted to start with C in the previous thread, don't. Start with Python instead, thank me later.

There is something deeply wrong with your SSD. Is it on a SATA-1 port or some shit?

Encrypted partition (Twofish-256)
and ancient laptop with slow, throttled CPU

I should replace the thermal paste

why do you have your partition encrypted?

you don't have something to hide, have you?

What about Scheme?

Thank you for not using a trap meme

Scheme / Clisp have the advantage of simpler syntax and less fussing about with harder to understand concepts (Monads / Comonads are hard for programmers to pickup at first).

All of them will teach functional programming. The debate is which is "Better".

>lack of type safety
>comfy

Based. I prefer Racket to plain Scheme, though.

And the answer is Haskell

Interpreter =/= dynamically typed you mongoloid.

>tfw hitting brick wall with learning c++
>welp, back to learning Java it is
>verbose, in-library 'method' (seriously fuck calling functions methods...)calls, I'm comin' back, baby

>seriously fuck calling functions methods
This is how I know you're retarded. Stay away from programming please.

Okay so what should I start with? Scheme? Clisp? Racket? Haskell?

I want to go with suggestion but would like to know the best start!

Haskell is for "Purity"

Lisp / Scheme is for "Simple".

Technically if you want to actually be practical you're better with off with Clojure / Scala so you can abuse the large ass java code base.

>Lisp/Scheme
>Simpler than Haskell

Need a pl8 4 dat gr8 b8 m8.

All the more reason for me to go back to /Africa/ Java amirite??? Why would my word preference make me have extra chromosomes?
>auto var{" "};
>cin >> var;
>coutString var = input.nextLine();
>System.out.println(var);

yeah, fun times. It's like this shit is purposefully designed for copy-paste

Thank you. I always hear about how Python or C are the best "begginner" languages, but I started reading Structure and Interpretation of Computer Programs and it's talking about Lisp Scheme. Figured asking you cunts would be a good idea.

Lisp: Minimal Syntax, everything is a list or a primitive. All operations are basically (function (data) ) in various forms.

Haskell: strong static typing, purity is very serious, you have to explicitly deal with data flow, there is plenty of syntax to get started with ( -> , :: , (), [], =>, etc). Monads show up from the very first hello world program.

Literally the only reason to say Lisp or Scheme dialects are harder than haskell is the learning curve on getting used to all the braces.

Class *pointer; or Class* pointer;? I know it's functionally the same, but which is better?

Haskell is simpler, maybe not to write proper Haskell but certainly to use.
You can easily use Haskell imperatively if you really wanted to

You don't need to know Monads to print Hello World

t. Haslel cuck

I prefer the former because it more closely expresses how the language interprets the statement.

if there's more than one use *pointer
otherwise use class*

Nice to see C# goin down baby

To be replaced by Python, Javascript & VB.NET?
Fuck off

You're heavily invested in the haskell mindset.

We're basically arguing if green is a better color than blue :p

Both accomplish similar goals when learned. It's pretty much down to thinking patterns / learning methods which is "better" or "simpler".

Can i have the sauce code for this program?

Different user here.

Racket. It even has an sicp #lang so you can have perfect compatibility with the stuff they use in the book.

main = print "Hello World!"

(begin (display "Hello, World!") (newline))

LISP/Scheme encourage and allow and forgive sloppy thinking. It's like teaching someone Python as their first language, they get stuck on it because they think other, less forgiving languages are 'too hard'.

>Python
>& VB.NET?

Lol VB? You mean PHP, and Python already surpassed. Learn how to read charts

>using explicit begin
For what purpose? To keep it in a single statement? Why not just use displayln?

>my program gets statically type checked at runtime :^)

If you think gradual typing or optional typing is remotely comparable to strong, static, mandatory typing then you shouldn't be allowed to program.

Mit-Scheme
(display "Hello World!")

Clisp
(print "Hello World!")


Come on user.

>muh static types
>get null pointer exception anyway
>can't even have lists of different things

I don't know Scheme

You may be projecting a little here, user.

>using pajeet-approved languages with null pointers

putStrLn "Hello World!"

I've seen LISP weenies struggle horribly with Haskell. Eventually they give up and declare 'Haskell sucks, it's not practical, it's too hard to get the types right".

do you agree that nodejs is the best thing that ever happened to us?

kys

Haskell does suck though, that's why next to nobody uses it for anything outside of research. If you deny this, you're delusional.

Would anyone like to learn a language with me? I have no motivation and maybe working with someone would help? I want to learn clojure but I'd be willing to learn almost anything really.. Is this a bad idea?

wow that's a great argument
it sure changed my mind

>if you disagree with me, you are delusional

Exactly. Stay delusional.

i haven't said i disagreed with you

i disagree with you

Not an argument. You're a delusional memeskeller.

t. python >masterrace

It enabled frontend hipster cancer to creep into the backend and desktop application space.

It's a bad idea.

You got me man, Haskell sucks, I admit it. I mean, it has fail as a member of Monad, what other language has that mistake? And seq and unsafePerformIO, oh emm fucking gee, could you even get any worse? Seriously, nearly no languages have those things, except the clusterfuck that is Haskell.

Learn a new language with you? I figure many would rather work on an existing project in a language they are comfortable with.

Glad to be of help, my low test friend.

Python is a meme too, the only real language is C.

scm test.scm results

With this as the file contents

(display "Hello World \n")
(exit)

I'd like to learn Faroese with someone.

I predicted your disagreement. Posts don't have to be synchronous.

s/C/Assembly/

That's actually pretty cool user

The course i am enrolling next fall in college (3 years total) has this courses :

> Algebra
> Mathematical Analysis I
> Discrete Math
> Python Programming
> Computer Architecture (intro to assembly, low level theory..)

> Computer Architecture II (assembly, FPGAs, low level stuff..)
> Mathematical Analysis II
> Statistics
> C Programming
> Physics

> Introduction to networks
> Java Programming
> Operative Systems (C language)
> Computation Theory (automata, state machines,...)
> Information theory (entropy, compression,security,...)

> Introducton to Algorithms
> Data Analysis and Transformation
> Multimedia (Actionscript, javascript games)
> Communication Protocols (advanced network stuff)

> Databases (SQL, Java, Oracle, Mysql, Postegres)
> Software Engineering
> Distributed Systems (Java, websockets)

> Computer graphics (C, C++)
> Compilers (C)
> Artificial Inteligence (Python, C#)
> Advanced Algorithms (C, C++)

So my question is:

Can i be called a Software Engineer after i complete this course?


Or, what's the appropriate title in this case?

I know this has some Computer Science courses, so i'm a little confused

I'm open for it if you want :3
I would probably go for haskell or erlang.

Is there a non-experimental whitespace sensitive LISP? Something like

for n (in-range 1 101)
print
match (gcd n 15)
15 "fizzbuzz"
3 "fizz"
5 "buzz"
_ n

you are a Science Engineer Computer Man

Are you in the UK? What university?

>Can i be called a Software Engineer after i complete this course?
I would go for CS if I were you. SE is a meme degree.
It does have some SE and CS stuff mixed up, I would not call it bad but it certainly could be better.

>Actionscript

there is no consensus on what the title "software engineer" entails
so, yes

You're a hacker.

I could learn either, though I'm a bit of a beginner so you'd have to bear with my stupidness.

On a side note I looked at a bit of haskell and now the right side of my brain now thinks logically.

What languages do you know user?

I forgot to say, the official title of this course is "Informatics Engineering "

If I want to learn Assembly and C and have no prior programming experience where should I start?

Want to learn a programming language with the goal of making shitty games that I will never release. Should I learn c++, java, or something else? Best resource for learning said language?

it's called Haskell

import Control.Monad (forM_)
main = forM_ [1..100] $ \n →
print $ case gcd 15 n of
15 → "fizzbuzz"
5 → "fizz"
3 → "buzz"
_ → show n

I "know" python. Basically I just want to learn something fully. Or at least to the level where I could call my self a real programmer.

Also I've learned a bit of php and javascript in college, unfortunatley.

Then you're an informatics engineer, my man. Maybe your resume should read:

>Name: Ben Eric Nislover
>Age: 28
>Nationality: Informatics Engineer
>Status: Single, and you know you want me

whoops, buzz & fizz are backwards

English
Norwegian
Esperanto
Spanish
German
Swedish

C++. The C++ Programming Language.

Best build tools for C?

import time

clock = 3

while (clock > .001):
print("Turbo Pancake.")
time.sleep(clock)
clock = clock / 1.5

Is it worth learning/configuring vim or should I just stick with sublime?