HackerTrans
热门最新趋势评论往期问答秀出招聘

garbagepatch

92 声望加入于 3年前

提交

A faithful, native Windows Notepad clone built in Zig using raw Win32 APIs

github.com
1 分·作者 garbagepatch·5个月前·1 评论

评论

garbagepatch
·昨天·讨论
这是什么时候的事?我只是在过去几周才看到这种 "反锈 "氛围,估计是由 Bun 重写引发的。Zig 的人通常会告诉你使用正确的工具来完成工作,而不是吹嘘语言,或者说你还不需要使用它(如果你想要一个稳定的语言/文档),如果你想在几年后检查它,语言就会在那里。
garbagepatch
·上个月·讨论
5 years.

The language itself will probably stabilize in maybe 3 years. The last things they'll do is work on the std lib, documentation, spec. That will take time but the language will be ready before then.
garbagepatch
·上个月·讨论
Most users don't need it. Having it on by default is a feature for malware writers not users.

But to your point, Node has had permission flags for a while[0] but allows everything by default. Npm could use them to increase security even more. I just hope it doesn't take them another 10 years to change the default.

[0] https://nodejs.org/api/permissions.html
garbagepatch
·上个月·讨论
I like the terminal aesthetics but please, for accessibility's sake, make input boxes look more like input boxes and buttons look like buttons.
garbagepatch
·上个月·讨论
Removes a barrier of entry if you can look at it from a browser instead of installing a CLI/TUI.

Don't try to make me install a random program if I can view it in my sandboxed browser safely.

Also, browsers have greasemonkey to help me personalize websites easily. TUIs don't.
garbagepatch
·2个月前·讨论
I guess Bun had the better marketing then. I liked how every new feature came with a benchmark against the previous version and node. See this for example: https://xcancel.com/bunjavascript/status/2048228152397459590

I'd love to see a site comparing the 3 of them in a similar way.
garbagepatch
·2个月前·讨论
To me it feels more like the old "this site only supports IE6". Instead of checking which JS engine the user has, check for specific api support and fail gracefully.
garbagepatch
·2个月前·讨论
According to the bun team, it was already vibecoded for months before the Anthropic acquisition.
garbagepatch
·3个月前·讨论
Does it use your tokens when it does this check for malware? or is that part covered by anthropic?
garbagepatch
·3个月前·讨论
I misread that as "current times" and thought it would sing the news.

It does need more streams for other timezones.
garbagepatch
·3个月前·讨论
Drop the AI written story, take me straight to the "Explore Your Record" view. That's more interesting.
garbagepatch
·4个月前·讨论
If they managed to make 3 full movies out of The Hobbit, they'll surely be able to make a movie or 2 out of 6 chapters of LotR.
garbagepatch
·4个月前·讨论
I'm sure plenty Americans are also laughing at this. No hypocrisy here.
garbagepatch
·4个月前·讨论
There's a bunch of steps before prison that do not work.
garbagepatch
·4个月前·讨论
And it's all a meta commentary on 915.
garbagepatch
·7个月前·讨论
All they left was the stopwords.
garbagepatch
·8个月前·讨论
Regarding runtime overhead, I'd assume you would still need an io implementation, it is just showing it to you explicitly instead of it being hidden behind the std lib.

For simple projects where you don't want to pass it around in function parameters, you can create a global object with one implementation and use it from everywhere.
garbagepatch
·8个月前·讨论
React Native is Javascript on top of the native toolkit of the platform. No HTML or CSS here.
garbagepatch
·10个月前·讨论
What's the problem with the mascot? PostgreSQL has an elephant and MySQL a dolphin. Is the bug too detailed for database software?
garbagepatch
·10个月前·讨论
I wonder, does the important_value function get called and the value discarded or never called at all? Looks like a footgun if it has side-effects.