Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
brrrrrm
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
23 ms
·
301.
▲
by
brrrrrm
4y ago
I'll concede that Python has more nuanced bits of complexity exposed, but I suspect a willingness to break compatibility for the sake of performance would benefit the language a lot more than it would hurt it. I personally hope the ha
302.
▲
by
brrrrrm
4y ago
You can expose objects. Here's how it is done in Bun: https://github.com/facebookresearch/shumai/blob/main/shumai/... We've been using this feature heavily in Shumai. I think you are vastl
303.
▲
by
brrrrrm
4y ago
how're you using it? what you printed out (modified.py) seems to be a different result than expected
304.
▲
by
brrrrrm
4y ago
I don't buy this argument. WebAssembly is a vastly different beast than trivial C extensions (since WASM is a browser thing). JavaScript has both and is still much faster. Bun (the runtime I used for the post), has a native C interfa
305.
▲
by
brrrrrm
4y ago
It's due to the runtime. JavaScript has a runtime that updates as it executes. It notices a loop is being run frequently and then compiles a new version of the loop that runs faster. Python doesn't have this functionality. WebAss
306.
▲
by
brrrrrm
4y ago
I don't think there's much holding JS back from also being a glue language. JavaScript has certainly evolved from being only a browser language these days. The only request I'd have is more granular garbage collection (marki
307.
▲
by
brrrrrm
4y ago
let me know if you find anything! Happy to edit the post with a correction. For a little more information, this is using Bun 0.2.1, which uses JavaScriptCore (JSC), a part of WebKit which powers Safari. Since I'm running on an M1 Pro
308.
▲
Python 3.11 is faster than 3.8
(jott.live)
378 points
by
brrrrrm
4y ago
|
295 comments
309.
▲
by
brrrrrm
4y ago
Well, that changed over a decade ago
310.
▲
by
brrrrrm
4y ago
This is unfortunately a bit misinformed. You are thinking of a specific JavaScript implementation (browsers). The language has heavy adoption in the native space. Check out Node.js! JavaScript does interact with random C libraries :)
311.
▲
Node-API – an API for building native Addons
(nodejs.org)
1 points
by
brrrrrm
4y ago
|
0 comments
312.
▲
by
brrrrrm
4y ago
> as far as I know they are discouraged Fwiw, this a fully stable and well documented API. It’s not even v8 exclusive, Bun cloned it for WebKit. https://nodejs.org/api/n-api.html
313.
▲
by
brrrrrm
4y ago
what about NAPI? Or deno/buns JITed api? I’ve heard this “no C API” thing echoed by a couple people and it’s baffling. Do folks really think three major JS engines all written in C++ wouldn’t have an interface to interact with C?
314.
▲
by
brrrrrm
4y ago
One I recently thought about is the adhesive on Oreo packaging in the US (maybe elsewhere as well). It seals well without becoming immediately “unsticky” after opening. Magic
315.
▲
by
brrrrrm
4y ago
how do you envision a distributed tensor API as working? (perhaps a code snippet of an ideal API?)
316.
▲
Proposed Operator Overloading in JavaScript
(github.com)
1 points
by
brrrrrm
4y ago
|
0 comments
317.
▲
by
brrrrrm
4y ago
yep. This class of fallacy has its own wiki article: https://en.wikipedia.org/wiki/Appeal_to_probability
318.
▲
by
brrrrrm
4y ago
Due to the overly westernized transliteration?
319.
▲
Shumai: Fast Differentiable Tensor Library in TypeScript with Bun and Flashlight
(github.com)
75 points
by
brrrrrm
4y ago
|
15 comments
320.
▲
by
brrrrrm
4y ago
Unfortunately?? Y’all don’t know how good you have it. I work in Python and desperately wish there were multiple competing legitimately used Python runtimes. It’s slow as molasses and not getting faster because CPython has an overwhelmin
321.
▲
by
brrrrrm
4y ago
Similarly, a list of hex words https://jott.live/code/hex_words
322.
▲
by
brrrrrm
4y ago
There just aren’t enough “full stack” machine learning folks who can quickly solve these problems. The pure programming people have trouble scoping out which solutions to try due to lack of experience. The pure ML people code in Python note
323.
▲
by
brrrrrm
4y ago
I believe that’s a separate issue as “best-performing” isn’t any less vague.
324.
▲
by
brrrrrm
4y ago
I’ve recently started hearing this form of pedantry, but I’m not sure I understand it. “Performant” seems to be defined by the New Oxford American dictionary as “performing well” and claims it is mostly used in computing contexts. What’s
325.
▲
by
brrrrrm
4y ago
I wonder the applicability of these types of movements to robotics/motion planning. Anyone familiar with the topic care to comment?
326.
▲
Hello world performance: Bun (express) vs. Python (fast API)
(medium.com)
1 points
by
brrrrrm
4y ago
|
0 comments
327.
▲
by
brrrrrm
4y ago
does anyone have recommended video-based ways of learning about TLA+?
328.
▲
by
brrrrrm
4y ago
const pretty much does nothing to allow optimization in C/C++ :(
329.
▲
Python's AsyncIO is 120x slower than native async in JavaScript
(twitter.com)
3 points
by
brrrrrm
4y ago
|
0 comments
330.
▲
by
brrrrrm
4y ago
err, how is JS inadequate for that stuff? Python does not have fp16 support natively, neither does JS. It also doesn't have fp32, int64, int8, int32, uint32 etc. JavaScript does? JavaScript is 43 times faster for this random workloa
More ›