HNHacker News
TopNewBestAskShowJobs

octachron

314 karma · joined April 29, 2016

submissionscomments
octachron··on Owl – OCaml Scientific Computing
There are some change in the pipes that should make the syntax for slicing lighter in OCaml 4.10 by eliminating the need of the outermost [| |] or [ ]. For instance,

  let a = x.%{ [|2; 3; 4|] }        
  x.%{ [|2; 3; 4|] } <- 111.         
  let a = x.${ [[0;4]; [6;-1]; [-1;0]] }
might be simplified to:

  let a = x.%{ 2; 3; 4 }
  x.%{ 2; 3; 4 } <- 111.
  let a = x.${ [0;4]; [6;-1]; [-1;0] }
It is possible to go further with ppxs(OCaml version of macros), but at a greater readability cost.
octachron··on OCaml 4.08
There is a dry technical description at http://caml.inria.fr/pub/docs/manual-ocaml-4.08/manual046.ht... . And a more illustrative description at https://jobjo.github.io/2019/04/24/ocaml-has-some-new-shiny-... .
octachron··on OCaml 4.08
There were a handful of concomitant improvements:

* The printing of error message has been improved to display the code source responsible of the error outside of the REPL.

* Some probable beginner errors (like discarding a non-applied function with `ignore`) now raises a warning.

* Type name captures should not happen anymore in error messages: no more `val x: int` is not included in `val x: int` where `int` refers silentiously to different types.

* A handful of typing errors has been fixed to speak to users and not the compiler developers (no more "unexpected existentials" for instance).

* Some compiler internal change to make it much easier to use the typing context when explaining a type error. This is not used much yet, but I hope to improve the scope related type errors in the next versions.

octachron··on Physicists Debate Hawking’s Idea That the Universe Had No Beginning
The final state is a kind of thermal death where thermodynamics say that nothing happens anymore. However, thermodynamics is only an effective theory. It is false on tremendously large time scale: after a very very very large time a random fluctuation can bring down the universe entropy to pre-death level and restart a new non-boring universe (for a very short duration compared to the time spent in the thermal death).
octachron··on Migrate Jest to TypeScript
No, records are nominally typed in OCaml, thus the two types `A` and `B` would be deemed incompatible.
octachron··on GCompris: high quality educational software suite for children aged 2 to 10
GCompris was originaly a GTK(Gnome) project, it migrated to Qt few years ago to make it easier to port it to tablet.
octachron··on Ray Tracing Is No New Thing
Even ray tracing does not capture all physics of electromagnetism and only works at the level of geometrical optics: any effect, like diffraction or iridescence, that arises due to the wave-like nature of light still need to be implemented in ad-hoc way in a ray tracing algorithm. But fully simulating Maxwell's equations (or QFT) to keep track of those minor effects would be insanely expansive.
octachron··on The Chinese were solving 14th degree polynomials in 1303. Why?
Abel-Ruffini theorem only speaks about general solution in term of elementary operations and nth-root, which is a very restricted form of solution. Numerically solving roots for generic polynomial is perfectly doable (and the nth-root already require approximate computation). Moreover, the radical solution for cubic and quartic equation is already quite difficult and inefficient to use compared to numerical solution.
octachron··on Frequent versus infrequent developers, in languages and so on
I agree that graphics programming has become more and more hostile to infrequent users over the years. Comparing the setup boilerplate needed to draw a triangle from OpenGL to Vulkan is just horrifying.
octachron··on A Crash Course on ML Modules (2015)
No, OCaml has an object system, but it is an uncommonly used complement to the module system.
octachron··on Encode state transitions in types using linear types
> ω, which I’m prettying sure is the Greek abbreviation of “whatever” (zero or more times).

Or it is the classical notation for the ordinal associated with the set of integers ℕ, aka any number of times.

octachron··on OCaml 4.03.0 released (including flambda)
This is probably a false positive with merlin, that should not affect your code itself.
← PreviousPage 4 of 4