Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
chenglou
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
18 ms
·
91.
▲
by
chenglou
9y ago
This is pretty neat! https://github.com/agraef/pure-lang/wiki/Rewriting#construct... : > As a bonus, you also get "constructors with equations" for free. E.g., suppose that we want lists to automa
92.
▲
by
chenglou
9y ago
Static analysis aside, the first snippet using the React API is very much designed to be used sparingly. I feel It's a bit of an unfair comparison to take an escape hatch that's intentionally verbose and indicative of "danger
93.
▲
by
chenglou
9y ago
We (objectively) haven't received (many) bug reports (on the Reason section, on the web, where Reason is). See my comment right above. We do receive a ton on the rest, plus for the server side.
94.
▲
by
chenglou
9y ago
I've given an answer to currying at https://news.ycombinator.com/item?id=15573956 BuckleScript's author and I collaborate on a daily basis, btw. So you're definitely welcome to use _just_ BuckleScript. I'
95.
▲
by
chenglou
9y ago
> Still weird to have a syntax that is at odds with the underlying semantics, and hopefully it doesn't sow more confusion than it initially solves in the long term _This_, I do think, is a fair argument. It's indeed an accident
96.
▲
by
chenglou
9y ago
I've given an answer to currying at https://news.ycombinator.com/item?id=15573956
97.
▲
by
chenglou
9y ago
We already use ocaml to write Hack, Flow and Infer, so just from a corporate standpoint, this move to incrementally adopt more of a language that's had many success stories internally makes sense. From an individual standpoint, there a
98.
▲
by
chenglou
9y ago
I'm gonna argue beside the point, but currying has negative semantics and type system impact in a language with uncontrolled side-effects. It also prevents some optimizations and new type features. Don't take my words for it: ht
99.
▲
by
chenglou
9y ago
(Hey Brandon!) The JS part of messenger.com bugs a lot more.
100.
▲
by
chenglou
9y ago
The removal of `fun` (And unification of @@@) is directly tied to the parens change; otherwise there'd be parsing conflicts
101.
▲
by
chenglou
9y ago
Here's a big centralized thread for it: https://github.com/reasonml/reasonml.github.io/issues/195 In short, every part works, but the workflow is a bit contorted atm
102.
▲
by
chenglou
9y ago
I was actually gonna talk to Anil, but that got delayed. Let's pick up that discussion again.
103.
▲
by
chenglou
9y ago
They're available to vanilla OCaml as well (given the constraints listed in the post). Add `"bsc-flags": ["-bs-super-errors"]` in your `bsconfig.json` to turn it on. If you use BuckleScript, that is. We'll try
104.
▲
by
chenglou
9y ago
I made this release, and I also don't understand, and I do mean this _very honestly_. Aside from familiarity that is. But the thing to realize is that this syntax change isn't for folks and you and me. We'll be fine with eith
105.
▲
by
chenglou
9y ago
I don't see many people talk about Apple's approach to text editing, on iCloud.com Pages. They use svg and it allows them to achieve some pretty fancy effects. Anyone experienced with this method?
106.
▲
by
chenglou
9y ago
Fwiw OCaml is a GC language and can run on PIC: http://www.algo-prog.info/ocapic/web/index.php?id=ocapic
107.
▲
by
chenglou
9y ago
Not that I'm aware of. Though it'll be a shame if React is a one-off. Can't comment on the rest.
108.
▲
by
chenglou
9y ago
Nah I'm the Reason janitor. I declined joining the Reason team because I thought joining messenger was a better way to help Reason move in directions products folk understood; it paid off =) Anyways, since I'm basically doing Reas
109.
▲
by
chenglou
9y ago
Btw Bloomberg kindly donated the BuckleScript project. It's now under its own independent organization on Github.
110.
▲
by
chenglou
9y ago
Honestly I believe modeling such thing in JS as an initial iteration would have drastically changed what ReactJS is today, and likely for the worse. No proof of that, aside from the fact that iterating it in SML gave the rather paradigm-shi
111.
▲
by
chenglou
9y ago
Thanks for the support. It's hard though, isn't it? We get the same arguments on a weekly basis. Folks categorically refuse to check out OCaml because of its syntax. At one point the Reason creator decided to just go and satisfy t
112.
▲
by
chenglou
9y ago
Hey! It's weird: it's not the first time we get questions like yours and I'm not sure where such confusion comes from! Reason and React are two things. Reason's a syntax on top of OCaml, the programming language. ReactJS
113.
▲
by
chenglou
9y ago
That section's still in JS
114.
▲
by
chenglou
9y ago
You (and I) are definitely in the minority here. "Go back and do a computer science degree" is probably the opposite wish of lots of software engineers, in terms of quantity. From what I know, there are at least three classes in s
115.
▲
by
chenglou
9y ago
You're reading the wrong blog post btw; this is about messenger.com adoption. Happy to discuss that other blog post somewhere else (discord.gg/reasonml)
116.
▲
by
chenglou
9y ago
Pretty much. The goal of Reason is to make some weighted compromises* in order to allow folks (like you?) to have an easier time convincing your colleagues that OCaml's a good bet, disregarding their past experiences with similar langu
117.
▲
by
chenglou
9y ago
We do contribute to upstream, and we've even hired a few renown OCamlers (can't say more atm, sorry). As a matter of fact I've kept a list of Reason's contributions, PRs or otherwise. I'll publish it in due time.
118.
▲
by
chenglou
9y ago
It's not the Reason sections; if you've seen BuckleScript's output you'd know that the JS artifacts are almost like hand-written code. I've checked almost every diff. Not sure how much I can say, but the leak is som
119.
▲
by
chenglou
9y ago
Hello! Reason team member here. With that kind of exposure comes some pretty negative snarks & unrelated criticisms that are hard to counter in a post/tweet. I've left a few replies on this thread but I'll still try my be
120.
▲
by
chenglou
9y ago
Right. Though the Ads thing the post mentions uses Reason natively (aka ocamlopt). Not on the server, but as a tool for the front end.
More ›