News for hackers. Stuff that matters.

micvbang

Ask HN: How to get portfolio exposure to RISC-V?

I believe RISC-V hardware is going to well in the coming decade. I've been trying to figure out what I can invest in to get exposed to it, but have been unable to find anything with direct exposure but privately held companies, e.g. SiFive. I'm happy to hear about indirect exposure as well, but I've already got the most obvious cases like e.g. TSMC on my list.Do you have any ideas for how to...

( Read More... | 1 comment | 4 points | on HN )
Re:Tools I love: mise(-en-place) on Sunday June 29, 2025 @02:45PM (#44415339)
Thanks a lot for telling me!
Re:Tools I love: mise(-en-place) on Sunday June 29, 2025 @02:34PM (#44415264)
Yep! And direnv on top of that :)
Re:Ask HN: What's your go-to message queue in 2025? on Sunday May 18, 2025 @05:42AM (#44020161)
I got tired of the pricing and/or complexity of running message queues/event brokers, so decided to play around with implementing my own. It utilizes S3 as the source of truth, which makes it orders of magnitude easier to manage and cheaper to run. There's an ongoing blog series on the implementation: https://github.com/micvbang/simple-event-broker
Re:Ask HN: What books have been worth your time? on Monday April 07, 2025 @03:49PM (#43615202)
Surely You're Joking, Mr. Feynman! by Richard Feynman
I've had many use cases for using an event broker, but never found one that was simple enough that I would venture into hosting it myself, or cheap enough to rent/host that it was feasible. Once I realized that cloud object stores fit this problem perfectly (they provide durability and are cheap to use), I realized that it would be possible to write one myself. I wrote a post on it here, along with a tiny performance evaluation: https://blog.vbang.dk/2024/05/26/seb/

I spent the better part of a week working on it full time, but spread over months. I use it daily - it's serving the needs of multiple projects that I needed it for :)

Re:Mocking Is an Anti-Pattern on Monday June 17, 2024 @03:49PM (#40710200)
I've been on teams where we've done this (very successfully in my opinion!) by creating helper code that automates creating a separate Postgres schema for each test, running all migrations, then running your test function before tearing it all down again. This all runs on CI/CD and developer machines, no credentials to any actual environments.

A major benefit of doing separate schemas for each test is that you can run them in parallel. In my experience, unless you have a metric ton of migrations to run for each test, the fact that your database tests can now run in parallel makes up (by a lot!) for the time you have to spend running the migrations for each test.

EDIT: usually we also make utilities to generate entities with random values, so that it's easy to make a test that e.g. tests that when you search for 5 entities among a set of 50, you only get the 5 that you know happen to match the search criteria.

Re:Hello World, Simple Event Broker on Thursday May 30, 2024 @03:23AM (#40521059)
Hadn't heard of this - it looks very interesting. Thanks for the reference!
Re:Hello World, Simple Event Broker on Wednesday May 29, 2024 @11:28AM (#40513015)
Cool - thanks for explaining!
Re:Hello World, Simple Event Broker on Wednesday May 29, 2024 @10:56AM (#40512617)
Yeah, it's currently a one-process-army so consensus isn't a problem :D

With the current implementation you /could/ run multiple readers at the same time; the only state there is, is files in S3. But it's a feature that just kinda happens to fall out of the current implementation, and not something it was designed for :)

Re:Hello World, Simple Event Broker on Wednesday May 29, 2024 @10:52AM (#40512592)
Thanks, great question!

My strategy was to start out by implementing the underlying storage primitives first, and then look into which transport to implement later. The transport of course can have a large impact on the required storage primitives, but in my case I built it the other way around since I knew what primitives I would need in my applications.

I've been playing with the thought of implementing (parts of) the Kafka API, but I honestly haven't considered the transport that much yet :)

Re:Hello World, Simple Event Broker on Wednesday May 29, 2024 @10:44AM (#40512516)
OP here. I hadn't seen this before, but I'll definitely give it a look. Thanks!
Re:Hello World, Simple Event Broker on Wednesday May 29, 2024 @10:43AM (#40512511)
Hehe, I'm very sorry, but there must be some kind of cultural barrier here. My smiley was intended as a way to intentionally show OP that I wasn't trying to be mean or anything, but sincerely asking the question :)

Anyway, it's my post. I just pulled down a Jekyll theme that I thought looked nice and tried it on my laptop and phone (where it worked fine). But thanks, I'll try to look into how and why it's broken.

Thanks!

Re:Hello World, Simple Event Broker on Wednesday May 29, 2024 @10:39AM (#40512476)
Thanks @eatonphil for posting this! OP here: I'd love to (try to) answer any questions you might have :)
Re:Hello World, Simple Event Broker on Wednesday May 29, 2024 @09:56AM (#40512066)
What isn't working for you? :)
Re:Intel Announces Arm Investment, Talks Up RISC-V on Saturday September 09, 2023 @02:22PM (#37448542)
You're right!
Re:Intel Announces Arm Investment, Talks Up RISC-V on Saturday September 09, 2023 @02:22PM (#37448535)
Thank you. Yes, I agree that it's a good idea to look for companies that create divided systems based on RISC-V. It's primarily these I've had trouble to identify :)
Re:Intel Announces Arm Investment, Talks Up RISC-V on Saturday September 09, 2023 @02:18PM (#37448463)
Yeah. My thought is that RISC-V has the potential to be very competitive in terms of compute/watt and compute/$. At the very least versus x86, but hopefully also with arm
Re:Intel Announces Arm Investment, Talks Up RISC-V on Saturday September 09, 2023 @01:14PM (#37447676)
Somewhat related: I believe RISC-V is going to well in the coming decade. I've been trying to figure out what I can invest in to get exposed to it, but have been unable to find anything. If anybody had got any angles, I'd love to hear them!
Re:Ask HN: Programs that saved you 100 hours? (2022 edition) on Tuesday December 20, 2022 @04:14PM (#34072676)
Oh my lord, I love DBeaver so much!

One thing that blew my mind the first time I saw it, was that when you look at geospatial data, they let you view your geometries on a map. It's so simple and so awesome!

Re:Porting Doom to the 3D0 Console on Monday December 05, 2022 @02:11AM (#33862485)
If you want to get into assembly code in general, I can highly recommend getting into CTFs (capture the flag, "competetive" hacking.) It's a lot of fun and if you go for the reversing or pwning tasks, you'll be directed towards x86 assembly almost immediately. There's _loads_ of content (e.g. writeups) to get you started. I remember using the site pwnable.kr quite a bit :)
For most people making high wages in tech, I would guess that it's much easier to spend less than it is to make more. Not spending 100$ has the benefit that you'll have an "extra" 100$. When you make 100$ you have to split it with the tax man :)

Older »