Better HN
topnewbestaskshowjobs
Log inSign up

ngzhian

468 karma · joined Oct 31, 2012 (14y ago) · 26 submissions

Submissions

1.

Photo Drawn with a Single Line(finitecurve.com ↗)

2 points · by ngzhian · 5y ago · discuss

comment 5y ago · link · parent

If you are using Emscripten, porting x86 should be easy (see https://emscripten.org/docs/porting/simd.html#compiling-simd...), but you will take some performance hits (like float min/max) and these are all documented in the links above.

If you are interested to bring more SIMD instructions, you can participate in the SIMD subgroup. What's needed is interest in suggesting new instructions, working on a proposal (following the process) and pushing it through. Compiler expertise not required :)

3.

Algorithms by Jeff Erickson(jeffe.cs.illinois.edu ↗)

595 points · by ngzhian · 5y ago · 152 comments

4.

Parallel Seam Carving(shwestrick.github.io ↗)

232 points · by ngzhian · 6y ago · 37 comments

5.

Primitive – recreate your photos with vector-based geometric primitives(primitive.lol ↗)

182 points · by ngzhian · 8y ago · 22 comments

comment 8y ago · link · parent

http://mrale.ph/blog/2015/01/11/whats-up-with-monomorphism.h...

comment 9y ago · link · parent

2 classics that don't require a whole lot of backgrond are:

- An Axiomatic Basis for Computer Programming by C. A. R. Hoare

- The Next 700 Programming Languages by P. J. Landin

The most recent paper I've read is:

- Storage strategies for collections in dynamically typed languages - Bolz, Diekmann, Tratt

I blog about some papers I've read on my blog [0], and these three papers I've mentioned have their own post, where I summarize key ideas of the papers. Take a look if you're interested.

[0] https://blog.ngzhian.com/

comment 9y ago · link · parent

You might be interested in this: https://visualgo.net

9.

Learnable Programming (2012)(worrydream.com ↗)

2 points · by ngzhian · 9y ago · discuss

comment 9y ago · link · parent

Yes!

A useful tool for writing OCaml in Vim is Merlin [0].

Facebook uses OCaml as well [1] [2] [3]

A great tutorial is [4]

[0] https://github.com/ocaml/merlin

[1] https://github.com/facebook/reason

[2] https://github.com/facebook/flow/

[3] https://github.com/facebook/infer

[4] http://realworldocaml.org/

comment 10y ago · link · parent

Quickview for YouTube! Allows you to quickly view videos from your subscriptions feed page without any clicks.

https://chrome.google.com/webstore/detail/quickview-for-yout...

comment 10y ago · link · parent

Cool extension! My YouTube session usually happens on my subscriptions page, so I made this extension for non-stop, no-click viewing (hover to play video!): https://chrome.google.com/webstore/detail/quickview-for-yout...

comment 10y ago · link · parent

From https://github.com/donnemartin/haxor-news/blob/master/haxor_...

  haxor
  Unofficial Python wrapper for official Hacker News API

comment 11y ago · link · parent

The SQL version reads left-to-right, similar to how ReQL's version reads top to bottom, and both reflects the execution order (in terms of a common way of text flow). From my understanding, ReQL does not do any form of optimization based on the complete query, the `.()` punctuates the flow of command. Whereas and SQL statement is just one compound thing made up of different commands where the SQL engine can optimize, which makes it hard to tell.

15.

Colordiffs – syntax highlighting for diffs(github.com ↗)

2 points · by ngzhian · 11y ago · discuss

16.

Show HN: Navigate code on GitHub easily (jump to method/class definition)(chrome.google.com ↗)

6 points · by ngzhian · 11y ago · discuss

comment 11y ago · link · parent

i can confirm this, i was there at the hackathon

comment 12y ago · link · parent

Not trying to complain here, just sharing and interesting feature

comment 12y ago · link · parent

Tests that relied on date (especially involving getting the current date) are usually hard to get right. I had an assignment in school to build a To-do list, and had lots of problems trying to test it. I think I solved it by having methods take 2 dates, initial and relative date, rather than just getting the current date.

comment 12y ago · link · parent

Oh wow, that is a pretty bothersome trouble. I don't know nearly enough about databases and generating reports to understand this, but that link is saved. Thanks for sharing!

comment 12y ago · link · parent

Exactly, not sure how much code has been written to take advantage of this fact. Taking day 1 is a much safer option definitely.

22.

Code that breaks 2 or 3 times every month(ngzhian.github.io ↗)

45 points · by ngzhian · 12y ago · 18 comments

comment 12y ago · link · parent

Yes many sites do require that, but Yahoo? I expected a little more from them, does it even make any sense to have such password requirements anymore? Also, I can't tell for sure if the phone verification is optional, it could be required for new sign ups randomly. Yea I most definitely can, but I will definitely don't feel like logging in anymore.

comment 12y ago · link · parent

I'm pretty sure from 2007 till 2014 they made some changes to allow users to log on using Facebook/Google accounts, and they reverted in recent months

25.

I will never be able to log in to Flickr again(ngzhian.github.io ↗)

33 points · by ngzhian · 12y ago · 38 comments

26.

How to Go On in Life(ngzhian.wordpress.com ↗)

2 points · by ngzhian · 14y ago · discuss