Better HN
topnewbestaskshowjobs
Log inSign up

divs1210

703 karma · joined Jun 4, 2014 (12y ago) · 410 submissions

Submissions

comment 6mo ago · link · parent

Hi, Alex!

Happy you find it cool!

I will update the Clojure and core.async versions to latest.

You're right I forgot to mention the JVM version in the benchmarks.

I'll be running fresh benchmarks once the current task I'm working on is done.

I will have to look into io-thread, not familiar with it.

Although my aim with the benchmarks is to have nearly identical code for all platforms without any platform-specific optimizations - I'm not sure yet how io-thread plays into that.

Will definitely add the JVM version and update Clojure dependencies and let you know when I have fresh benchmarks.

2.

Show HN: CSP Benchmarks – Go vs. core.async (Clojure) vs. libgoc (C)(github.com ↗)

2 points · by divs1210 · 7mo ago · 3 comments

3.

Show HN: Libgoc – Go-like CSP-style HTTP client/server library for C(github.com ↗)

1 points · by divs1210 · 7mo ago · discuss

comment 8mo ago · link · parent

Libgoc is a Go-style CSP concurrency runtime for C: threadpools, stackful coroutines, channels, select, async I/O, and garbage collection in one coherent API.

5.

Libgoc: A Go-style CSP concurrency runtime for C(github.com ↗)

3 points · by divs1210 · 8mo ago · 1 comment

comment 1y ago · link · parent

I have a feeling that Half Life 3 will have groundbreaking AI NPCs.

comment 1y ago · link · parent

Half Life is my favorite game franchise of all time.

Played all the canon games and SO MANY mods.

Still obsessed with it.

comment 1y ago · link · parent

Neat project!

By the way, to see a great example of how a modern game can be made using the classic Half Life engine, look at the fan made game Half Life: Echoes [1].

It actually looks pretty decent, and the gameplay is top notch.

[1] https://www.youtube.com/watch?v=fBQKi6vGX8U

comment 1y ago · link · parent

Same as dynamically typed vs statically typed languages.

comment 1y ago · link · parent

Easy to write bugs in unsafe languages like C / C++.

Rust makes memory management explicit, hence eliminating those bugs. But it also shows how hard memory management actually is.

Systems programming languages like this should be used sparingly, only for stuff like device drivers, OSs and VMs.

Any general purpose programming language should be garbage collected.

comment 2y ago · link · parent

Pinewood Derby vibes

comment 2y ago · link · parent

A person of culture, I see.

Electric Monks were made for a reason.

Surprisingly pertinent to the current discussion.

comment 2y ago · link · parent

This discussion is seriously lacking in references to Koka language[0].

Koka is memory safe without using traditional GC, has effects, and is pretty cool over all.

[0] https://koka-lang.github.io/koka/doc/index.html

comment 2y ago · link · parent

Particle spin explained:

Imagine a ball that’s rotating,

Except it’s not a ball, and

It’s not rotating.

(popular particle physics meme)

From what I understand of QFT, the Universe is made of fields of different types, and a “fundamental particle” is just an excitation (wave) in the corresponding field.

For example, a photon is a wave in the universal electromagnetic field, A charm quark is a wave in the universal charm quark field, etc.

I’m not a trained physicist, so I might be wildly wrong.

comment 3y ago · link · parent

Thanks for the explanation.

That quote is extremely terse and would have taken a considerable amount of time to understand.

comment 3y ago · link · parent

Yes! I have played with Shen before.

IIRC the type checker is literally a Prolog.

comment 3y ago · link · parent

commenting for future reference.

that's a great quote.

comment 3y ago · link · parent

The SEC chief is Gary Gensler who used to teach a Cryptocurrency course at Harvard...

comment 3y ago · link · parent

what about linux?

comment 3y ago · link · parent

Luminus has a successor called Kit.

comment 3y ago · link · parent

Are you complaining he used a word you weren't familiar with?

comment 3y ago · link · parent

> merely shining a light on the object would give it a nudge

so you're saying you would change the outcome by measuring the system?

comment 3y ago · link · parent

Hao Wu is an immunologist.

I hope he isn't connected to Stanford's Nolan.

LK-99 is weirdly connected to UFO lore, so I'd want to be cautious.

24.

Impossible Quantum Drive Scheduled for “Do or Die” October Space Flight(thedebrief.org ↗)

4 points · by divs1210 · 3y ago · 1 comment

comment 3y ago · link · parent

What balderdash.

comment 3y ago · link · parent

I didn't know Java had a `function` keyword.

That is TS, not Java. Not sure why the gp is calling it Java.

comment 3y ago · link · parent

Good point!

Maybe a future AI could generate machine code that could be "disasssembled" into higher level languages.

Not sure if that would be better.

comment 3y ago · link · parent

> No shared mutability. This is an unrealistic constraint;

Hard disagree.

It is impossible to safely use shared mutable state b/w parallel processes.

See how DB isolation levels work - serializable is the only safe way to go if your processes do anything conditional on the current state. To parallelize, you have to partition the DB which is kind of a cheap way to split one physical DB into separate logical DBs.

So even DBs - the largest shared mutable states we have - are also not really shared mutable states. They need to be broken down into unshared mutable states to be useful.

Shared mutable state is a smell both at the code level and system level.

comment 3y ago · link · parent

Without those lightweight processes that process messages sequentially from their inbox these behaviors won't give the same concurrency guarantees.

I don't know why the author is turning this into a competition of whether processes are more important or behaviors - they both are parts of a well designed system that work well together.

GenServers etc can't be written equivalently in Go/Java since goroutines and Java threads (even the new virtual threads) are not pre-emptive, whereas Erlang processes are truly independent.

comment 3y ago · link · parent

Interesting.

Why do you say so?

12345
14