1,047 karma · joined April 23, 2016
Edit: didn't read through the whole thing, I guess contracts can do things that interfaces don't. I think the overlap still makes things a bit awkward though.
<div>
{if (cond) {
<Comp1 />
} else {
<Comp2 />
}}
</div>
Or even: <div>
{switch (expr) {
| A => <CompA />
| B => <CompB />
| _ => <CompC />
}}
</div>https://discuss.ocaml.org/t/the-origin-of-the-0b-01-notation...
There's a talk by one of the engine devs at RacketCon from a few years ago on youtube about how they use these DSLs and how they came to be: https://youtube.com/watch?v=oSmqbnhHp1c
Neither of these adds new keywords (ReasonML switches some around, e.g. match is now switch) but maybe one of these approaches might work for language features or breaking syntax changes or revisions.
- the Flow and Hack compilers
- Facebook's Messenger app
- Jane Street's entire trading infrastructure (and everything else they do)
- XenServer
- some parts of Docker, including the TCP/IP networking stack on OS X and Windows
Creating and maintaining a community around an open source project is a lot of work, and it's understandable if Facebook doesn't want to pour many resources into this particular project, even if they keep it open source.
If "x" is declared there and never mutated in the subsequent code, and the code in the "..." doesn't perform any side effects, then such an optimization could occur... but then again, if the code in the "..." in your example didn't perform any side effects, it'd be dead code.
Other than that:
Super Bunnyhop (videogames, very interesting investigative journalism every now and then) https://www.youtube.com/user/bunnyhopshow
Leonardo Da Sidci (videogames, amazing production quality and very introspective topics) https://www.youtube.com/channel/UCujjLOPLW92zVBlhaL8wxPg
Archipel (short documentaries focused on japanese creators and artsy videos) https://www.youtube.com/channel/UC3zoY9LapZERsN7caDKqz0w
Noclip (long form documentaries about videogames, mostly made up by interviews directly with the developers) https://www.youtube.com/channel/UC0fDG3byEcMtbOqPMymDNbw
byoblu (italian "videoblog" about politics featuring lots of interviews and discussions, always to be taken with a grain of salt) https://www.youtube.com/user/byoblu
Then, a lot of comedy channels of dubious value which I'd rather not embarrass myself with on here.
My guess is that some people use them as bookmarks... but isn't that what stars are for?
The Thief games still have a very active community that regularly produces high quality fan missions, and one of the original engine developers has started releasing unofficial patches to make the games run on modern systems a few years ago. I'd love to read the games' full source code and to be able to play them on Linux without bothering with Wine
Obviously they're being played by real actors with motion control equipment, but there's a lot of work that goes into making them feel believable as virtual characters, with facial expressions and lots of other animations that are probably added after recording.
They've become very popular in Japan over the last year. The most famous one is called Kizuna Ai: https://www.youtube.com/watch?v=NasyGUeNMTs
let x : (int list ref, string) result option =
let x1 : int = 0 in
let x2 : int list = [ x1 ] in
let x3 : int list ref = ref x2 in
let x4 : (int list ref, string) result = Ok x3 in
Some x4
The declaration of List.map: val map : ('a -> 'b) -> 'a list -> 'b list