Readit News logoReadit News
norman784 commented on How I Made Ruby Faster Than Ruby   noteflakes.com/articles/2... · Posted by u/ciconia
Asmod4n · 5 days ago
Depends how you use it, just last week I’ve hit 40 nanoseconds unpacking a 8 megabyte msgpack array and accessing one of its values in a hash.

As long as you only use ruby as glue code for c(++) extensions it’s pretty fast.

norman784 · 5 days ago
AFAIK with the latest JIT in some contexts pure Ruby can be faster than using C libraries, just because the VM can be better optimized and there is no overhead in moving data between the two realms.

I don't recall exactly where I read it, but I think was a while ago when they announced one of the newest JIT engines.

norman784 commented on Node.js is able to execute TypeScript files without additional configuration   nodejs.org/en/blog/releas... · Posted by u/steren
yahoozoo · 8 days ago
What backend framework is the go to these days? Still Express?
norman784 · 8 days ago
IMHO the only reason you are using JS in the backend is because of some meta framework, otherwise is not worth. So at least for Nuxt is nitro, not sure for SvelteKit or the other React meta frameworks.
norman784 commented on Node.js is able to execute TypeScript files without additional configuration   nodejs.org/en/blog/releas... · Posted by u/steren
Sammi · 8 days ago
22 is LTS. The future is now.
norman784 · 8 days ago
All even versions are LTS btw, maybe what you mean is that version 22 entered in maintenance mode (hence stable) and new features will not be added.
norman784 commented on Show HN: The Aria Programming Language   github.com/egranata/aria... · Posted by u/egranata_aria
account-5 · a month ago
I feel like I keep harping on about Nushell but as scripting languages go it's right up there for me. Built with rust too and comes with a ton of stuff built in.

What's the niche this fills? I came across roc-lang recently which seemed interesting too, again built with rust, and opinionated on certain things common in older languages.

It doesn't have to, and obviously it's your project, but what is this offering over other languages. Why would I reach for it?

norman784 · a month ago
Just a side note, roc-lang is being rewritten in Zig[0]

[0] https://gist.github.com/rtfeldman/77fb430ee57b42f5f2ca973a39...

norman784 commented on Visa and Mastercard: The global payment duopoly (2024)   quartr.com/insights/edge/... · Posted by u/bilekas
notpushkin · a month ago
> AFAIK some places already have it, like Thailand and Malaysia.

Also Vietnam (Napas247), Singapore (PayNow), Philippines (QR Ph), Japan (lots different systems), China (WeChat/Alipay, I think?), Russia (SBP), Belarus (ERIP, in a sense), and the whole of EU (SEPA transfers).

One problem is, most of them don’t really work for you if you’re a foreigner. Moreta (YC S24) is doing something in SEA, and I’ve seen another service for visitors in India, but I think exchange rates wouldn’t be too good (compared to something like Wise, maybe on par with regular banks though).

https://moretapay.com/, https://ale.sh/r/moreta (affiliate link)

https://wise.com/, https://ale.sh/r/wise (affiliate link)

norman784 · a month ago
The EU is also now pushing WERO

https://en.wikipedia.org/wiki/Wero_(payment)

norman784 commented on Servo Web Engine Further Tuning Performance   phoronix.com/news/Servo-J... · Posted by u/doener
giancarlostoro · a month ago
I do wonder if Servo will ever reach a point where it is competitive on its own and full featured.
norman784 · a month ago
You can see where Servo stands compared to the other browsers by watching[0] Ladybird browser monthly reports

[0] https://www.youtube.com/@LadybirdBrowser

norman784 commented on Show HN: VS Code extension to edit the filesystem like a text buffer   github.com/ahrm/voil... · Posted by u/hexomancer
SwiftyBug · a month ago
Is it possible to make an extension like that for Zed?
norman784 · a month ago
At this point I opted to just install extension from known ORGs only, like Microsoft, Github, etc and the official extensions from the languages I use. All other extensions, even themes are no more for me.
norman784 commented on Show HN: VS Code extension to edit the filesystem like a text buffer   github.com/ahrm/voil... · Posted by u/hexomancer
gschizas · a month ago
This looks cool, but I'm a bit wary of publishers that aren't verified.

> Do you trust the publisher "Ali Mostafavi"?

> The extension voil is published by Ali Mostafavi. This is the first extension > you're installing from this publisher.

> Ali Mostafavi is not verified.

> Visual Studio Code has no control over the behavior of third-party extensions, including how they manage your personal data. Proceed only if you trust the publisher.

norman784 · a month ago
For the current extension model, I would not trust anyone besides any known org. Even installing themes are potentially dangerous, because of the attack vector.
norman784 commented on C3 solved memory lifetimes with scopes   c3-lang.org/blog/forget-b... · Posted by u/lerno
SkiFire13 · a month ago
Procedural macros are not really _that_ slow themselves, the issue is more that they tend to generate enormous amount of code that will then have to be compiled, and _that_'s slow.
norman784 · a month ago
The issue, most commonly noted by devs, with proc macros is that it slows down the incremental compilation times, because proc macros are recomputed each time.
norman784 commented on Zig breaking change – Initial Writergate   github.com/ziglang/zig/pu... · Posted by u/Retro_Dev
ww520 · 2 months ago
One issue I have with the old reader/writer pattern is that it is not easy to store them in a struct. Reader and writer are passed into a function as 'anytype' which implements any of the read() or write() functions. Often time in a struct's init() function, I want to take in a reader/writer and store it for later use. It's close to impossible since I don't know what type of the field of the struct to store them.

Does the new change make it easier to store reader/writer in a struct?

norman784 · 2 months ago
I recommend watch this video https://youtu.be/x3hOiOcbgeA

u/norman784

KarmaCake day611May 12, 2015View Original