Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
sergex
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
sergex
2y ago
Author here. Yeah, the first level is special and perhaps half-baked. It felt like cheating to start with the NAND-gate as the atomic component since transistors are not NAND-gates. So I start with electric relays (since they logically corr
2.
▲
by
sergex
2y ago
Is your problem with the user interface, i.e. how to connect wires from input to output, or is is with the logical problem of getting the correct output?
3.
▲
by
sergex
6y ago
Yes that would be great!
4.
▲
by
sergex
6y ago
I'm not using canvas. SVG is used for the connections, the rest is HTML. I'm not using any particular library for the diagrams, since I couldn't find anything suiting my purpose unfortunately. I would definitely like to impro
5.
▲
by
sergex
6y ago
No it means you can either optimize for fewest components or fewest nand-gate. The text could be clearer.
6.
▲
by
sergex
6y ago
Author here - I would love to do a few layers below the nand gate.
7.
▲
by
sergex
6y ago
> I'd like to see the ability to "unbundle" the composite components. This is a great idea, and you are not the first to suggest it. I just haven't gotten around to implement it.
8.
▲
by
sergex
6y ago
Yes it has improved a lot. Still more improvements to come!
9.
▲
by
sergex
6y ago
Thank you very much for the suggestions.
10.
▲
by
sergex
6y ago
Author here: The reason you drag from the input rather than output is that a pin can have only one input.
11.
▲
by
sergex
6y ago
Author here - thank you for the feedback! The nand-count is based on how you built the components involved. So optimizing a component will have have cascading effects. "This is the simplest solution!" means the solution with fewes
12.
▲
by
sergex
6y ago
Author here - It uses TypeScript and the Angular framework. Not because I prefer Angular in particular but because I had to learn it anyway for a work-related project. I think TypeScript is great.
13.
▲
by
sergex
6y ago
It is a web site, but it seems they have a "sites" plan for 5$ a month. Looks great, thanks!
14.
▲
Ask HN: Scalable Hosting for Side Project
3 points
by
sergex
6y ago
|
3 comments
15.
▲
by
sergex
8y ago
That would be really cool. I need to refactor a bit to allow different translations of the text, but I can get back to you when it is possible.
16.
▲
by
sergex
8y ago
Code goes into how logic gates like the nand gate are built, so it does start at a lower level than Nand to Tetris which start with nand gates as primitives.
17.
▲
by
sergex
8y ago
Yeah it currently only compares the solutions towards the minimum number of components of any type. I also intend to compare against the minimum number of nand gates overall, but this is not yet supported.
18.
▲
by
sergex
8y ago
That would be really cool!
19.
▲
by
sergex
8y ago
I made a small game inspired by the first lessons in the course: http://nandgame.com/
20.
▲
by
sergex
8y ago
Thank you for finding the bugs! It shouldn't even be possible feed a 5 to a one-bit connector. Yes I think I shot myself in the foot by designing the connectors so the labels could only be one or two letters. There is no technical reas
21.
▲
by
sergex
8y ago
Actually there was a bug both in the text and in the code. A=1 should be 0x8FE0, but this was not specified correctly. I have fixed it now (I hope).
22.
▲
by
sergex
8y ago
Thanks, it is a very cool idea. I wanted to make the game really simple and accessible, but there seem to be interest in optimization challenges like finding the smallest/cheapest/fastest possible solution.
23.
▲
by
sergex
8y ago
You are correct, the text is wrong. It should be 128KB, not 64KB. A word is two bytes (on a 16-bit architecture) so we can address 64K words which is 128KB. (I think you mixed up byte and word in your comment, but I understand what you mean
24.
▲
by
sergex
8y ago
May I ask about browser/platform and what you did to make this happen? I am not able to reproduce the issue.
25.
▲
by
sergex
8y ago
Yeah I'm unsure how to clearly communicate how the connectors work.
26.
▲
by
sergex
8y ago
Interesting idea, but how should this be determined? Would it be a "cost" per transistor and wirelength, and then the minimum clock cycle time would be the "worst case" path through the circuit?
27.
▲
by
sergex
8y ago
No, just ignorance on my part. I would be easy to flip input and output though.
28.
▲
by
sergex
8y ago
Doh, you are correct about selector - the decoder should no be available here (and is not needed). And the bus definitely needs an introduction.
29.
▲
by
sergex
8y ago
Thanks! A possible solution [spoiler alert!] is inv(add(inv(input), inv(0)) where inv(0) is an inverter without any input. By the way I suppose the subtraction component should be available in this task. This would make is simpler. I had tr
30.
▲
by
sergex
8y ago
You need to special case "target a", it should be 1 in case bit 15 is 0. The error reporting could definitely be improved. It should probably display the exact mismatch, something like "with input XXX connector Y was 0 but wa
More ›