HNHacker News
TopNewBestAskShowJobs

shaan7

998 karma · joined May 9, 2013

submissionscomments
shaan7··on Twelve Years of Go
> Just software, running, forever.

Until your users realize that if there was a security vulnerability which was fixed, a system upgrade is not enough. They will have to either hope that you haven't moved on, or build things themselves. But then, thats not a problem with Go specifically, thats a general issue with "static link all things".

shaan7··on Twelve Years of Go
I can attest to the fact that programming in Go taught me a lot of good engineering. I certainly find myself better trained at handling errors, for example.

However, I always feel exhausted when implementing real-world systems with Go given the lack of $things (that everyone feels is a virtue). Over time I realized that a lot of people just aren't as lazy (or scared of breaking things) as I am - they find it easier to copy code dozens of times and then fixing them all in one go using their ninja refactoring skills. Just a different kind of tradeoff, at the end.

So given how laborious it is to make anything more than simple programs (because of the amount of copy-paste-driven-development required), I generally avoid Go unless I'm writing a webservice.

For me Go's virtues are static typing and wide variety of community packages to do things. The whole "oh not having features is a feature" thing is just an opinion for the sake of having an opinion. otoh, I damn excited to have generics support soon finally :)

shaan7··on WSL2 can now mount Linux ext4 disks directly
And I want to do the exact opposite - basically what VMWare is able to do with Bootcamp installations. Then I could run Linux as I usually do, but not have to maintain a VM for Windows development (MSVC etc). If you try running VirtualBox with raw disk mode and attempt to boot Windows, activation will complain. I guess VMWare has some sort of special access that it can convince Windows Activation that things are okay.
shaan7··on Fedora 35
> The "native package manager" is not something we have to interact with so often these days

I guess one of the awesome things about Linux is how it manages to keep a wide variety of people happy. For example, one of the reasons I like to use Linux is I want to update everything at one go, and the fact that I have a Software Center app that lets me do exactly that - is awesome!

On another note, I hope Flatpaks keep gaining more popularity among the three. I really like using Flatpaks more than Snap/AppImages.

shaan7··on Fedora 35
Ah well, Manjaro was a blessing for me, so much that I donated to them as well. It feels like the best of both worlds - I don't have the motivation to install the system from scratch, but I'd like to use AUR.

Oh, and as others have said, upgrades are quite a YMMV thing, Manjaro upgrades haven't broken things for me since the last few years.

shaan7··on Major Linux Problems on the Desktop, 2021 edition
Got it. Thanks!
shaan7··on Major Linux Problems on the Desktop, 2021 edition
"oppose to the whole idea of games on Linux" is saying that someone does not want games to run on Linux, they don't like the idea of people playing games on Linux, they'd rather not have people playing games on Linux.

"hate that games change the resolution" is saying that the person does not like one aspect of games, they wish that games wouldn't do that, they are NOT saying that games should never be played on Linux, or that they're opposed of people having fun playing games on Linux.

EDIT: I'm not trying to pedantic here, this actually happened to me, when I was reading the post I was taken aback "what? is there really a Linux developer* that is opposed to games? Why would that be?" Then when I read the blog post thats linked from there I realized that wasn't the case _at all_ .

* even that would mean a kernel developer, not KWin etc

shaan7··on Major Linux Problems on the Desktop, 2021 edition
I don't mean this as sarcasm, I'm genuinely curious, why would you not use macOS instead (given that it ticks all your boxes)? I used a MacBook for few years and I felt it has all of that (well, brew meh), but I couldn't take the inflexibility of the whole setup so I moved back. What is/was it for you?
shaan7··on Major Linux Problems on the Desktop, 2021 edition
> Why are some people not willing to spend money on these things? Isn't it a good thing to be willing to?

From what I understand from other comments on this post, it seems this particular problem can only be perfected by more testing across multiple devices etc - that requires a wider effort that is quite difficult to achieve.

For example, I use Linux as my daily driver and I sometimes fix bugs here and there. But, personally for me, this particular one requires so much effort for not-that-revolutionary benefits. More context: I rarely watch long videos on my laptop when on the move. I'd rather fix something that improves my workflow than a bit more of battery life.

Sleep, otoh, is very important to me, so I ensure to buy laptops that DO NOT have NVIDIA stuff in them. For Gaming I got my desktop. Result: my XPS 13 and ThinkPad sleep and resume instantly, WiFi, audio etc work fine, including attaching a dock. I guess its really a YMMV thing, which, as the blog points out, doesn't help Linux's popularity.

shaan7··on Major Linux Problems on the Desktop, 2021 edition
> strangely some Linux developers oppose to the whole idea of games on Linux

That seems like a very inaccurate conclusion. The linked blogpost talks about the-then maintainer of KWin saying "hate that games change the resolution", not "I hate games on Linux". Geez.

shaan7··on Online abuse: banning anonymous social media accounts is not the answer
> Why is not even an option to work to fix the abuse?

It is difficult for even human judges to clearly define what counts as abuse and what doesn't. Automated algorithms (or manual reviews) will be much worse, most likely.

shaan7··on The day my script killed 10k phones in South America
> Basic maths should tell you that the probability of matching some real phone number is actually quite high.

Yeah well, the thing about pressure (of the sort the author has describing) is that you make mistakes - the kind where some times 3+3 = 9.

Source: I queued jobs to nuke the whole production database (relax, we had automated backups+verification so we recovered fast enough; and then added some gating so make this more difficult in the future)

shaan7··on Gitlab from YC to IPO
I work for two clients (one of them is a huge German company) as a consultant who are both using GitLab simply because they can host it on their infrastructure. Makes it easier for them to satisfy internal security policies I guess.
shaan7··on Neural Networks from Scratch
Thanks for the recommendations folks! :)
shaan7··on Neural Networks from Scratch
Any recommendations for a 101 book for neural nets for someone who is "just a programmer"? OP's tutorial is quite nice, but I love to read books and find it easier to learn from them.
shaan7··on Multitasking Doesn't Work
> might be that the music gives the mind something to hold on to

The way it feels to me is it gives me a consistent background to work. For example, once I have decided on a particular way to solve a problem and its time to code - I put a long DnB track.

Another way to describe it is that it gives my brain's CPU a consistent clock, so to speak xD

shaan7··on Ask HN: Do you donate money to open source?
I make it a point to at least make one-time donations to every opensource tool that I find useful and foundations that do good stuff for digital rights in general. Off the top of my head:

- (Monthly) IFF https://internetfreedom.in/

- Mozilla

- EFF

- Wikipedia

- KDE

- Manjaro

- Simpletask https://github.com/mpcjanssen/simpletask-android

- DownThemAll https://www.downthemall.net/

shaan7··on Go’ing Insane: Endless Error Handling
Thanks (and to mseepgood as well). TIL :)
shaan7··on Go’ing Insane: Endless Error Handling
Note that this can quite problematic in scenarios where the caller wants to inspect the error (example: was the error an http timeout? or a server error?). Returning the error and letting the topmost call site handle that is usually better.
shaan7··on Uber must employ its drivers, Dutch court rules
Or, "When Linux becomes your daily driver" ;)
shaan7··on Show HN: A simple recording program with the ability to record the screen
Yep Simple Screen Recorder is my daily driver for recording screencasts. Works perfectly, I really like that you can start/pause/save recording from the systray button.
shaan7··on Twitter starts to require login to view tweets
I wonder how much of this was a result of India pressuring folks like Twitter to implement "traceability": https://scroll.in/article/999171/why-is-the-government-of-in...
shaan7··on Apple’s crackdown on multicast
Curious, which ThinkPad was this? I got a T14s with AMD last year and it is one of best laptops I've used till date, and works with Linux out of the box, incl graphics, networking, USB-C docks etc.
shaan7··on Apple’s crackdown on multicast
> It makes sense that Apple wouldn’t go out of their way to cater to that ultra-niche use case which can still get the access they need by requesting the permission.

Well, its not about expecting Apple to put more effort to enable some feature. In many cases enabling that feature is less effort and Apple instead goes "out of their way" to disable such things. _That_ is the problem - and it is not specific to iPhone, things like this have happened in the past on MacBooks too (see https://github.com/onmomo/superdrive-enabler/blob/master/src...)

shaan7··on Firefox lost 50M users since 2019
> no other browser has containers

THIS. The first damn thing I do on a new PC/VM. I work with multiple clients, they each have their corporate SSO stuff and its so damn convenient to keep them all in their own containers. Same with Google stuff, containers are so much more consistent to switch between Google accounts than their own switching thingy (just try switching between accounts in AdWords).

shaan7··on Firefox lost 50M users since 2019
I can imagine how frustrating it would feel as a Firefox dev reading reports like this and wondering wth is going wrong. Because I'm "just a user" and I've never seen FF being slow to start or loading pages.

Same with sync, I recently install Firefox on a new laptop. Clicked the sync button, logged in with my account and done. In 2-3 minutes all history and addons sync'd \o/ UX wise I really love that Firefox Android has the address bar on the bottom :D

Except some Google stuff like the GCP console.

EDIT: formatting

shaan7··on Firefox lost 50M users since 2019
Yep. I rarely see Firefox lagging/unresponsive (~15 pinned + 3-4 normal tabs open). In the rare chances that it does, I get an option "This web page is slowing down Firefox" which lets me kill the tab and all is well again.
shaan7··on Syncthing: Syncing All the Things
+1 PhotoSync is pretty neat, have been using it over an year now (to sync with Nextcloud over WebDAV).
shaan7··on Valve Steam Deck
Yes! Still keeping the dreams alive that one day we will have something like that again. #shutupandtakemymoney
shaan7··on EU withheld a study that shows piracy doesn't hurt sales (2017)
hehe ;) I'll make another attempt: https://www.giga.de/webapps/smileys-fuer-den-facebook-chat/t...
← PreviousPage 5 of 12Next →