News for hackers. Stuff that matters.
Re:WASM_of_OCaml by progval on Monday July 24, 2023 @01:36PM (#36851539)
I am French, but I feel this matches definitions 2a and 3 on https://www.merriam-webster.com/dictionary/of :

* "used as a function word to indicate origin or derivation, eg. a man of noble birth" (js code comes from ocaml code)

* "used as a function word to indicate the component material, parts, or elements or the contents, eg. throne of gold / cup of water" (js application made of ocaml code)

Re:WASM_of_OCaml by hajile on Monday July 24, 2023 @02:40PM (#36852492)
"Cup of water" isn't a great example because it would imply then cup was made from water. This makes more sense when you realize "cup of water" is lazy speech for "cup full of water".

"of" usually implies a state of being while "from" implies a transformation.

"JS of Ocaml" implies that the JS is Ocaml, but that's not true as it is transformed. "JS from Ocaml" would be more accurate.

Re:WASM_of_OCaml by afiori on Wednesday July 26, 2023 @03:26PM (#36883490)
The of in Cup of water act as a normal genitive. It communicates that the cup relates to water and the only reasonable relation between a cup and an edible liquid is that the cup contains the liquid