HNHacker News
TopNewBestAskShowJobs

testcross

939 karma · joined November 8, 2012

submissionscomments
testcross··on Melange 1.0: Compile OCaml / ReasonML to JavaScript
on any decent size application the output of bucklescript/rescript/melange is also unreadable. I never understood that argument.

some real problems with jsoo are (non exhaustive list)

- "heavy" FFI (both in term of setup and syntax)

- the output is a big single .js file, which doesn't allow reloading of a single component and doesn't integrate well with stuff like webpack

- slower compilation time

- lacking documentation for the javascript audience

testcross··on Human-like neural network chess engine trained on lichess games
https://en.wikipedia.org/wiki/TCEC_Season_19

stockfish finished +9 over 100 games.

I don't have any stock in those 2 engines, so I don't care which one is better than the other. At the end as a poor chess player it won't change anything :) It's actually interesting to compare how those two software are evolving and how they got here.

Stockfish is much older. And it took it a lot of hand tuning to reach its current level. It is (or was) full of carefully tested heuristic to give a direction to the computation. It would be very difficult to build an engine like stockfish in a short span.

Leela got there very very quickly. Even if it was not able to win in October, the fact that it got competitive and forced the field to adopt drastic changes in such a short period of time is impressive. It seems to be a good example of how sometimes no using the "best" solution could still be a win. Getting good results after a few months against something that required 10 years of work.

testcross··on Human-like neural network chess engine trained on lichess games
Actually stockfish crushed leela in recent TCEC. It seems that the new neural network of stockfish had a huge effect on the performances. Something like a 130 ELO improvement.
testcross··on ReScript 8.4
I don’t see how there’s a biased intent. I’ve no shares in any tech. If anything I wish for rescript to be a big success given how much the company I am in relies on it. I’ve contributed to multiple bucklescript projects. And I’m not criticising the decisions of anyone.
testcross··on ReScript 8.4
well sorry if this isn't true, but I haven't insulted anyone. If I get those feedback and they are incorrect, I hope that you can provide my insightful ones to clear the situation.
testcross··on ReScript 8.4
Btw for people who want to use js_of_ocaml instead of rescript but still like react, there is https://github.com/jchavarri/jsoo-react. It's obviously not as polished. But it's interesting to see how much work it requires to bind a large lib like react.
testcross··on ReScript 8.4
I feel like the dev team is using "readable output" to mean both "human-readable" and "shared data types" depending on the situation. And it creates a lot of confusion.
testcross··on ReScript 8.4
actually bucklescript has never really been used at bloomberg. And bob left bloomberg a long time ago. So this fork is definitely not happening because of bloomberg.

To have code that you can compile to both native and js, the easiest thing is to stick to the ocaml syntax. It is supported by all the versions of the compiler (rescript or ocaml). And to also use the ocaml syntax for the tools doing code generation, such as atdgen.

testcross··on ReScript 8.4
from what I heard, they use typescript instead of reason for some time already. I don't know if they use react or not. I also heard that they weren't always using reasonreact even when they were using reason. So they've never been 100% on the same stack than what was advertised by the reason team.

It probably explain why fb dedicates so little resources to reason too.

testcross··on ReScript 8.4
from the feedback I got, they migrated to something else
testcross··on ReScript 8.4
actually I think that it is basically not used inside facebook anymore. But it is used in a bunch of other companies.
testcross··on Reparse – A comprehensive parser combinator for OCaml
the author wasn't aware of angstrom or other alternatives.

https://discuss.ocaml.org/t/ann-reparse-2-0-0/6868/5

testcross··on Compiler for the M language of the French DGFiP
The author explains what were the challenging bits in this thread (in french): https://twitter.com/DMerigoux/status/1314531302079688709
testcross··on Teardown of the Singaporean Covid-19 TraceTogether Token
https://xobs.io/trace-together-token-teardown/ has more details
testcross··on Removing Your Site from the Wayback Machine
how does it work for all the content that is not under fair use because the author comes from a country with different laws?
testcross··on Removing Your Site from the Wayback Machine
> A few months ago we stopped referring to robots.txt files on U.S. government and military web sites for both crawling and displaying web pages (though we respond to removal requests sent to info@archive.org). As we have moved towards broader access it has not caused problems, which we take as a good sign. We are now looking to do this more broadly.

It might not be true forever. Unfortunately.

https://blog.archive.org/2017/04/17/robots-txt-meant-for-sea...

testcross··on Versioning Your Home Directory
For dotfiles, a good workflow seem to have a git/hg repo and combine it with GNU stow.

http://brandon.invergo.net/news/2012-05-26-using-gnu-stow-to...

testcross··on More OCaml
cmdliner is like 100 times better than argparse in my experience.
testcross··on Google Employees Uncover Ongoing Work on Censored China Search
I wonder how people working for the dragonfly project are feeling. It looks like the rest of the company hate what they are doing. But if they support censorship, they might not care what other people are thinking.
testcross··on The CEO of RevolutApp on Slack: “Why Aren’t You Working on Weekends?”
Now the question is: what are the good alternatives to revolut?
testcross··on A community-driven port of Emacs to Rust
This isn't the sortest elisp equivalent, no? I'm not a pro, but this should do the same thing for example.

    (if cond
        (progn
          (setq foo 10)
          (bar))
      (setq foo 20)
      (baz))
testcross··on A community-driven port of Emacs to Rust
If I remember correctly, the same kind of hack is used by atom to allow fast startup.
testcross··on The cost of keeping Singapore squeaky clean
Would be curious to know why the negative votes? I'm leaving there, so that's not just an impression from a western guy trying to save human rights. That's how it works there.
testcross··on The cost of keeping Singapore squeaky clean
> The country has long had an obsession with hygiene and cleanliness.

An obsession with shiny appearances. Hygiene and cleanliness? What a joke. So many meat shops don't store meat in a cold and clean place. Plenty of hawkers are far from clean.

> There are 56,000 cleaners registered with the National Environment Agency. There are likely thousands of independent contractors who aren’t registered. Mostly they’re low-paid foreign workers or elderly workers.

This says everything. It's easier to keep the city "clean" when you have slaves.

testcross··on The cost of keeping Singapore squeaky clean
Singapore is not very good at recycling or limiting the products of individuals. On the other hand, they recycle 100% of garbage from building constructions. Which is a pretty big volume of garbage.
testcross··on Show HN: Sublime Merge – A Git client from the makers of Sublime Text
Yes that's what I meant. Thanks :)
testcross··on Show HN: Sublime Merge – A Git client from the makers of Sublime Text
Looks like magit, without the very good editor integration that makes magit awesome. Seems nice tho.
testcross··on Adding Mercurial support to Gitlab
I read a few articles about a new way to work with hg that appeared in the past few years. They were saying that we don't need to have names on every branch. That actually we don't need to name many things and it works much more smoothly. I wonder what is the opinion of hg users here.
testcross··on Google wants websites to adopt AMP as the default for building webpages
"Google wants to kill the web" should be the title of this article.
testcross··on Why Google Stores Billions of Lines of Code in a Single Repository (2016)
They can create a standard file format that has to be generated by build system. github is in a pretty powerful position. They can create even a shitty version of it and people will follow.

I've been thinking about a tool like this for a long time. A way to attach to each commit not only the diff in the code, but also the list of places affected by the changes (usages of functions that are modified for example). Then during review we wouldn't have only a stupid diff. We would have a list of place to check to be sure that the changes make sense in the context of the project.

Page 1 of 2Next →