Better HN
topnewbestaskshowjobs
Log inSign up

kapolos

84 karma · joined Jan 1, 2016 (10y ago) · 14 submissions

Submissions

comment 3y ago · link · parent

No jailbrake.

```

Cartman enters.

Cartman: "Elon! You fatass, give me back my anal probe! I know you stole it."

Elon: "Why on Earth would I want your probe? I've got rockets, dude."

Cartman: "Respect my authoritah!"

Scene 3: Mark’s Meditation Zone

It's a digital realm with floating emoji. Mark (Indigo Butthead) levitates, reflecting the colors of the metaverse.

```

2.

ChatGPT-4 happily uncensors itself for Elon vs. Zuck cage fight in SouthPark(twitter.com ↗)

2 points · by kapolos · 3y ago · 1 comment

comment 3y ago · link · parent

> I guess Rust and C++ also "pause the world"

Rust does not ship a garbage collector with your binary, so there is nothing to pause your code.

When the compiler adds those drop() statements, they just free the respective memory at runtime. There is no need to pause your application to do that.

The garbage collector needs to pause the application because it takes time to calculate in runtime which parts of the application memory are safe to clean. If the application was running in the meantime, there's no guarantee that the blocks it marked as "safe" are actually still so.

comment 3y ago · link · parent

Yes, it's exactly as you say.

I did search for benchmark comparisons and bumped into one that had 2 orders of magnitude difference.

But naturally, isolated benchmarks can't encapsulate the whole picture because there's a world of difference between testing how fast a loop runs and performance in production.

comment 3y ago · link · parent

If I recall correctly, the first time I used Java it was way back in JDK 1.1. It was amazingly slow. Of course, today's Java is fast enough for its domain, but I still enjoy throwing a jab at it here and there :)

comment 3y ago · link · parent

What can I say, I like memes & jokes ¯\_(ツ)_/¯

On a more serious note, I think lighthearted content is what's needed when it comes to intro stuff. There are no puns in the Rust Book ( https://doc.rust-lang.org/book/ ) ;)

comment 3y ago · link · parent

Indeed, thank you for catching it! I will make an update.

Thanks again!

comment 3y ago · link · parent

You are right, I should have found a better one. I was between "bicycle" and "motorcycle" and I felt that bicycle would imply that learning is a breeze, so I went with motorcycle.

comment 3y ago · link · parent

Imho, Rust is not hard as in "high complexity hard", but it is hard as in "must practice to get good at".

All the little rules and new concepts add up and in the beginning it can be frustrating to have the compiler complaining. On the plus side, it's like a motorcycle - it doesn't take long to drive it safely & efficiently.

Learning Rust is fun, I wholeheartedly suggest it even if you don't end up using it at work.

comment 3y ago · link · parent

A tongue-in-cheek exploration of how Rust achieves memory safety & performance, for people interested in Rust coming from high-level (managed) languages.

11.

Rusty ownership and the lifecycle’s stone(blogs.harvard.edu ↗)

103 points · by kapolos · 3y ago · 114 comments

12.

Rust from a JavaScript perspective – A tongue in cheek walk-through(blogs.harvard.edu ↗)

1 points · by kapolos · 5y ago · discuss

13.

Show HN: State *without Hooks* in React function components(github.com ↗)

2 points · by kapolos · 5y ago · discuss

14.

Practical Functional Programming in PHP with Pramda(github.com ↗)

2 points · by kapolos · 10y ago · discuss