Can someone explain to me in short summary why blockchain without crypto currency suddenly is a thing and why anybody would want it?
ELI5: A blockchain is an »I told you so« store. Future statements/promises are linked to past ones so you can’t mess one without having to mess with all the others. It’s like a black board you can’t wipe clean again, adding more text (and space to write to) is the only thing possible. For example, you could promise to paint your house red in a blockchain. You later regret that promise and tell your friends you never…
Show HN: Legion, an as-simple-as-possible blockchain server written in Haskell
61–70 of 73 posts
Re: Show HN: Legion, an as-simple-as-possible blockchain server written in Haskell
#62Re: Show HN: Legion, an as-simple-as-possible blockchain server written in Haskell
#63... had this been written in a language less esoteric than Haskell, it would've been even better for the rest of us :)
Re: Show HN: Legion, an as-simple-as-possible blockchain server written in Haskell
#64Can someone explain to me in short summary why blockchain without crypto currency suddenly is a thing and why anybody would want it?
ELI5: A blockchain is an »I told you so« store. Future statements/promises are linked to past ones so you can’t mess one without having to mess with all the others. It’s like a black board you can’t wipe clean again, adding more text (and space to write to) is the only thing possible. For example, you could promise to paint your house red in a blockchain. You later regret that promise and tell your friends you never…
Re: Show HN: Legion, an as-simple-as-possible blockchain server written in Haskell
#65Earlier quoted context omitted.
Note that "the first X characters" is kind of misleading, because it is usually more fine grained. It is better (and IMHO even simpler!) to think of the hash as a large integer, not a string. Then you want that integer to be smaller than a certain value. With strings, you can only say: "00123" shall start with "00", while wih integers, you would say: 00123 shall be smaller than 300. (To be that fine grained with stri…
You can implement 0 prefix checking pretty easily in bitstrings: 0 == hash >> (hash_length - prefix_length) Or, alternatively: !(hash & prefix_mask) where `prefix_mask` is 1111..000, with `prefix_length` number of 1s. I think that working in terms of bitstrings generated by the hash gives more context to why those integers are chosen (that they represent a certain portion of the space of possible answers), but it's a…
Re: Show HN: Legion, an as-simple-as-possible blockchain server written in Haskell
#66Re: Show HN: Legion, an as-simple-as-possible blockchain server written in Haskell
#67Earlier quoted context omitted.
A Literate Haskell blockchain might just be Peak HN. ( Definitely peak HN if it runs in the browser).
Is GHCJS using WASM yet, because if so...
Edit: https://webghc.github.io
Re: Show HN: Legion, an as-simple-as-possible blockchain server written in Haskell
#68Re: Show HN: Legion, an as-simple-as-possible blockchain server written in Haskell
#69Earlier quoted context omitted.
I'm not familiar with Literate Haskell, what would that involve?
It's just where the majority of the file is a comment instead of a minority.
It's an old pet peeve of mine. I cringe inside every time someone starts waxing about "writing your thoughts first, and your code only incidentally" or "it's a completely different paradigm of programming" and other such pieces of useless, discouraging new age fluff.
Re: Show HN: Legion, an as-simple-as-possible blockchain server written in Haskell
#70Earlier quoted context omitted.
ELI5: A blockchain is an »I told you so« store. Future statements/promises are linked to past ones so you can’t mess one without having to mess with all the others. It’s like a black board you can’t wipe clean again, adding more text (and space to write to) is the only thing possible. For example, you could promise to paint your house red in a blockchain. You later regret that promise and tell your friends you never…
Except without proof-of-work, rewriting all of history is trivial.
Even if we lose the "decentralized consensus" aspect with no PoW, it still can be advantageous. E.g.: simply having an authoritative server always responding with the latest block hash. The server is very lightweight (as in 80s microcontroller lightweight) and it can offload the actual blockchain handling to clients.