A Verilog to Factorio Compiler and Simulator (Working RISC-V CPU) (github.com)

by signa11 22 comments 154 points
Read article View on HN

22 comments

[−] buildbot 47d ago
Verilog to X compilers always bring me such joy. (There are several ones for Minecraft)

I wonder with the new Timberborn 1.0 update with automation if there’s enough to build a computer from water gates…

[−] skyberrys 48d ago
What a wild idea, but it makes sense! I haven't taken the time to get it working. I've heard a lot about Factorio, but I stayed away from it so far.
[−] brailsafe 48d ago
Factorio is a great game that's easy to compartmentalize and allocate small, discrete periods of time to, especially if you're an engineer of any kind.
[−] 9dev 48d ago
Crack is the best thing you ever can try, my friend, trust me! It’s not addictive at all.
[−] lucyjojo 47d ago
factorio got me spitting blood from lack of sleep...
[−] brailsafe 46d ago
Small price to pay
[−] BiteCode_dev 48d ago
Sure, in the same way you can easily limit yourself to one cigarette a day.
[−] el_isma 48d ago
* "small" as measured by estimated lifetime duration
[−] Vasbarlog 48d ago
#not
[−] ddlsmurf 48d ago
Well don't if you value sleep and free time. Whilst slightly in jest, sincerely, it is incredibly addictive.
[−] deterministic 47d ago
I am an avid gamer. However Factorio is the only game I have been playing for years. It is truly unique.
[−] wbl 47d ago
The first time I played it I got a little sleepy and went to bed. It was 3 am.
[−] konovalov-nk 47d ago
... Curtain rises.

A technical interview at a company that uses Verilog.

Near future.

A candidate walks in. Big Factorio fan. The interviewer smiles and gestures toward a gaming PC. Factorio is already running.

The candidate squints. "What, are we gonna speedrun science in 40 minutes?"

The interviewer grins. "That would be too easy for you."

"Oh, I get it. No-belts challenge? Deathworld, no weapons? Rampant? Space Age blindfolded?"

"It's a debugging session," says the interviewer. "You know. The thing you'll actually be doing on the job."

"Got it. So what are we debugging? Train signals? Belt congestion? Fluid throughput? Nuclear ratios?"

The interviewer turns the monitor slightly.

"Here is a Hello World program in Verilog."

A beat.

"It has been transpiled into a Factorio map."

The candidate leans closer to the screen. Eyes agitated.

The interviewer smiles. "You just need to find a few problems with it."

... Curtain falls.

[−] skyberrys 45d ago
And the candidate never leaves, unable to stop playing.
[−] ur-whale 48d ago
Amazing work, and a fantastic idea, congratulations to the author. I am definitely trying this next week-end!
[−] ivanjermakov 47d ago

> I had a little bug in the ASCII font, so the smiley face is frowning.

Happens to the best of us!

[−] peaboff 47d ago
hey, I made this!

Thanks for showing it here!

[−] tomekowal 48d ago
Can it run Doom?
[−] jlogsdon 47d ago
[−] plasticchris 48d ago
Maybe if you can get it to zoom out far enough and wire up an array of lights on the surface of Nauvis…
[−] ogghostjelly 47d ago
I tried on my 1366x768 display fully zoomed out and it doesn't cover enough space for DOOM's 320x200 display if each pixel is one tile. But maybe you could get the display working on the map? Not sure if that's even possible, are there any Factorio tiles that can change their map color on demand? Or just download some kind of utlra-zoom mod, that works too.
[−] jw1294 48d ago
Truly excellent.