HNHacker News
TopNewBestAskShowJobs

the5avage

159 karma · joined November 1, 2020

submissionscomments
the5avage··on Real World Haskell
> One thing that has been holding me back is the lack of real world examples. I get demotivated when only solving toy problems.

I looked at haskell a few months ago and had a similar problem.

While I don't mind the toy problems, all those toy problems have something in common...

They can be easily solved with recursion. There are probably patterns to deal with other problems and this would have been more interesting to me.

I just had to think to myself: "If all you have is recursion every tutorial looks like a parser" ;)

the5avage··on Python overtakes Java to become the second-most popular programming language
Thanks for the lengthy reply ;)

I'm aware of the fact that every type system will reject some valid programs. C evades this problem by letting you "escape" the type system. Many people criticize this without being aware that the language would be useless without this feature.

I don't think that an expressive type system rejects more programs though. You don't have to escape the type system that often in C++ (compared to C).

Nonetheless I probably should look up some design patterns you can do in lisp, to get a feel for what I'm missing

the5avage··on GitHub Source Code Leak
Just looked at it and I like that "All features work without JavaScript" is listed as a pro.
the5avage··on GitHub Source Code Leak
> the lark is on the wing, the snail is on the thorn, and all's right with the world.

Are you aware of the fact that it is irony in the original work?

https://en.wikipedia.org/wiki/Pippa_Passes

Have you read the newspaper in the last months?

I suspect irony on your side and if it's true you are kind of funny...

the5avage··on Python overtakes Java to become the second-most popular programming language
This might be a stupid question but anyway...

Is there someone well-versed in a statically typed language who would still prefer python most of the time? Could you explain why?

For me it's just the opposite. When I program I think about the types first. When I read code I care more about types than variable names. This is in my opinion the way to go even in C.

Also most python programmers I know are engineers and for them it would be a waste of time to learn C++. I would like to know why an experienced developer might prefer python ...

the5avage··on Python overtakes Java to become the second-most popular programming language
I think there is a difference between simple and easy. I would say C is simple but still hard ;) I'm not a native english speaker so take this with a grain of salt.
the5avage··on Python overtakes Java to become the second-most popular programming language
Citing tiobe.com: "The index can be used to check whether your programming skills are still up to date or to make a strategic decision about what programming language should be adopted when starting to build a new software system."

This and the fact that C is number one suggest something very wrong. While C really has a place in my heart, you should have very good reasons to use it when "starting to build a new software system".

the5avage··on RIAA Takedowns Backfire as Pirated MP3s Now Surface on GitHub
Why does it rely on Github? Can't it download git repos from other sites?
the5avage··on RIAA Takedowns Backfire as Pirated MP3s Now Surface on GitHub
Thanks for sharing this. Didn't know and i live in EU. It's so disgusting i actually have a sore tummy after visiting the site. I really detest the obnoxious marketing speak like: "We support policy initiatives that are pro-consumer and that promote innovation and growth towards a Digital Single Market for Europe."
the5avage··on Ox is a fast text editor, written in Rust, that runs in your terminal
A fresh install of Debian also comes with vi and not with vim. It's actually ridiculous if you think about the fact that vim was published 1991
the5avage··on Ox is a fast text editor, written in Rust, that runs in your terminal
Because the readme says this: "What features does Ox have and why should I use it?".

Instead it should say: "This is a toy project of me. Learning about text editors. It got pretty far and is really usable. Give it a try."

Also there are zillion articles about "rewrite software x in rust because it's written in evil unsafe C". The author doesn't say this but i instantly think about it if someone tries to write a better vim.

the5avage··on Ox is a fast text editor, written in Rust, that runs in your terminal
Vim is amazing. Try searching for patterns in this enormous file ;) Definitely a hard nut to crack.

Personally i see no reason why this is needed (just use vim), but I'm sure a lot of people will use it just because its written in rust^^

the5avage··on The West has failed – US and Europe have made a mess of handling the crisis
Maybe people in the north are more social ;)

I live in Berlin and there it works because every store has a security and you will not be able to enter without mask.

Right now I am in Baden-Württemberg and there the customers all wear masks but the employees of stores themself violate the rules. Very strange...

the5avage··on The West has failed – US and Europe have made a mess of handling the crisis
My father is currently connected to a ICU because of corona virus. It makes me sick to see how many people are not able to wear their mask over their nose. I live in Germany btw.

So I agree 100% with the article. It's completely unacceptable that we are not able to control or enforce such basic things...

the5avage··on An ex-ARM engineer critiques RISC-V
At the time C was designed not all machines did represent signed integers in 2 complement. Therefore it was not possible to define behavior for signed overflow. They probably should change that 2020^^

GCC has intrinsics for integer math with overflow checks

the5avage··on Yet another alternative to floating-point numbers
Why not use something like this? Am i missing something?

bellard.org/libbf

the5avage··on Ropes, an Alternative to Strings [pdf] (1995)
Exactly. And you additionally need GC or reference counting. If you write a text editor you certainly should think about something like that, but claiming it should be the default string type is a bit off.

You should probably only use data structures with a lot of indirection if you really can measure it to be faster in the situation.

← PreviousPage 3 of 3