Better HN
topnewbestaskshowjobs
Log inSign up

concise_unicorn

20 karma · joined Feb 8, 2013 (13y ago) · 12 submissions

[ my public key: https://keybase.io/gillesdemey; my proof: https://keybase.io/gillesdemey/sigs/4_RqSmf2ex0Qppc_90idDimu76jm1Txp_ICliaTqZvc ]
Submissions

comment 1y ago · link · parent

https://ziglang.org/learn/why_zig_rust_d_cpp/

comment 3y ago · link · parent

No, DICOM is a container format that can contain JPEG XL image data

comment 10y ago · link · parent

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

comment 10y ago · link · parent

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

comment 10y ago · link · parent

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

comment 11y ago · link · parent

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.

7.

Show HN: Cumulus, an unobtrusive SoundCloud desktop application(github.com ↗)

6 points · by concise_unicorn · 11y ago · discuss

8.

"Remove 300ms touch mouse events delay” just landed in Firefox for Android(hg.mozilla.org ↗)

2 points · by concise_unicorn · 12y ago · discuss

comment 12y ago · link · parent

Is it just me or does it fail to explain just what it is, exactly?

comment 12y ago · link · parent

Having just secured my own J1 visa, I can attest to how relatively easy it was.

comment 12y ago · link · parent

Thanks for the screencasts, now I may finally get around to giving it a try.

12.

List of developer productivity tools and utilities(gilles.demey.io ↗)

1 points · by concise_unicorn · 12y ago · discuss