HNHacker News
TopNewBestAskShowJobs

satyanash

376 karma · joined September 23, 2014

https://satyanash.net

reach me at satyajeet at kanetkar dot co dot in

submissionscomments
satyanash··on Life Before Unicode
> It was deemed the problems were bigger than the new possibilities. I mean, we could speak Finnish/English just fine and there was usually no need for any other languages.

It also excluded a large part of the world from participating on IRC. Maybe if it was more proactive, IRC would have a larger role to play than it does now?

Another example is punycode. unicode URLs are super unreadable, so no wonder the rest of the earth's population doesn't care enough about the open web, the importance of URLs vs Apps.

satyanash··on Pyret Programming Language
The ruby comparison is unfair:

    o = Object.new
    def o.my_method(x)
      self.y + x
    end
    def o.y
      10
    end
    o.my_method(5) == 15 # true
    method_as_fun = o.my_method
    # Wrong number of arguments, 0 for 1
The last line is actually doing: method_as_fun = o.my_method()

Which should make the error message obvious. Ruby makes this syntax optional for readability purposes, which becomes obvious once you start going through real world ruby code.

satyanash··on Zx 3.0
I personally find Ruby's built-in shell features more ergonomic:

    `cat package.json | grep name`

    branch = `git branch --show-current`
    `dep deploy --branch=#{branch}` if $?.success?

    [
      "sleep 1; echo 1",
      "sleep 2; echo 2",
      "sleep 3; echo 3",
    ].map { |cmd| Thread.new { %x(cmd) } }.each(&:join)

    name = 'foo bar'
    `mkdir /tmp/#{name}` if $?.success?
satyanash··on The database ruins all good ideas
Isn't that like saying reality ruins all good ideas. :)
satyanash··on Hire-to-fire at Amazon India?
> WITCH

I would presume: Wipro, Infosys, TCS, Cognizant, HCL

satyanash··on Ask HN: Favorite purchases of last two years?
> Uniball Signo 207/307

The signos are pretty good pens. I especially love the flow as it compares to Fountain, but the stroke width could be a bit less.

satyanash··on Big list of HTTP static server one-liners
The ruby one with the -run option is a bit nonintuitive in how it works.

  $ ruby -run -ehttpd . -p8000
The -r option requires un.rb[1] which is a file full of convenience functions, such as httpd in this example. Classic Ruby.

Given that go has popularized long args with a single hyphen (-name etc), it is easy to mistake -run as an option by itself.

[1] https://github.com/ruby/ruby/blob/master/lib/un.rb#L323

satyanash··on Google Docs will now use canvas based rendering
Canvas will become de-facto, just like React did. Once that happens, indexing and scraping the web won't be trivial anymore. One would have to "opt-in" to using HTML/CSS to make sure that their page would be indexable. Clearly also indicates that Google is willing to give up on its web-indexing capabilities in the long term, now that they have a stronghold on the Mobile app marketplace. Most likely spells doom for websites, further making "apps" the norm.
satyanash··on Codecov breach impacts GoDaddy, Atlassian, P&G etc.
> I’ve used it in lots of FLOSS projects, but the risk is lower there.

How is the risk lower? It's basically an RCE vuln which can poison open source artifacts. Massive blast radius.

satyanash··on OneWeb, SpaceX satellites dodged a potential collision in orbit
> they gave a figure of 1.3%, which is pretty low anyway,

1.3% chance of collision is _not_ low at all!

Especially when you start considering the chaotic cascading effects that a collision can result in!

satyanash··on Apt Encounters of the Third Kind
Thanks for making me look up "Mossad is gonna Mossad" -> Schneier -> Mickens' essay titled "This World of Ours".

https://www.usenix.org/system/files/1401_08-12_mickens.pdf

satyanash··on IceWM 2.0 – Ice Window Manager
If you have a thing for obscure window managers, are looking for massive configurability and have time to sink, check out Fvwm2[1]. Fully configurable using text files[2][3] that can be version controlled.

Edit: apparently it has been revived as Fvwm3[4].

[1] https://www.fvwm.org/

[2] https://satyanash.net/software/2011/12/25/my-fvwm2-desktop.h...

[3] https://satyanash.net/software/2012/12/04/fvwm2-explained.ht...

[4] https://github.com/fvwmorg/fvwm3

satyanash··on Goodreads plans to retire API access, disables existing API keys
Note that you can still export a CSV of your books, (although this is not all the data that is present).

Here https://www.goodreads.com/review/import

satyanash··on P.L. Deshpande
Does it matter? Populations for ref:

Maharashtra pop. 11.42 crores

France pop. 6.7 crores

Germany pop. 8.3 crores

Clearly, there is a bias in favour of western authors in tech. No harm in offsetting it a little bit. It's also not like anyone is forcing people to read about it.

satyanash··on P.L. Deshpande
The same reason why Kafka, Camus and others (who seemingly have no relationship with tech/startups) may sometimes make it to the front page.

I admit that this is not a detailed article or anything as such, but there is a definite intersection of P.L. fans and tech people, who can relate the daily absurdities of programming and find some Pu. La. style observational humour in it.

satyanash··on Open-source photo gallery with cloud backup and end-to-end encryption
If the server-side contract is documented, the open source mobile apps should be easily reconfigurable to point to a self-hosted implementation.
satyanash··on Facebook Container for Firefox
As in, it doesn't block most stuff automatically. You need to pick them using the element picker manually. And even that doesn't stick all the time.
satyanash··on When thebiglebow.ski is blocked by Facebook
OT: Why are medium.com URLs getting special subdirectory handling for usernames in the trailing HN title parentheses?
satyanash··on The Internet's Own Boy: The Story of Aaron Swartz (2014) [video]
I saw a lot of people asking about Aaron Swartz in the other thread about Reddit's co-founders. Would highly recommend watching this documentary, if you haven't already.
satyanash··on Toward a “modern” Emacs
> Isn't Eclipse basically the modern Emacs?

Ah, but you miss its hackability aspect by virtue of being a lisp runtime. I wouldn't say eclipse is anywhere close to "hackable" as emacs is.

Just run C-x b <scratch> RET and you have an elisp buffer to manipulate the state of the entire editor. It allows for superfast iteration, compared to the plugin development cycle of other editors. Though, vscode/javascript has definitely made it much closer to what is possible in emacs.

satyanash··on Show HN: Compile Ruby to C
While I feel sad too, I think the primary reason why it imploded under its own weight was the "magic". I still love Ruby, for all its developer friendliness and the consistency of its idioms. But too much of that sugar leads to bloat, that requires a bunch of hair-pulling for newbies to grok.

Now of course, there exist other simpler frameworks (a la sinatra), but when your posterchild is a thing like Rails, you can't expect people to not be burnt in the long term and still come back.

satyanash··on Speeding up function calls with lru_cache in Python
What's the ruby equivalent of `functools` and specifically `functools.lru_cache`?

Note that `lru_cache` doesn't just do caching, it also provides convenient methods on the original function to get cache stats etc in a pythonic way.

satyanash··on Jepsen: PostgreSQL 12.3
> documentation also seems to suggest that even with the strongest settings, it can lose transactions;

Can be reproduced even on a single node postgres. Just hammer it with inserts and maintain a local counter for inserts performed. Then, kill9 the postgres process. You'd expect your local counter to match the actual rows inserted, but you'll find that your counter will always be "less" than the actual rows inserted. Like any "networked" system, it is possible to lose commit acknowledgments even if the commit itself was successful.

So yes, you've not "lost" transactions per se. You've "gained" them, but it is still a data issue in either case.

satyanash··on The modern HTTPS world has no place for old web servers
> no realistic choice but to go through a centralized gatekeeper

This is the critical part. Even though Let's Encrypt is not-for-profit, etc. It is still a single entity. Until someone can go and start their own CA in that 10 minutes that works across the world, we're moving away from and not towards what HTTP was.

satyanash··on Khan Academy requests for donations as their servers are at 250% normal load
> Would moving to torrents reduce the load?

Only if they could figure out a way to host their learning platform, content and scoring on it.

satyanash··on ORMs Are Backwards
> progres native json and array fields - good luck running your tests on sqlite

you're not testing what you actually run in production, then what are you testing? If you just need to test in-mem behaviour, mock the DB completely; instead of expecting compatibility for vendor specific features across vendors.

satyanash··on The more you learn, the faster you can learn
Given that software as a arena is a widely competitive and rapidly evolving one, you can never know if the person in front of you is an expert or not. In such a case, what has always helped me is to first remind myself to be humble and use this cheatsheet:

* ask questions that probe your point of concern, instead of pointing out flaws. This allows the other person to reveal his expertise with a solution and also enlighten you in the process or admit their mistake.

* Never claim to know everything. Always be cognizant of the fact that other people ("newer" people) will show you up. Always be willing to learn from anybody who makes a concise argument.

satyanash··on Run Commands, the 'rc' in '.bashrc'
I always thought it was 'runtime configuration'.. as opposed to compile-time configuration.
satyanash··on Self Driving Desktop
Ruby would've suited well for the DSL this project is trying to implement.
satyanash··on JMAP: A modern, open email protocol
> You can really only define things rigidly if you want to make much in the way of guarantees. Any system held together by conventions can have those conventions violated and this is a harrowing sign of things to come.

The problem with this is that most new protocols (or APIs as they're popularly known now) are built by startups aiming for rapid growth. Writing an RFC for the underlying protocol of the newfangled dating app you're building is counterproductive if you don't know the company will exist six months later.

← PreviousPage 2 of 3Next →