SinTan1729
- 6 Posts
- 36 Comments
SinTan1729@programming.devto
Programming@programming.dev•Zig Creator Calls Spade a Spade, Anthropic Blows SmokeEnglish
82·3 months agoI’m sorry, but since we’re being pedantic, this is not a proof. It’s full of assumptions, some of which are wrong.
5% is clearly better than 100%
Never denied it. 0% is even better. What matters is where it’s used. If it’s used for FFI, that’s understandable. Any other use should be scrutinized more. And that’s the issue. The claim of Zig’s creator is that the devs of Bun are not reliable. And to me at least, his arguments make sense.
it’s usual for Rust projects to use at least some unsafe
Doesn’t seem like it. This article claims that only about 20% of Rust crates use
unsafeat all. Even among those, the vast majority use it for FFI, which is kinda unavoidable.but somehow 5% isn’t
Again, no one claimed that. But we need more than “better than 100%” when it’s a JS runtime. And the "better"ness isn’t necessarily linear. So, even though it might be technically “better”, it might not be by much. At that point, what even is the point of the rewrite?
Again, I’m not claiming that it’s actually badly written. I’m only claiming that your arguments are not adequate, and that Bun is not a reliable company, so take whatever they claim with a grain of salt.
SinTan1729@programming.devto
Programming@programming.dev•Zig Creator Calls Spade a Spade, Anthropic Blows SmokeEnglish
143·3 months agoIt depends on where exactly that 5% lies. If it’s in the core API that’s used by the rest of the architecture, it essentially makes the whole codebase unsafe when used irresponsibly.
I don’t know if that’s the case here, just pointing out that the 5% doesn’t mean much.
SinTan1729@programming.devto
Programming@programming.dev•Do you like to have music while coding/studying? If so, what genres?English
81·3 months agoWhen coding, I usually listen to Indian classical. It can’t have any lyrics, as I get distracted by them.
When studying (it’s my actual job, I’m a mathematics researcher), I usually prefer white noise, or just a good pair of noise cancelling headphones without anything actually playing on it. Sound of rain works pretty well too.
SinTan1729@programming.devto
Programmer Humor@programming.dev•C++ takes decades to masterEnglish
21·4 months agoFair enough. I’m not a professional programmer, so I guess I won’t understand your frustration with long term maintenance of Go code. I do agree that it can be unnecessarily verbose. Writing something as simple as an
httpserver takes a long time. Also, the dependency management sucks. It can’t seem to decide if it wants to be declarative or not.I do like that it’s dead simple though, and that the standard library has most of the basic stuff. I’ve mostly replaced the need for Python with Go, for small CLI apps. Nowadays, I only use Python when I have to use some specific library, mostly for mathematical computing.
SinTan1729@programming.devto
Programmer Humor@programming.dev•C++ takes decades to masterEnglish
51·4 months agoYes. IIRC, the flavor that I used was MSWLogo.
SinTan1729@programming.devto
Programmer Humor@programming.dev•C++ takes decades to masterEnglish
51·4 months agoI don’t think there’s an
std-way of doing it, but the Rust ecosystem has this thing where people usually settle around one library. In this case, it istokio. Afaik, most async stuff is done usingtokio. What littleasyncI’ve used, it’s been usingtokioor some library likeactix-webthat usestokiounder the hood.Also, side note, I never understood the idea of why
golangis ugly. I think it’s fine, except for maybe the repeatedif err != nilguards. Those are ugly. I wish it used additive types for error handling.
SinTan1729@programming.devto
Programmer Humor@programming.dev•C++ takes decades to masterEnglish
32·4 months ago
SinTan1729@programming.devto
Programmer Humor@programming.dev•C++ takes decades to masterEnglish
91·4 months agoI’ve always preferred the functional approach to programming, so OOP never really intrigued me. That’s one of the reasons why I never liked C++ or Java, but instantly fell in love with Rust. It lets me do a lot of functional style programming, while still being somewhat practical. (I’m looking at you, Haskell.)
SinTan1729@programming.devto
Programmer Humor@programming.dev•C++ takes decades to masterEnglish
621·4 months agoMy first ever big boy language was C++ (after Basic, and Logo, does anyone remember that lol). I was in middle school, tried to self-learn from learncpp.com, only to realize that I had mostly learned C, with cin-cout instead of printf-scanf. So I just decided to migrate to C. Nowadays, I mostly code in Rust, Go, and Python. But my experience with C has been extremely helpful. Can’t say the same about C++ though.
SinTan1729@programming.devto
Programmer Humor@programming.dev•C++ takes decades to masterEnglish
63·4 months agoMy first ever big boy language was C++ (after Basic, and Logo). I was in middle school, tried to self-learn from learncpp.com, only to realize that I had mostly learned C, with cin-cout instead of printf/scanf. So I just decided to migrate to C. Nowadays, I mostly code in Rust, Go, and Python. But my experience with C has been extremely helpful. Can’t say the same about C++ though.
SinTan1729@programming.devOPto
Selfhosted@lemmy.world•Chhoto URL v7 is out now: A simple, blazingly fast, selfhosted URL shortener with no unnecessary features; written in Rust.English
11·5 months agoThanks. Hope you like it.
SinTan1729@programming.devOPto
Selfhosted@lemmy.world•Chhoto URL v7 is out now: A simple, blazingly fast, selfhosted URL shortener with no unnecessary features; written in Rust.English
31·5 months agoThanks. Just a small correction. The API isn’t really REST, it’s REST-ish but probably closer to JSON-RPC.
SinTan1729@programming.devOPto
Selfhosted@lemmy.world•Chhoto URL v7 is out now: A simple, blazingly fast, selfhosted URL shortener with no unnecessary features; written in Rust.English
3·5 months agoHope you like it.
SinTan1729@programming.devOPto
Selfhosted@lemmy.world•Chhoto URL v7 is out now: A simple, blazingly fast, selfhosted URL shortener with no unnecessary features; written in Rust.English
5·5 months agoThat could be, but I don’t think that it should be relied upon. The shortener itself can execute malicious code, so that kind of security is, in my opinion, essentially theatre. I’d just say that don’t click on links that you don’t trust.
This project is for own use/use with friends/family/internally in an org etc., where trust isn’t an issue. Of course, I cannot stop anyone from using it in any other way that they see fit. It can help shorten annoying long links for ease of sharing, but that’s it.
SinTan1729@programming.devto
Programming@programming.dev•What was the smallest python hobby project you worked on?English
2·6 months agoHere’s a pretty small project that’s still practically useful, at least to me.
SinTan1729@programming.devOPto
Programming@programming.dev•I made a script for customized memories in ImmichEnglish
6·6 months agoThanks for your feedback.
You just need an Immich API key, and run it from any machine from where you can reach your Immich instance. It does everything using the Immich API, so only a key with the proper permissions is needed. (I’ll add what the minimum required permissions are in the README.)
Also, if you want to do it for many users, you don’t need them to run it on individual machines/accounts. You can create multiple config files, each with that user’s key, and pass it to the script via the
--configflag.If running it for multiple users is a thing that people are interested in, I can add a way to supply an array of options in the config file, each belonging to one user.
SinTan1729@programming.devto
Programming@programming.dev•Are there any examples of 'perfect' software?English
3·8 months agoNot sure about LaTeX, but TeX is widely considered to be almost “perfect” code.
SinTan1729@programming.devto
Programmer Humor@programming.dev•Virgin Framework vs Chad ThinkPadEnglish
7·8 months agoI would highly recommend the Framework 13. I’ve had it for a bit more than a year now. The only problem I’ve faced was that the WiFi card was a bit unstable in EndeavourOS. But that was fixed by replacing
wpa_supplicantwithiwd. (I hear that it was only an issue for the AMD version, and that it’s fixed now.) Battery life is fine for me. I limit charging at 70%, and that usually lasts me the whole day.I love how Linux friendly it is. On my last laptop (an HP), it was pretty much impossible to upgrade the BIOS from inside Linux. Now it’s trivial. There’s also good support available when you face issues. (Both from Framework, and community members.) The hardware is pretty nice. I actually like how it’s MacBook-like, because it just looks nice in most settings. It’s portable too, I really hope they don’t make it bulkier like some folks here seem to demand.
SinTan1729@programming.devto
Programmer Humor@programming.dev•Virgin Framework vs Chad ThinkPadEnglish
22·8 months agoThere IS one of these for everything, eh?





Thanks. Filtering does not cover expiry, but it does cover shortlinks, longlinks, and notes. Making expiry work will make the filtering inefficient for little benefit, since the expiry times are stored as UNIX timestamps in the database.