/dpt/ - Daily Programming Thread

What are you working on?

Old thread:

Other urls found in this thread:

lambdaladies.com
functionalcs.github.io/curriculum/#org2c45041
jaspervdj.be/hakyll/
bounceapp.com/116414
benchmarksgame.alioth.debian.org/u64q/compare.php?lang=rust&lang2=gpp
youtube.com/watch?v=4jh94gowim0
github.com/scalacenter/advisoryboard/blob/master/proposals/007-collections.md
en.wikipedia.org/wiki/DRAKON
cl.cam.ac.uk/projects/raspberrypi/tutorials/os/
twitter.com/NSFWRedditVideo

First for lambda ladies!
lambdaladies.com

I'm too tired to do any programming, so I'm reading the SBT getting started guide.

So many qts in the office today

>tfw no qt functional programing gf
can we all agree that affirmative action is worth it for this goal?

Rust or D?

>can we
no

julia tbqh

The one without GC.

functionalcs.github.io/curriculum/#org2c45041
is this a good ressource for newfags?

I'd love to have female colleagues, but I don't want to work harder.I should have become a nurse, not a programmer. Most people find their mates at work or school, so you really are fucked if you're a programmer and don't already have a gf.

What are your opinions on Java vs C# for web or desktop development?

Rust ofc, but even if you can afford a language with GC, D wouldn't be the best choice.

C# is good for both. Java sucks ass.

Why would you want to?

Java is good for both. C# sucks ass.

Lambda calculus is good for both. Java and C# suck ass.

Why do I always want to kms when webdevving
I like programming

Java is like C# from 15 years ago but shittier.

Maybe you're depressed.

Java is very capable for web and desktop development. I'm not a C# guy, so I cannot comment on that.

jaspervdj.be/hakyll/

bounceapp.com/116414

what are your thoughts /dpt/ ?

macton is a dick

I just can't handle different formatting styles.
How do I cure autism?

Because webdevelopment is complete arse.

C# is like Java but with a bunch of needless shit sprinkled on top.

>auto_ptr

>shit thread and shit op
That's what you get when you don't post anime

I noted that too. It's probably an old example.

kill your self please, I almost vomited

Neither, use a fast language

D

I finally decided to pick up Scala. Who's with me /dpt/?

I'm so sorry

b-b-but benchmarksgame.alioth.debian.org/u64q/compare.php?lang=rust&lang2=gpp

Theory question. Why is COBOL the only language in its area of application?

I am senpai.

would you, /dpt/?

It's not.

Huge legacy codebase.

C is not a fast language, it has fast compilers

looks pretty grim place desu.

>3d
nah

seems trust worthy

How much do you need to know for a test that can determine whether you know enough to be accepted for an internship (C#)?

It is a C++ implementation problem. Rust regex-redux is slower than C .

Let me guess, a haskeller?
Man of exquisite and practical taste

The c++ one use boost::regex

At least you didn't go with java.

The blonde in the top left and the one on the right with the headphones seem nice to be honest

>Man of exquisite and practical taste
I don't know why people shit on Scala, but I really like it. It much more practical than Haskell and it runs on the excellent JVM.

today i will remind them
youtube.com/watch?v=4jh94gowim0

Reposting challenge from last thread: As another poster mentioned, this has to do with a race condition, and both of the other 2 cases will return a 0 (but not necessarily exclusively).

Bonus challenge: Can you fix that code with just 2 modifications?

github.com/scalacenter/advisoryboard/blob/master/proposals/007-collections.md

???

What the fuck

His problems with the collections API will be fixed in Scala 2.13.

Thats hardly the only thing he talks about.
He basically declares Scala and its community FUBAR.

Has anyone ever tried to make a real graphic language? A language where you draw graphs and functions on graphs, for instance. Something like UML diagrams, except not shitty and not made by pajeets, and actually serious.

So I'm making a program where I need to ask the user to enter a string and each statement starts with char # and ends with char ;. There are five statements when the user enters the data. I am wanting to use String methods only to take this data in, break it into five 5 substrings and then print it out as five individual sentences.

I currently have something like

String s = sc.nextLine();
s1 =s.substring(s.indexOf("*"),s.indexOf(";"));
s2 =s.substring(s.indexOf("*"),s.indexOf(";"));

this prints out a string out of bounds error. Now I know where the string ends whenever I enter a statement and I can enter that value to make the total string fit. However, I thought that something like

s2 =s.substring(s.indexOf("*")+s.length(),s.indexOf(";")+s.length());

would work but it doesn't. What do?

Who cares what he says? The Scala community is still active.
C has been declared dead for years, but it's still the #2 language in the Tiobe index.

My uneducated guess is it would involve a massive number of assumptions on the side of the interpreter, otherwise the 'code' would have to be complicated to the point of being inferior to written code. Impractical.

Russians did it: en.wikipedia.org/wiki/DRAKON , they even used it in their space shuttle in the 80s. As expected, it becomes unwieldy and unmaintainable pretty fast.

>Who cares what he says?
>Don't listen to the opinion of the top contributor of the language for over a decade has to say
sasuga scalets
I really encourage you to watch the whole thing.

>mfw that image perfectly describes me at my new job

>#
>*

What is Scicos?

I didn't mean to do that. That's not the problem.

Then verify the documentation that indexOf and substring does exactly what you think it does then verify the return values.

There's a word I need and can't remember. You'd use it to describe "highly non-abstracted code" or in-depth documentation. I think it begins with "o". It sometimes can be passed in to certain tools as a launch parameter to have it return highly detailed output. I'm losing my fucking mind lads.

verbose?

I already watched the video. The points he addresses are valid, but they're working on it.
He only mentions the weak points of Scala, but never mentions all the strong points he has. You could hold a similar session for C++ or Haskell.

YES! Fuck man, I was so far off thinking it started with "o". Thank you so much, been trying to remember it and google it for a good 20 minutes.

so many 3-5 in one place

Anyone here familiar with SQLcipher?

Except it is, retard.

A casual meet up of male fans of FP would look much worse.

...

...

>What are you working on?
Working on some OS tutorial from cambridge for the raspberry:
cl.cam.ac.uk/projects/raspberrypi/tutorials/os/

Lesson 2 done now. LED is blinking. Goal would be a forth interpreter, not sure if I will ever get there, but we'll see.

Nah, not a python fan.

in C if I want to fill an array inside a function and I don't know how many elements it will be filled with do I have to put a number in [] that is largest expected amount of elements when declaring the array?

Reminder that the people hating on C++ are brainlets who can't wrap their heads around it.

If you're using C99 you can use a variable length array.
void foo(size_t n)
{
int arr[n];
}


Nobody can wrap their heads around all of C++.

I don't think it would involve many assumptions. What I'm thinking of could, at its core, be written as a frontend emitting some "normal" language's code.

Thanks anons, the russian one looks really neat. I think graphical programming is a very underestimated area.

Why does a cheesy wave of stank hit my nose when I peel back my foreskin?

If I study computer engineer and the courses are about hardware design, how well do I need to know about the physics under it?

>(s)he has foreskin

Reminder that C++ is faster than Java, Rust, Go and your favorite shitlang and, despite being fully-featured, doesn't rape you with its memory footprint.

What is the easiest way to do basic reverse engineering? API monitor (rohitab) does basically all I want but I want to be able to issue API calls, not just modify them before execution. Do I have to bite the bullet and learn ollydbg/ida pro, or is there something I'm missing?
Note: basic reverse engineering

I'm Jewish but my parents never had me circumcised. Feels pretty good, tbqh.

Yes.

Not sure about CE, I just started SC and so far the only part of physics they expect me to know is electric field stuff and and circuits. But the courses started with brief repetition of high-school stuff anyway

How is this related to technology?

C isn't a shitlang.

Segway was developed with Scicos.

Wash your fucking foreskin.
Probably not much.
>(((he))) doesn't have foreskin
Reminder that C is faster than C++, Java, Rust, Go and your favorite shitlang and, despite being fully-featured, doesn't rape you with its memory footprint.

C++ can be faster than C. It depends on how you write it.

Yeah was just wondering should I start reading some old stuff to refresh my memory but the courses seems be stuff like using vhdl and other higher level stuff.