HNHacker News
TopNewBestAskShowJobs

nomemory

1,333 karma · joined December 31, 2016

www.andreinc.net
submissionscomments
nomemory··on Show HN: I made a modern web UI for Wikipedia
Electrons brought us a lot positivity with their negativity! Checkmate!
nomemory··on Tildeverse.org: A loose association of like-minded tilde communities
This guy summarised the community well. I wouldn't go that far to call them unabombers though. Some of them might have some radical ideas regarding the way software should be written. But that's it.
nomemory··on Show HN: Incoggo – Free Adblocker for Paywalls
Well at least they are transparent about all that.
nomemory··on Millennials Killed the Mayonnaise Industry (2018)
> He’s a good son. I also have a daughter. She was a women’s and gender studies major in college. Naturally, she loathes mayonnaise.

This is gold.

nomemory··on Show HN: I made a modern web UI for Wikipedia
Well, I don't consider I've insulted someone by saying I like the way Wikipedia is.
nomemory··on Show HN: I made a modern web UI for Wikipedia
Not at all a complimensult. I can appreciate the work of someone, if even I won't use it. I don't know how to put it otherwise.
nomemory··on Show HN: I made a modern web UI for Wikipedia
I am one of those people who actually like Wikipedia the way it is. It's what I hoped the web to become.

But i am sure there are people who will appreciate your effort. Thank you for your work.

nomemory··on Uutils: an attempt at writing cross-platform CLI utilities in Rust
So without playing dumb or anything, you say they say:

"We have security issues every year because we program in unsafe languages like C, and to solve this, we should start rewriting things in Rust because it's 'memory safe'."

Amazing!

nomemory··on Uutils: an attempt at writing cross-platform CLI utilities in Rust
So it's more like a "Look, it's possible to do this in Rust!"

than

"We did it in Rust, and we believe it's better because ..."

?

nomemory··on Uutils: an attempt at writing cross-platform CLI utilities in Rust
> Many GNU, Linux and other utilities are useful, and obviously some effort has been spent in the past to port them to Windows. However, those projects are written in platform-specific C, a language considered unsafe compared to Rust, and have other issues.

I wonder why some people in the Rust community seem to remind us every few sentences how Rust is superior to C because it's safer.

/s And now it's C, yesterday it was C++... what's next, ASM ?

nomemory··on “Coding is basically just ifs and for loops.”
Coding is just electrons having fun.
nomemory··on A Tale of Java Hash Tables
You can have hash tables that cannot be targeted by DoS attacks.

You can use a family of hash functions and seed the hash table instance with a key.

The attacker won't be able to do make assumptions regarding collisions because he doesn't have access to the initial key.

nomemory··on A Tale of Java Hash Tables
The point of the article was too prove that it's hard to do Open Adressing in Java and beat HashMap performance, that uses Separate Chaining.

The article contains also a Robin Hood implementation that overall works worse than HashMap. If you can give something recommendation on how to improve it I would forever in debt.

nomemory··on A Tale of Java Hash Tables
I didn't perform any deletes, and I've tried to keep everything clean without allocating intermediary objects. But one the pitfalls is that I cannot play easily on the memory lane with Java. For example in the entries and bins implementation I had to have two separate arrays. In C I would've kept a single array, with a compact zone, and another sparse zone, iterating through it using an offset.
nomemory··on A Tale of Java Hash Tables
Didn't have time to write about it, but I've used a GCProfiler as well. With a few exceptions, all the 5 implementations are comparable.
nomemory··on A Tale of Java Hash Tables
I've assumed they were inline initially, until I profiled and found out one of the swap methods was not. I believe there's also a limit on the amount of bytecode to inline, so no matter how hot a method, if the associated bytecode reaches a certain threshold it won't be. I need to double check though.
nomemory··on A Tale of Java Hash Tables
Maybe it was even more terrible, because it tried to be "smart".
nomemory··on A Tale of Java Hash Tables
Exactly, in Java i couldn't even inline my functions, and had zero control over the underlying memory layout.
nomemory··on A Tale of Java Hash Tables
I consider myself an optimist.
nomemory··on A Tale of Java Hash Tables
For me it was faster on average and with less variance. But the micro-benchmarks are flawed by default, so I believe it's room to improve them.

Also maybe there are some tricks that can be done, to have a faster Open Addressing implementation in Java.

PS: I've also tried Cuckoo Hashing and Hopscotch and they were also slower, but haven't managed to document my findings.

nomemory··on A Tale of Java Hash Tables
Exactly.

Looking at some discussions the open-jdk team had, they decided to continue with Separate Chaining. I don't have the link, but then I got interested to see how some Open Addressing (nothing fancy) will behave in Java, so this is the reason I've written this "article".

Unfortunately I coudln't beat HashMap with the "classic" approach, but I got close. I am curious to see a better implementation that brings more engineering tricks on the table.

nomemory··on Nim Community Survey
I would love to see Nim used more in web development. I have a strong irrational dislike for go, and Nim feels right to me as alternative. Unfortunately without corporate support, it's hard...
nomemory··on Harps: A new general purpose language
harps , sharps, I believe this is pure parody, right, right ?
nomemory··on Teliva – an environment for end-user programming
I remember when I was a kid, my father did this to a qbasic game with two monkeys throwing bananas. He eventually modified it so they can throw two instead of one.
nomemory··on As a hobbyist, I've written my own matrices library in C
I am a math hobbyist, and I wanted to work on my linear algebra knowledge. So I've decided to implement some of the most common algorithms from the CS curricula.

After some work, I've come-up with this small library. It has no production value, but it was fun learning experience.

https://github.com/nomemory/neat-matrix-library

nomemory··on Implementing Hash Tables in C
I don't think there's consensus and very few people have a total grasp of the subject.

Look Java and python for example. The people working on the languages are quite smart, and they decided to take different routes. Who was right ?

nomemory··on Software developers have stopped caring about reliability
There are a few valid points, but also unfounded pessimism.

The amount of stable libraries and stable innovative products is amazing. It's normal there's chaos, but what is good will survive the test of time.

← PreviousPage 5 of 5