News for hackers. Stuff that matters.

psuter

Also in that vein is Island & Trains [1], though the release date may be further out.

[1] https://store.steampowered.com/app/1957760/Islands__Trains/

Re:The rarest move in chess [video] on Tuesday June 11, 2024 @09:37AM (#40646038)
Great investigation and excellent production value!

Brings back good memories too, as 10 years ago my first contribution to lichess was to improve the PGN notation for disambiguation. [1]

[1] https://github.com/lichess-org/scalachess/blame/master/core/...

Härkingen is well-known for being at the crossroads of important highways, FWIW. It is definitely a very relevant location for logistics.
Facebook reportedly was using Bittorrent to distribute their own application across their servers. I remember outreach presentations where they mentioned this over 10 years ago, and this article seems to have some corroborating details: https://arstechnica.com/information-technology/2012/04/exclu...
Re:Typography in Alien (2014) on Thursday August 12, 2021 @04:33PM (#28161062)
“huis clos”? It’s commonly used in French at least. https://en.wiktionary.org/wiki/huis_clos
I described some of the process in a previous HN thread: https://news.ycombinator.com/item?id=19567549

There is also a presentation we had prepared for an informal talk: https://github.com/chesseye/chesseye/blob/master/presentatio...

Hope this helps! I always enjoy talking about these things, so feel free to reach out if you want to discuss it more.

Congrats! We tried something similar a few years ago (also at the TC Disrupt Hackathon [1]), but had to take a lot of shortcuts to get to something working. I'm impressed you had the time to train a proper model (we went with old school CV hacks).

Looking forward to seeing what BoardBoss could become. These days I've been wanting a CV app to track backgammon games. Those dice can be pretty tiny though :)

[1] https://devpost.com/software/chesseye

That's correct. If you're curious about the architecture: the vision part detects a chessboard, then corrects the perspective and restricts the image to just the square of the board, then looks at each square and has some simple thresholds to decide if it's occupied by a piece, and of what color. From there, the camera is treated as a black box sensor that continuously streams two 64-bit masks, for where it thinks it sees white and black pieces. There is a second program (controller) that turns that stream into a stream of chess positions (and a Unix pipe in between). The sensor is faulty of course and the controller has logic for ignoring bits from the mask where there cannot possibly be pieces etc.
We built a barely working version of that during a hackathon a while back: https://github.com/chesseye/chesseye (README has a link to a video).

It takes a lot of shortcuts, works with just the right lightning, etc., but worked great as a proof-of-concept :)

We got away with not identifying the pieces by just detecting the color, assuming the game started from the initial position, and assuming only legal moves (the whole game is unambiguous using these assumptions).

It's all old-school computer vision with hand-written features, and I'm pretty confident there is tons of low-hanging fruit, but who has the time.

Re:Synchronous languages on Thursday October 04, 2018 @10:06PM (#18145196)
A friend+former colleague of mine is the lead author of ReactiveML, a synchronous extension to OCaml: http://rml.lri.fr/

We worked on a hackathon together where we built a physical chessboard interface (https://github.com/chesseye/chesseye). He built the controller, which handles among other things the output from the video recognizer and messages the chess engine, in ReactiveML. I didn't know much about the language beyond first principles then, but was impressed by how easy it made it to compose parallel processes.

We tried to convey some of those conclusions in a later presentation, even though looking at it 2 years later I realize it's probably hard to get the insights without the verbal delivery: https://github.com/chesseye/chesseye/blob/master/presentatio...

(I understand there was a ReactiveML tutorial at ICFP last Saturday: https://icfp18.sigplan.org/program/program-icfp-2018, not sure if this post is related.)

Re:Serverless QBasic on Monday July 16, 2018 @07:41AM (#17540473)
It was definitely a little confusing, as there seems to be many ways of exiting. From the QBasic docs in the IDE:

END: Ends a program, procedure, block, or user-defined data type. [...] If no argument is supplied, END ends the program and closes all files.

STOP: Halts a program.

SYSTEM: Closes all open files and returns control to the operating system.

You may be thinking of:

SHELL: Suspends execution of a Basic program to run a DOS command or batch file.

Re:Serverless QBasic on Monday July 16, 2018 @07:34AM (#17540438)
It is my understanding that QB64 [1] compiles through C++, although I haven't tried it myself. They in theory support a superset of QBasic, and you could compile the C++ generated files using emscripten (again, in theory).

[1] https://en.wikipedia.org/wiki/QB64

Re:Serverless QBasic on Monday July 16, 2018 @07:25AM (#17540394)
Thank you!

On a "warm" invocation, almost all the time goes into DOSBox + QBasic.

Not precise measurements but: on my MacBook Pro, running the QBasic interpreter from within DOSBox consistently takes about 1.5 seconds & running DOSBox + QBasic from the shell in "headless" mode takes about 2.4 seconds.

OpenWhisk also gives me the logs of the invocations, which include debug lines produced by DOSBox, and from the timestamps in those I can tell that invocations do typically spend >2s running DOSBox.

Re:Serverless QBasic on Monday July 16, 2018 @07:06AM (#17540308)
Thanks, this is great!
Re:Switzerland's mysterious fourth language on Saturday June 30, 2018 @04:35AM (#17430019)
I think you mean 'guinea pig' :)
Re:Switzerland's mysterious fourth language on Thursday June 28, 2018 @02:54PM (#17419498)
> Do you foresee an enlargement in the total number of speakers? Why?

In total number of speakers, it's possible, and I think it's been the case historically (just by general population growth). In relative numbers (fraction of the population), it's been shrinking and I don't see this changing. Main reasons are that:

  a) as mentioned in the BBC article, people move, and it's very difficult to keep the language after one or two generations if you don't live in that region,
  b) even if you were to move to a Romansh-speaking area (as a Swiss national or as an immigrant), the incentive to learn is low because almost everyone also speaks (Swiss-)German.
(just my non-expert opinion)

> national language

It has a slightly different status than the other 3 languages, Wikipedia explains it well [1]. I don't know if you could get citizenship that way but you'd definitely be on the news.

[1] https://en.wikipedia.org/wiki/Romansh_language#Official_stat...

Re:Switzerland's mysterious fourth language on Thursday June 28, 2018 @02:39PM (#17419370)
MX3 is a platform curated by the national radio stations in all four languages. The playlist by Radio Rumantsch would be a good start: https://mx3.ch/p/2ev (not all the songs are in romansch in there, though).
Re:Switzerland's mysterious fourth language on Thursday June 28, 2018 @01:56PM (#17419069)
I speak Romansch (although poorly, by now), AMA. (Or even better, out yourself as a fellow speaker!)
Re:Switzerland's mysterious fourth language on Thursday June 28, 2018 @01:44PM (#17418970)
I'm not sure it was ever the goal that everyone would _speak_ Rumantsch Grischun, as it is called, but the hope was that at least it would be used in writing (e.g. in school books) [1]. The resistance there is arguably more surprising.

[1] This is not too different from the situation with High German being used in education even though everyone speaks in dialects.

Nice tool! Not too obvious from the landing page that there is a terminal version. Also, some units come with implicit assumptions:

    ≫ 1 month -> days
      1 month -> d
       = 30.4167 d
    ≫ 1 year -> days
      1 year -> d
       = 365 d
Re:OpenAI Baselines on Thursday May 25, 2017 @06:09PM (#14420548)
zenodo.org lets you archive code and data, generates DOIs, has a GitHub integration, and is maintained by a reputable team. I recommend it wholeheartedly.

Older »