News for hackers. Stuff that matters.
Re:Paxos in 25 Lines by bfung on Tuesday March 21, 2017 @12:59PM (#13924036)

    1	proposer(v):
    2    while not decided:
    2	    choose n, unique and higher than any n seen so far
26 lines.

It's pseudocode, so not really only 26 lines as it needs some more supporting functions to "choose n, unique and..." and other stuff to make setting variable states atomic.

Good way to explain the algo though.

Re:Paxos in 25 Lines by cortesoft on Tuesday March 21, 2017 @02:22PM (#13924765)
Number of lines is the most ridiculous metric anyway. Most languages have no line length limit, just replace all newlines with semicolons, and you have a one line program!
Re:Paxos in 25 Lines by d0vs on Tuesday March 21, 2017 @05:46PM (#13926561)
> Most languages have no line length limit

Some languages do?

Re:Paxos in 25 Lines by porges on Tuesday March 21, 2017 @06:19PM (#13926811)
("Free-format") Fortran has a max line length of 132 chars, up from ("fixed-format") 72 chars on punch cards.
Re:Paxos in 25 Lines by amagumori on Tuesday March 21, 2017 @07:48PM (#13927362)
the ANSI C standard has a line length limit, so there are no guarantees that compilers have to function properly with longer lines than given in the standard.
Re:Paxos in 25 Lines by cortesoft on Wednesday March 22, 2017 @06:45PM (#13935735)
Many?
Re:Paxos in 25 Lines by bfung on Tuesday March 21, 2017 @01:18PM (#13924212)
Also, this is a resubmission from 3 days ago from the same user.

https://news.ycombinator.com/submitted?id=Cieplak

https://news.ycombinator.com/item?id=13896750