HNHacker News
TopNewBestAskShowJobs

concise_unicorn

20 karma · joined February 8, 2013

[ my public key: https://keybase.io/gillesdemey; my proof: https://keybase.io/gillesdemey/sigs/4_RqSmf2ex0Qppc_90idDimu76jm1Txp_ICliaTqZvc ]
submissionscomments
concise_unicorn··on Touring the Zig-EM code-scape (2024)
https://ziglang.org/learn/why_zig_rust_d_cpp/
concise_unicorn··on macOS 14 will support JPEG XL
No, DICOM is a container format that can contain JPEG XL image data
concise_unicorn··on Show HN: Auto install npm dependencies as you code
It literally takes about 50ms to parse libraries like jQuery (mobile), angular and React with acorn[1].

Wether the choice was deliberate or not is debatable, but given the speed of these parsers I'd reason that there isn't any advantage to using regexes.

Reducing the amount of false positives is also one step closer to making this tool somewhat more secure, though certainly doesn't address any of the previous comments in this thread.

[1] http://esprima.org/test/compare.html

concise_unicorn··on Show HN: Auto install npm dependencies as you code
Tools like acorn[1] and Esprima[2] can parse the JavaScript source and output an ESTree compliant syntax tree.

Then you can traverse it and modify it like any other AST.

[1] https://github.com/ternjs/acorn [2] http://esprima.org/ [3] https://github.com/estree/estree

concise_unicorn··on Show HN: Auto install npm dependencies as you code
Regular expressions are a very naive way of detecting calls to 'require'. For correctness you're better off recursively walking the AST.

I've successfully used Detective in a couple of my personal projects to find all require statements.

Relevant issue on Detective: https://github.com/substack/node-detective/issues/8

concise_unicorn··on Show HN: Light Bootstrap Dashboard
Awesome stuff!

Here's a pet peeve of mine though: why isn't the entire surface area of the tasks clickable? I'm horrible at precisely targeting checkboxes.

concise_unicorn··on Microsoft Project Siena (Beta)
Is it just me or does it fail to explain just what it is, exactly?
concise_unicorn··on How to intern in Silicon Valley with a J1 visa
Having just secured my own J1 visa, I can attest to how relatively easy it was.
concise_unicorn··on Vagrant 1.4
Thanks for the screencasts, now I may finally get around to giving it a try.