11 ms·
Show HN: Verilog2factorio
- majke 5y agoNote that factorio data propagation in circuit is not fast. In factorio, it will take one frame for two objects connected by the circuit to synchronize. The game runs at 60fps. So, if you connect 60 components in a series, it will take 1 second to propagate a change. This is the basis of how clock circuits work, but I guess is not perfect for the more complex circuits.
- spicybright 5y agoThey couldn't put in a sentence stating what this actually does?
- smoldesu 5y agoI'm no expert on the topic, but it looks like a protocol for interpreting hardware logic into a Factorio game board.
- pinum 5y agoI’d imagine the target audience for this consists entirely of people who already know what Verilog and Factorio are. And if you’re part of that intersection then it’s instantly obvious what it does from the title alone.
- avereveard 5y agoThey managed to describe fully what it does in the project name and post title. Unless you want an explanation of what verilog and factorio are, but then that sounds like it's another question from "what this project does".
- dvfjsdhgfv 5y agoVerilog is a hardware description language. So for example you could use it to program your FPGA (FPGA is a digital circuit you program from scratch). Factorio is an interesting video game where you basically use limited resources to construct factories that build different objects, the success depending on how well you design and optimize your factories.
- ecnahc515 5y agoThe repository states in it's readme: > This project will compile verilog (a hardware description language) into factorio blueprints.
- Mister_Snuggles 5y agoI would love to see some screenshots added to the README. I get that it compiles a Verilog design into a Factorio Blueprint, but what does the resulting factory look like? Is it just a bunch of wires and combinators?
- dmoy 5y ago> but what does the resulting factory look like? Is it just a bunch of wires and combinators? It seems like... yes? https://user-images.githubusercontent.com/35386456/115978429-54e09000-a54d-11eb-8d4e-48d7d9fc68c2.png https://user-images.githubusercontent.com/35386456/115978429...
- Mister_Snuggles 5y agoCool! The screenshots added since I commented definitely help make this understandable! I can definitely see some players building parts of their factories using this.
- tasogare 5y agoKinda looks like the shape of Africa, I wonder if it’s ln purpose.
- MisterBiggs 5y agoAlways thought programmatically generating Factorio blueprints was a really cool idea and Verilog seems like a great language to model blueprints, but this repo definitely needs more work before being shared with the world. One of my favorite tools that shows what's possible: https://autotorio.com/example/outpost https://autotorio.com/example/outpost
- lytedev 5y agoNo reason not to share works on progress with the world!
- thurn 5y agoNeat, I'd never seen outpost generator before, quite useful. I wish it were possible to generate blueprints directly from mods so stuff like that could be directly integrated into the game.
- ddlsmurf 5y agoOh yeah, it's not production ready, to all who depend on it be warned !
- ac42 5y agoGreat idea to comment on someone else's post on HN by pointing to related work, but the communication standards of the parent definitely need some work before being unleashed to the world.
- MisterBiggs 5y ago> Great idea to comment on someone else's post on HN by pointing to related work Almost every Show HN has references to other similar works in the comments. The point is to have a good discussion and I think talking about similar works is highly relevant.
- boomlinde 5y agoHence GP earnestly calling it a great idea.
- 29athrowaway 5y agoSomeone needs to make a video about this.
- deleted 5y ago[deleted]
- naikrovek 5y agowell how many man-hours do you need to intentionally waste before it is a good reason to not share? where's that line, for you? one of the worst things about open source is all the absolute crap that is claiming to be useful. how many man-millennia have been wasted because of the armies of people who have posted something they're proud of, but is complete rubbish, on npmjs.org?
- scrollaway 5y agoWow please stop with this gatekeeping. Seriously, people "posting their crap" is a great thing about open source. More should be encouraged to do so. If you look at my github profile you'll find the crap I wrote when I was 15 and still learning lua and python. The repos are of course archived and not claiming to be "web scale and enterprise ready", but nobody should shy away from learning in the open. You know what the worst thing about open source actually is? People who aren't owed anything, demanding to only see high quality code for their free enjoyment. Seriously, this is a neat clearly proof of concept tool for a video game that is entirely about wasting time.
- naikrovek 5y agoyou think I'm the one gatekeeping, here? holy cow. look in a mirror. it is not the crap out there that I was complaining about. read my comment again. it is the crap (read: non-useful stuff) claiming to be useful. please publish all the stuff you want. useful or not. I don't care. nor does anyone else. don't publish anything crappy (again, I mean non-useful) and claim it is useful. that is my beef. reading comprehension is important.
- linux_is_nice 5y agoRepo updated with examples.
- celeritascelery 5y agoI love this! would love to see this used in a introduction to hardware course.
- derekja 5y agowow, this is pretty cool!
- nickysielicki 5y agoI did not expect this to be written in TypeScript. The intersection of people who really understand Factorio, Verilog, and TypeScript has to be less than 250,000 people on entire planet -- in the entire universe.
- nexuist 5y agoIf you write your own language the only people who know how to use it is 1 :)
- ummonk 5y agoI think “250,000” is still orders of magnitude too high - I would bet you that the number of people who simply know verilog is lower than 250,000.
- VWWHFSfQ 5y agoI would bet it's less than 10,000 in the entire world.
- userbinator 5y agoThis feels a bit like that classic estimation interview question... Verilog originated in 1984 and educational institutions have been teaching it roughly as long, multiply by how many students graduate each year in an EE-related field and I'm pretty sure the number is far more than that in India alone. Of course, the number of people who know Verilog (and Factorio) enough to implement something like this is going to be a fraction of that.
- userbinator 5y agoSeeing that 6502 reminds me that ARM also provides a free (restricted license) version of the Cortex-M0 and M3 cores in Verilog format...
- interrealmedium 5y agoThat's it, I am done. No more serious IT work for me. I am going to become a gamers consultant. If there are people who care enough to make things like this, there must be people who would pay decent money for "professionals" to come in and optimize their factorio game, or their minecraft builds, or to make them feel good about their solution to a Zachtronics puzzle.
- avereveard 5y ago> minecraft builds Yeah that's the whole point of Roblox bucks for example, paying creatives for their builds
- interrealmedium 5y agoNo doubt, gaming support has been a serious business for a while. Far beyond the gold farming, item trade, and "pay me for voice chat" underground. I'd take a bet that almost everybody reading this who cares about cloud providers has come into contact with companies who started out by providing servers and administration services for Counter Strike or Minecraft.
- emteycz 5y agoThe key is in streaming your work.
- meristohm 5y agoI’m guessing you’re mostly not serious, though I acknowledge there may be a market for what you describe. As a lifelong gamer since the Commodore 64 (since parenthood scaling it way back to mostly crewing a tank in Hell Let Loose with two friends, or a ttrpg with same), looking back it feels like I took refuge in a medium (single-player games) ultimately less valuable than other-format stories, like books, film, and radioplays. What I’m driving at is a feeling that I’ve enjoyed elevated layers of luxury that may be an indicator of too much idle time for too many people in US culture. Is this a common mindshift with age? Escape has a place, but a whole industry built around spending so much time in abstraction layers feels like a problem if it’s not helping us relate to each other better.
- Animats 5y agoThere's also Verilog to Minecraft.[1] [1] https://github.com/itsFrank/MinecraftHDL https://github.com/itsFrank/MinecraftHDL
- fredley 5y agoI would love the inverse as well: Factorio2Verilog. Then I can use Factorio as an IDE.