HNHacker News
TopNewBestAskShowJobs

entha_saava

244 karma · joined May 3, 2020

submissionscomments
entha_saava··on Apple supplier Foxconn to invest $1B in India, sources say
The problem with Indian education system is that it is rote-learning focused. People do courses for sake of getting jobs and therefore everyone tries to game the system by optimizing for some metrics. It is not fundamentally geared towards shipping labour to other countries.
entha_saava··on Programming at the REPL (2018)
Thanks..
entha_saava··on Programming at the REPL (2018)
Can someone knowledgeable explain how are lisp REPLs different from Python / Ruby REPLs? What is the differentiating point of REPL driven development?

Is it that you interactively test your functions and add them to source file once they work? Or is it that with editor integration, you can load functions to REPL as they are defined? Am I missing something obvious?

entha_saava··on Parallel ray tracing benchmark for functional programming languages
Explicit parallelism can be much easier on abstract streams. And that is better than implicit parallelization. Running on many cores for max throughput is not important for many applications, as compared to power consumption and CPU / mem usage.
entha_saava··on Moving from TypeScript to Rust / WebAssembly
True. That was a vague notion. I think Joel Spolsky's "Hitting the high notes" summarized it better.
entha_saava··on Moving from TypeScript to Rust / WebAssembly
For example functions only take objects of supported types. Many invariants are verifiable at compile time. Especially when you have generics, structural typing and ADTs, the expressiveness is pretty good.
entha_saava··on Moving from TypeScript to Rust / WebAssembly
Less testing, Documentation, Guarding against typos, better IDE support, better performance;

But there is a whole new generation of web developers who don't bother to learn algorithms or low level programming, and just churn out code with that hot new framework. That kind of programmers are also the ones that choose a technology because "it looks easier".

The world would be nice if management people understood not all programmers are equal, the 10x programmer is not a myth. But here on HN or reddit you see most people arguing that all programmers are similarly productive. And what we get for this is more electron apps.

entha_saava··on Moving from TypeScript to Rust / WebAssembly
With all the "Rust is as productive as X" and "If your data structure/logic won't work in rust, it was bad design" bullshit the silent majority of us are accustomed to see on HN..
entha_saava··on Moving from TypeScript to Rust / WebAssembly
You forgot development times.
entha_saava··on Moving from TypeScript to Rust / WebAssembly
> This really nails why languages like PHP and Ruby have won out over static typed ...

Real reason is lowering the bar of entry, and that explains why web is horribly broken.

The "bootcamp webshit" meme exists for a reason. That's not gatekeeping - lowering the bar to entry below a certain level leads to drastic decrease in quality.

entha_saava··on Keeping your Go modules compatible
> The "insane amount of thought", as is the norm for the Golang team, involved a gymnastic demonstration to evade (1) any serious consideration of prior art in use whatsoever

"We never do what those Java 1xers do, because we are blue collar 0.01xers furiously copy pasting code"

entha_saava··on Why Can't I Reproduce Their Results?
It is saddening to see so much pessimism in the thread.

Tight regulations on reproducibility are the first thing academia needs. Academia is a rat race with so much dishonesty and optimizing for measure (citation count etc..) these days. I have seen too many of professors producing low quality papers for the sake of producing papers - which creates a lot of noise, and a cargo cult PhD culture. Without reproducibility how can you even trust the results?

While academic code doesn't adhere to code quality standards of software development, I don't think many software engineers involve in ridiculing the author if they produce the code, leave alone other academics.

Btw, I submitted a link (a very comprehensive article by a CS academic) but it was lost in the HN noise. Maybe someone with higher karma points repost that? I found that article through nofreeview-noreview manifesto website and that's very well written, it covers a number of problems like this.. (http://a3nm.net/work/research/wrong).. PS I am no way affiliated to the author. Just mentioning because that article deserves to be at HN front page.

entha_saava··on Rust for JavaScript Developers – Functions and Control Flow
what about `fn(args) => exp`? Can be simplified as `fn arg => exp(arg)` for simple ones..
entha_saava··on Things You Should Never Do (2000)
> Actually, the more experience I get, the more I think Joel was wrong.

There is no black and white in software. Joel writes from a viewpoint that's not always applicable to all of us.

entha_saava··on An overview of V8
Like every compiled language :/
entha_saava··on Ask HN: What books got you curious and inspired about fields other than CS?
Physics for Entertainment by Yakov Perelman
entha_saava··on HotSpot compiler: Stack allocation prototype for C2
> like a closed over value type that could escape the local scope

You mean, captured in closure?

entha_saava··on HotSpot compiler: Stack allocation prototype for C2
> if the compiler can automatically transform objects anyway, why do we even need value types/structs?

It cannot always without affecting the semantics. An array of structs will still have to be an array of references in most cases, for example. The compiler isn't sufficiently smart to figure out such things beyond trivial examples.

In General it applies to any optimization: the compiler can figure out a subset of optimizations the programmer can. That's why not giving the control of memory layout to the programmer is objectively bad idea.

Also, when you need performance, not relying on compiler to figure out the optimizations is easier than ensuring the optimizations happen. Compilers are quite unpredictable.

entha_saava··on Modern Android is pretty secure
> Android is not a secure OS because it enables and allows behaviors that make it leak data and protect the user poorly.

I am going to bite. You are just biased. Google adds more APIs because it doesn't have much interest in limiting some features to Play store, because Play is a such small part of their revenue. Apple would benefit if things are only possible through native apps because sweet 30% rent.

That said Google isn't exactly dumb but they aren't well organised in terms of Android - some areas get focus while others not. They even made it harder for external contributers of Android Open Source Project by following Google style monorepo patterns.

Contrast to Apple where mobile OS is their core business and they have to do it well.

entha_saava··on Modern Android is pretty secure
There appear to be at least one open source thing that does the same: netguard
entha_saava··on Modern Android is pretty secure
Many of us don't have any app that contains ads (maybe except twitter/instagram/reddit etc.. but I don't find them much disruptive).
entha_saava··on Go is boring, and that’s fantastic
Maybe something like a union of struct type T and interface type I, but T also satisfies I. Then you have to specify some extra things / add features to keep it symmetric and being able to construct it both ways equally easily. GO Authors have a primary goal of

Secondly, they think interfaces cover many of the need of variant types and they don't want some non-orthogonal feature.

entha_saava··on Go is boring, and that’s fantastic
Type deduction from right hand side expression is enough and that was stated in FAQ that they didn't want HM inference.

Edit: well not in FAQ but somewhere else. IIRC Rob Pike.

entha_saava··on Go is boring, and that’s fantastic
C++ as it is written can be arbitrarily slower and may have hidden bottlenecks due to copy constructors and poorly thought out Stl usage. But C++ fanboys refuse to admit this.
entha_saava··on Go is boring, and that’s fantastic
They gave the reason for not including tagged unions that they overlap in confusing ways with interfaces. Not that the reasoning is correct or not. It was their goal to make the language dead simple.

Now with the new generics proposal, it seems they have hacked up some crude closed interface types, which are something like union types. :/

entha_saava··on Go is boring, and that’s fantastic
Maybe, Idk who that appeals to.. But Go lacks the even most trivial of array / slice manipulation functions. Is this loop an index() or apply() or filter() or count() or sum() or wutt? Don't even talk about generic data structures.

To be fair, Go authors are pretty smart having created something more usable than C while not even seriously looking at how things are done in other languages.

entha_saava··on RedHat Mandrel Makes Java Native
Performance and market share are different things.
entha_saava··on Ray Tracing in Nim
[0] is a great comparison, are there other comparisons of this kind?
entha_saava··on RedHat Mandrel Makes Java Native
That's not what they are asking for. Well there is epsilon GC but rather than writing java that doesn't allocate, I'd rather write C++ or Go.

This is the problem with Java ecosystem. Horribly reinventing simpler things in complex ways, from frameworks to build systems, and selling them as next big thing ™.

entha_saava··on RedHat Mandrel Makes Java Native
This point has to be noted. There are languages other than Go with optimizing compilers, and those compiling to C. Go has focus on fast compiles and doesn't do much optimization. And no generics means many things are done using reflection / reimplemented poorly and can be slow.

OCaml, Haskell, SML with MLTon, Nim, D, Crystal etc.. have better performance than Java unless one benchmarks a tight numerical loop. Not to mention memory consumption.

JITs are oversold. JIT may be great for optimizing Python or Lua. Moreover java is just poorly designed from a performance standpoint - no value types, virtual by default.

← PreviousPage 2 of 7Next →