HNHacker News
TopNewBestAskShowJobs

e_d_g_a_r

767 karma · joined September 1, 2014

http://twitter.com/edgararout

http://github.com/fxfactorial

http://hyegar.com -> Awesome OCaml + other goodies blog.

submissionscomments
e_d_g_a_r··on [dead]
Harmony will soon be the only proof of stake sharded blockchain in the whole industry (as far as I'm aware) and I think more than just me would find that intellectually interesting considering, especially as ETH 2.0 has been building towards this for years and we are near to roll it out in production on mainnet.

Perhaps there are new accounts because many new people from Harmony community who are doing things like running validator nodes for the first time, or using the shell, linux or knowing about this site.

This post definitely is about something technical, testing slashing for double signing in a sharded blockchain. That is something novel to industry.

(I am a protocol coder at harmony)

e_d_g_a_r··on A Soviet-era airport, once the height of luxury, faces demolition in Armenia
If foreigners want to pay to fix it up and maintain, great; otherwise Armenia should destroy it and move on.
e_d_g_a_r··on Ecaml – Writing Emacs Plugins in OCaml
I like my blog post to get you up to speed: http://hyegar.com/2015/10/20/so-youre-learning-ocaml/
e_d_g_a_r··on Compile OCaml to JavaScript, use ReactJS, bindings to ReactJS, several examples
Sean just made this awesome much more real world usage example of a TODO MVC : https://www.dropbox.com/s/um29z2793ta7s9l/todomvc_state_repl...
e_d_g_a_r··on Compile OCaml to JavaScript, use ReactJS, bindings to ReactJS, several examples
This has nothing to do with elm..
e_d_g_a_r··on Compile OCaml to JavaScript, use ReactJS, bindings to ReactJS, several examples
I don't blame you, ES6 can be stupid concise and enjoyable. I practice most of my algorithms prep coding in it.
e_d_g_a_r··on Compile OCaml to JavaScript, use ReactJS, bindings to ReactJS, several examples
Speaking for myself, I think Reason is a very good thing and rewriting this in Reason or adding a Reason layer is a goal/TODO.
e_d_g_a_r··on Compile OCaml to JavaScript, use ReactJS, bindings to ReactJS, several examples
Thanks! Star it if you like it, use it and open issues if any arise.
e_d_g_a_r··on Compile OCaml to JavaScript, use ReactJS, bindings to ReactJS, several examples
opam version is a little bit behind curve, use `opam pin add -y reactjs git@github.com:fxfactorial/ocaml-reactjs.git`
e_d_g_a_r··on Reason: A new interface to OCaml
Probably not, sorry.
e_d_g_a_r··on Reason: A new interface to OCaml
People like to say that syntax doesn't matter and over the long term maybe it doesn't but anything that detracts from learning a language does matter and sometimes syntax is exactly that needless barrier.
e_d_g_a_r··on Reason: A new interface to OCaml
I for one welcome the syntax. I run the OCaml meetup in Silicon Valley and syntax is definitely an issue for newcomers. This makes it easier for other programmers to instantly just jump into OCaml/ML rather than ask about what is `in` or what is `let foo = function`, etc etc.

EDIT: Hosting a Meetup this friday at 6pm in San Francisco about Reason and how to instantly start using it, http://www.meetup.com/sv-ocaml/events/231198788/

e_d_g_a_r··on OCaml 4.03.0 released (including flambda)
When it crashes it literally gives you the command to undo the damage. How many package managers do that?
e_d_g_a_r··on An OCaml manifesto – Problems and what's needed for widespread adoption
I have created a starterkit package to get someone's new opam switch prepped quickly. https://github.com/fxfactorial/ocaml-starterkit See it for cool gifs/images.
e_d_g_a_r··on An OCaml manifesto – Problems and what's needed for widespread adoption
1. There are libraries for that. 2. opam.
e_d_g_a_r··on Generalizing JSX: Delivering on the Dream of Curried Named Parameters
it offers some elegance, here's a timeout function blogpost.

http://hyegar.com/2016/03/22/simple-timeouts/

In it the timeout function only takes one arg for its timeout wrapped function, so how do we use functions with more than 1 arg? Via currying

e_d_g_a_r··on Generalizing JSX: Delivering on the Dream of Curried Named Parameters
"Dream of Curried Named Parameters" What dream, this is a daily reality in OCaml.
e_d_g_a_r··on Ask HN: Which graphical SQL client do you use?
psql
e_d_g_a_r··on OCaml 4.03: Everything else
Can you provide an example of " This happens if `bar`'s type contains negative occurences of its self-type"
e_d_g_a_r··on OCaml 4.03: Everything else
For anyone looking for an OCaml quick start: http://hyegar.com/2015/10/20/so-youre-learning-ocaml/index.h...
e_d_g_a_r··on Why OCaml? [video]
No one has a vested interest in your interests other than you.
e_d_g_a_r··on Why OCaml? [video]
You could turn that sigh into a PR. You want it, then make it happen, this is open source after all.

Here is something that might help in the mean time, https://www.typerex.org/ocpwin.html.

e_d_g_a_r··on Why OCaml? [video]
For people curious about OCaml and wanting to actually learn the language, aka build something useful, then come to the next OCaml meetup at the Climate Corporation in San Francisco. Its a workshop from idea to opam publishable package. We'll build a command line tool to do bread and butter coding, aka HTTP requests and Json manipulation. You'll have reusable code and a starting point so you don't waste time with building code and actually spend time writing code.

http://www.meetup.com/sv-ocaml/events/228367572/

As incentive I will be giving away Enter the Monad t-shirts courtesy of Jane Street, thank you yminsky!

e_d_g_a_r··on Python to OCaml: Retrospective
I think rewrites are seldom worth it, no need to rewrite everything causes it not in your favourite language (Looking at you JS land)
e_d_g_a_r··on Python to OCaml: Retrospective
You will learn about how python's scoping rules are actually quite bad.
e_d_g_a_r··on Opam-ios: an OCaml compiler for iOS via opam, with example server code
Jeff has been maintaining it since, he just released 4.02.3 which is the latest available compiler http://psellos.com/2016/01/2016.01.the-minor-drag.html with iOS 9.2. Not that bad I'd say, that's pretty much bleeding edge. I don't know about swift because I don't know how to compile swift into an object file. Swift is not worth the hassle for me right now.

FWIW apparently it will be officially merged into the mainline compiler soon enough.

e_d_g_a_r··on Opam-ios: an OCaml compiler for iOS via opam, with example server code
No, its a normal feature of the ocaml compilers. I never saw that tool before your post.
e_d_g_a_r··on Opam-ios: an OCaml compiler for iOS via opam, with example server code
It does exist! https://github.com/whitequark/opam-android
e_d_g_a_r··on Opam-ios: an OCaml compiler for iOS via opam, with example server code
Yes, for now. Although I have also cross compiled the entire iOS toolchain to Linux, even have objective-C code completion in emacs on Ubuntu! That is however another blog post and detail that I haven't written down about.

TL:DR It is possible for Linux as well, but haven't done it yet.

e_d_g_a_r··on Opam-ios: an OCaml compiler for iOS via opam, with example server code
No, I mention: Here is a stupid server at the beginning, but let no stone be unturned...
Page 1 of 2Next →