Readit News logoReadit News
user2342 commented on OCaml Syntax Sucks (2016)   xahlee.info/comp/ocaml_le... · Posted by u/Qem
user2342 · 9 months ago
Weak arguments in the article with badly chosen examples.

If one wanted to criticize OCaml syntax, the need for .mli-files (with different syntax for function signatures) and the rather clunky module/signature syntax would be better candidates.

user2342 commented on 34x34x34 Rubik's Cube   ruwix.com/blog/34x34x34-r... · Posted by u/Brajeshwar
bembo · 10 months ago
The website this post is on is a wiki that explains how to solve a lot of different puzzles like the rubix cube.
user2342 · 10 months ago
Thanks. Looks promising!
user2342 commented on 34x34x34 Rubik's Cube   ruwix.com/blog/34x34x34-r... · Posted by u/Brajeshwar
QuadmasterXLII · 10 months ago
are you looking for a classic cube specific source, or techniques that will solve much slower but generalize to other shapes of permutation puzzle?
user2342 · 10 months ago
Rather for the classic 3x3x3 cube. I played with it in the 80ies, but never understood the concepts behind it.
user2342 commented on 34x34x34 Rubik's Cube   ruwix.com/blog/34x34x34-r... · Posted by u/Brajeshwar
user2342 · 10 months ago
Are there recommendable sources on how to learn solving/the concepts of a classic cube?
user2342 commented on Using Euro coins as weights (2004)   rubinghscience.org/surv/e... · Posted by u/Tomte
user2342 · a year ago
Perhaps a helpful addition: I collected my change money over several years (about 9kg in total, mostly lower valued coins, since the higher values can be spent easily).

After exchanging them on a bank into useful money: the average Euro coin weights about 3.6 grams and has an average value of 7 cents. :-)

user2342 commented on Show HN: Haystack – an IDE for exploring and editing code on an infinite canvas   haystackeditor.com/... · Posted by u/akshaysg
hboon · a year ago
Is it partly inspired by Smalltalk browsers?
user2342 · a year ago
Yes, that was my first thought too. The concept is similar.

Get rid if the source-files and put every function/method in its own "editor". However, as far as I remember navigation to/from callers was not possible in Smalltalk.

user2342 commented on Sublime Merge   sublimemerge.com... · Posted by u/rococode
user2342 · a year ago
I'm using Sublime Text since shortly before 2.0 and Sublime Merge since day one. Yet, I'm slowly losing interest in ST because of lacking language integrations and probably won't do any future paid upgrades. However, Sublime Merge is still essential for me and a no-brainer.
user2342 commented on The CompCert C Compiler   compcert.org/compcert-C.h... · Posted by u/nequo
nequo · a year ago
My understanding is that the primary purpose of CompCert is to make formally verified code that is extracted into C also get compiled by a compiler that is formally verified to preserve the intended semantics.

So CompCert seems to me to aim to help mission-critical software to move away from C, and possibly into Coq/Isabelle/etc., except for the purposes of compilation to machine code.

user2342 · a year ago
> My understanding is that the primary purpose of CompCert is to make formally verified code that is extracted into C also get compiled by a compiler that is formally verified to preserve the intended semantics.

Thats my understanding too. Code is written in high level systems generating C as output. C becomes rather an implementation detail in a hopefully, more or less completely verified tool chain.

user2342 commented on The CompCert C Compiler   compcert.org/compcert-C.h... · Posted by u/nequo
jack1243star · a year ago
> longjmp and setjmp are not guaranteed to work.

Curious why the author words it like this, rather than just "not supported".

user2342 · a year ago
They may work as expected (and probably will), but they are not covered by the proof.
user2342 commented on Translation of Rust's core and alloc crates to Coq for formal verification   formal.land/blog/2024/04/... · Posted by u/p4bl0
cccbbbaaa · a year ago
You can write programs in Coq and extract them in OCaml with the `Extraction' command: https://coq.inria.fr/doc/v8.19/refman/addendum/extraction.ht...

This is used by compcert: https://compcert.org/

user2342 · a year ago
Yes, I know, I mentioned the extraction.

My question was whether it can help detecting translation errors from the first step.

u/user2342

KarmaCake day61March 10, 2019View Original