HNHacker News
TopNewBestAskShowJobs

jingwen

620 karma · joined October 9, 2013

https://twitter.com/jin_

I work on the Bazel build system at Google.

submissionscomments
jingwen··on Gpu.js – GPU Accelerated JavaScript
I've built an animated raytracer using this library.

http://raytracer.crypt.sg

The compile-able JavaScript subset is still fairly limited, so vector operations are quite painful. Beyond that, it's a great library to start with for parallel computation in the browser if you have no background in WebGL/GLSL.

jingwen··on Why functional programming matters
Real World OCaml. https://realworldocaml.org/v1/en/html/prologue.html

> Real World OCaml is aimed at programmers who have some experience with conventional programming languages, but not specifically with statically typed functional programming. Depending on your background, many of the concepts we cover will be new, including traditional functional-programming techniques like higher-order functions and immutable data types, as well as aspects of OCaml's powerful type and module systems.

It's a nice segue into the world of functional programming if you're not ready to give up on imperativeness just yet.

jingwen··on A monoid is a category, a category is a monad, a monad is a monoid
For anyone interested to start on this subject, Philip Wadler's Category Theory for the Working Hacker [1] is an excellent introductory lecture for building an intuition.

[1] https://www.youtube.com/watch?v=V10hzjgoklA

jingwen··on Ask HN: What are you working on?
Learning Haskell via implementing a type system and type inference on a simple functional language.

https://github.com/jin/hindley-milner

Typeclasses were surprisingly easy to grasp. Got tripped up for a couple of days trying to implement a way to generate fresh variables ("a", "b", ...) and ultimately grokked the State monad to implement it.

jingwen··on Algorithms
IDEs help you write correct syntaxes. Algorithms and data structures help you write correct programs.
jingwen··on Ask HN: What device do you use to read academic papers with?
Thanks for the nit! I thought it read weird.
jingwen··on Show HN: I made a Hacker News for podcasts
I really like this. How does one go about learning more about improvements like these?
jingwen··on Lists
I remember using this list-making site _years_ ago, but somehow stopped using it. It reminds me of the modern day Pinboard, but for actual generic lists.

http://listography.com/

jingwen··on A Minecraft world that has been played for 3.5 years
*ex-wife. They separated in 2012.
jingwen··on Hacker News API
Wrote a simple ruby wrapper for this.

https://github.com/infinitus/hnrb

jingwen··on Chinese Number Websites
Well isn't that embarrassing. Thanks.

Errors:

6 * 5 = 30: 六五 三十 (liu wu, san shi)

6 * 8 = 48: 六八 四十八 (liu ba, si shi ba)

jingwen··on Chinese Number Websites
This is accurate. I was educated in a bilingual environment since young and remember strings of numbers (credit card numbers, telephone numbers, identity cards) much easier in Mandarin than in English.

For example, this is a small part of the multiplication table:

English:

six times five equals thirty-five

six times six equals thirty-six

six times seven equals fourty-three

six times eight equals fourty-eight

vs

六五 三十五 (liu wu, san shi wu)

六六 三十六 (liu liu, san shi liu)

六七 四十二 (liu qi, si shi er)

六八 五十六 (liu ba, wu shi liu)

---

one times one equals one

two times two equals four

three times three equals nine

four times four equals sixteen

five times five equals twenty-five

vs

一一 得一 (yi yi, de yi) (de == "gets")

二二 得四 (er er, de si)

三三 得九 (san san, de jiu)

四四 十六 (si si, shi liu)

五五 二十五 (wu wu, er shi wu)

I left out the tones for simplicity.

After a while, the mandarin multiplication table becomes like a poem to recite, while the English counterpart doesn't quite have the same ring to it

jingwen··on Go away Cameron – Bypass UK's porn filter
All the best for your products and projects, current and future. When I first saw this topic, I thought the name was familiar.. then I remembered having saw it first in /r/singapore, where you announced GOM and 6900000.

You're helping a ton of people out while taking quite a bit of risk. You're a good man.

jingwen··on Why I’ll Never Return to Singapore
The only "equalizing" compulsory conscription provides is when it puts men of diverse backgrounds into a tight-knit environment where they have to live, work and play together for the majority of the week. You don't get that outside of the military, or at least not in the same scale.

The pregnancy vs conscription issue really isn't debatable.

jingwen··on Why I’ll Never Return to Singapore
Getting the Israelis visibly and heavily involved in the Singaporean military is just asking for trouble in the region, given the nature of the country's neighbours.

http://en.wikipedia.org/wiki/Israel–Singapore_relations

jingwen··on Why I’ll Never Return to Singapore
> After graduating, every citizen is required to do active service in the military.

Nitpick: Men only. It's a common lament here that the men start higher education/work a couple of years later than their women counterparts, hence "losing out".

← PreviousPage 2 of 2