Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
morebetterer
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
31.
▲
by
morebetterer
11y ago
Since NAN basically parrots the v8 API, I find it's easier to just code to the ever-changing v8 API, rather than the ever-changing NAN API. With the former approach you get readable and debuggable code. I'm not sure what NAN isola
32.
▲
by
morebetterer
11y ago
It would be inefficient to share data structures or interpreter internal state across threads. This would lead to the poor performance you described with mutex contention. It is better to have an interpreter instance per thread, each having
33.
▲
by
morebetterer
11y ago
Sounds a bit like a cross between the (now defunct) Google Sawzall project and the sqlite csvtable module: https://github.com/softace/sqliteodbc/blob/master/csvtable.c
34.
▲
by
morebetterer
11y ago
It's a shame the GIL won't be removed because it's perceived to be too difficult. It's trivial to remove the GIL - probably a week of mechanical work. Just don't depend on global variables in the interpreter. No glo