Better HN
topnewbestaskshowjobs
Log inSign up

LightMachine

2,083 karma · joined Sep 27, 2015 (11y ago) · 346 submissions

Submissions

comment 3y ago · link · parent

You completely miss OP's point. He is basically saying that the market value of Sam is appreciated regardless of his equity. And one example on how that is true is that whatever company Sam starts next will have an insanely high valuation from the go.

comment 3y ago · link · parent

We have built an entire real time game in Kind lang...

comment 3y ago · link · parent

I don't know, does Erlang elaborate to a simple core language?

comment 3y ago · link · parent

Yes but wouldn't be great. The problem is that these ultra low level assembly languages actually throw away a lot of information that is useful to parallelism. Recursive functions are great for HVM, but when compiled to assembly, that structure is lost.

comment 3y ago · link · parent

Yes that is the goal, but I'm not familiar enough with it to judge the complexity of such project. I do know GHCJS demanded tons of resource and efforts, so I do anticipate it will not be a simple task. That's why I want to support simpler languages like Elm and a Python-like language first...

comment 3y ago · link · parent

The ultimate goal is indeed to compile any code to GPUs, but we can't change the logic of your program. It is just a bunch of sequential loops, there isn't much we can do about it! But you can still use a Python-like syntax to create highly parallel programs, specially if you like recursion or things like map, reduce, and working with trees/JSON in general.

comment 3y ago · link · parent

Yes that is the ultimate goal! Although that is obviously a far future. Currently we only have funding to provide a few toy languages, but hopefully the results will be good enough to draw attention so we can scale and broaden support to more and more languages!

comment 3y ago · link · parent

We're providing support to all GPUs soon, NVidia is only the first target because it provides the most convenient language (CUDA).

comment 3y ago · link · parent

Exactly! Sorry if that sounded to be the case. We're first focusing on making the runtime as fast as possible. Next step is to support some simple toy lang (like a Haskell-like and a Python-like) for people to start using. Only then we can start compiling existing languages, which is a colossal task (due to languages like JS having a bajillion features).

comment 3y ago · link · parent

Exactly, we're working on a guide for language designers. And while HVM-Core (the repo I posted today) is the lowest IR, I believe most languages should actually compile to HVM-Lang (to be released), which is a higher-level AST that is more familiar and does a lot for you (so you don't need you to write your own conversions from your language to interaction combinators and back).

comment 3y ago · link · parent

100% agree - we're working on exactly that for the upcoming release in a few months!

comment 3y ago · link · parent

Good question! There are several implementations of the full λ-calculus on interaction nets; that isn't the problem. The problem is that these solutions always came up with a constant time slowdown, which made interaction nets even less practical. The thing is, HVM is getting so fast that we're almost at the point where we can just say damn it, eat that slowdown, and still be faster. So, optimization after optimization, we're kinda brute-forcing our way into supporting full lambdas in practice. And the best is that with some pre-processing steps (like EAL inference) we could compile Haskell to the fastest version when it is safe to do so - which is more often than you'd think!

Yes we're hiring GPU developers to optimize the current runtime (which still has a lot of room) and to extend support to more architectures. GPU developers aren't exactly cheap nowadays though lol. I blame OpenAI.

163.

HVM updates: simplifications, finally runs on GPUs, 80x speedup on RTX 4090(twitter.com ↗)

91 points · by LightMachine · 3y ago · 29 comments

comment 3y ago · link · parent

As someone who has been studying type theory and developing strongly typed programming languages, that is a very strange take to me. It isn't untyped, it has a type: the GeometricAlgebra type, which just happens to have a very rich structure. Complaining about that is like complaining that Int isn't split into two types because it has negative and positive values. That makes no sense at all.

comment 3y ago · link · parent

Watched and read it all and find it amazing work. Text editing on mobile is embarassingly terrible and the proposals presented are very solid. Props to the author.

comment 3y ago · link · parent

Shut up and accept what? A company being closed source / for profit? Are we rioting against capitalism or something? Should I get my pitchforks? Just to be sure, we'll include literally all major tech companies, or is only OpenAI the target?

comment 3y ago · link · parent

We get it. OpenAI is a for profit company now. The "Open" in name doesn't reflect their vision anymore. Can we stop it already? Or is this some kind of rant against for profit / closed source in general?

168.

A Lock-Free Interaction Combinator Evaluator to Fix LoL' Client Performance(twitter.com ↗)

2 points · by LightMachine · 3y ago · discuss

comment 3y ago · link · parent

why there are no good videos of superfluids in action in the whole internet?

comment 3y ago · link · parent

GPT-4 does it very well though. (Not saying OP used it, was just curious if that'd work.)

Prompt:

> Observation of zero resistance above 100∘ K in Pb10−xCux(PO4)6O

> convert this to a title, with the correct usage of unicode

Output:

> Observation of Zero Resistance Above 100 K in Pb₁₀₋ₓCuₓ(PO₄)₆O

171.

wrong url :((twitter.com ↗)

1 points · by LightMachine · 3y ago · discuss

comment 3y ago · link · parent

I'm Brazilian and Pix is great. No reason to use anything else. Our government is terrible, but our central bank is actually quite competent. Credit to where it's due.

comment 3y ago · link · parent

spent 2 minutes on captcha. giving up. fts

comment 3y ago · link · parent

I'm in São Paulo right now and I didn't even notice that. I guess everywhere else is just flooded with billboards then?

comment 3y ago · link · parent

Well, then perhaps you need to reflect where your research failed, because it clearly did. Everyone is using Discord; from adult professionals to clueless kids who barely know how to connect to Wifi. So, if all these clueless kids are there, perhaps it is time for you to realize the interface perhaps is actually easy and you need to reconsider your conceptions of what makes a great UX.

176.

Show HN: ChatSH – a terminal where GPT writes the commands for you(github.com ↗)

7 points · by LightMachine · 3y ago · discuss

comment 3y ago · link · parent

Any idea how much it cost to train it and how it was trained?

178.

Implementing complex numbers and FFT with just algebraic datatypes (no floats)(gist.github.com ↗)

8 points · by LightMachine · 3y ago · discuss

comment 3y ago · link · parent

Where have you read that HVM beats C or Rust? That is not something I've ever written and we're far from that, specially considering the budget that has been thrown into Rust, although we could (and hope to) get there one day. This is possible in theory, because interaction nets are as lightweight as Rust, but have the added benefit of built-in parallelism. Please see the whole FAQ, I think it addresses all your questions. Let me know if you have any further questions.

comment 3y ago · link · parent

(Also, exponentially faster is used on the technical sense here! Optimal evaluators can reduce some programs with linear time complexity, while conventional runtimes are exponential.)
1
567
12