HNHacker News
TopNewBestAskShowJobs

entha_saava

244 karma · joined May 3, 2020

submissionscomments
entha_saava··on RedHat Mandrel Makes Java Native
> class loader, hot reload

Difficult in AOT environment and IIRC graal's native-image does a dependency analysis and builds a static binary.

There is dlopen() in C, it is possible to dynamically load libraries. The problem is it doesn't play well with modern deployment scenarios compared to static linked binaries.

> Reflection, GC

These are possible to implement in an AOT language. See Golang.

entha_saava··on RedHat Mandrel Makes Java Native
If rampant reflection becomes a taboo because of native compilation, that would be great.
entha_saava··on RedHat Mandrel Makes Java Native
Apparently you are not representative of average HN user :/ just kidding..
entha_saava··on Ray Tracing in Nim
> Rust feels like a court filing.

But HackerNews and Reddit told me that rust is very ergonomic after two weeks and if you do something in other languages that you can't do in rust, you are doing it wrong and it needs to be fixed.

entha_saava··on Ray Tracing in Nim
True. But rust's aim (at least as its original author envisioned) is for low level systems programming where having automatic memory management is not desired. The aim of safety in low level programming is nice, but that comes with tradeoffs. Eg: not allowing certain patterns and thinking about memory / ownership even when not required.

Some vocal minority of rust fanboys herald it like these are not a problem and rust is right tradeoff for every programming task, as if when crab god doesn't like the way you structured your program there is fundamental mistakes in your programming and you should have fixed them anyway. That kind of dishonest, blanket statements are what leads to Rust Evangelism Strike Force memes.

entha_saava··on Ray Tracing in Nim
Zig is mainly focused on low level programming - every function that allocates takes an allocator argument, there are lot of builtin functions to do low level bit twiddling, doesn't hide any control flow, etc..

Nim is mainly a productivity language. You have GC by default, extensive stdlib, lot of syntax sugar and metaprogramming features. You can create untraced pointers and do manual memory management.

Thus, among the new crop of compiled programming languages

Productivity languages with GC: Crystal, Nim, Go, Swift (automatic refcounting, not GC)

Manually memory managed, low level: Zig, Rust, Odin. Nim can do manual memory management as well but doesn't seem to be primary use case.

entha_saava··on California accuses Cisco of job discrimination based on Indian employee's caste
You are just arguing what's on your mind without even properly understanding my arguments.

> As for the supreme court judge's comment - they are not all that righteous or infallible.

There is no point in talking about the person. Point me what is wrong in his comment.

> The story of how a merited upper caste lost out to an unqualified reserved caste is another misleading anecdotal argument.

Because you don'taccept that it happens, it is misleading, lol. In NITs/IITs, some people get seats with JEE rankings of 100K, which are otherwise allotted within 10K without reservation. And it is well known that most of people are economically well-off to pay for coaching and study materials (self studying candidates are extremely rare).

Some years ago, a scheduled caste student from a middle class family who got All India Rank 1 in JEE Mains and got lot of publicity got 100+ rank in JEE advanced. If he was a general category student, he couldn't get CSE in IIT Bombay, but he got CSE seat by reservation. Now imagine a person who got 90th something rank in JEE advanced, coming from similar or worse economical background, and still missed the seat in top institution because someone thought that is the way to do reservation.

entha_saava··on California accuses Cisco of job discrimination based on Indian employee's caste
Well they stopped going against reservation and started demanding some percentage for themselves.. peak social justice /s

That doesn't really help. Even Modi's so called "10% reservation for general merit" scheme is a cheap votebank trick. With income limits as high as 8 Lakh, it is just like taking 9.9% and giving 10%.

entha_saava··on California accuses Cisco of job discrimination based on Indian employee's caste
Fuck, does that mean you can ignore merit and let the guy who grew up with more privileges and less qualifications still get better opportunities than one with better qualifications just because the former is from a caste that is oppressed by someone else somewhere else? This will just increase dissatisfaction among non-reserved castes and reinforce the discrimination.

Even then, what is wrong with the retired judge's suggestion I mentioned?

entha_saava··on California accuses Cisco of job discrimination based on Indian employee's caste
In India, you don't ask elders "why?" for anything they tell you to do, that's considered disrespect - whether it is parents or teachers. That's why many customs that made sense once upon a time, have morphed into meaningless ones, because they continued by tradition rather than understanding.

At the time marriages were arranged by parents, this made sense because you get to preserve your culture, traditions, language etc.. (in a situation where dialect depends on the place and caste).

> Why not let the two people getting married make the decision if they want to merge the two cultures?

Well that's insane. Maybe, thinking from the place of those elders who are highly interested in conserving their culture, it doesn't make sense to leave everyone to their own causing a mix-mash of different cultures and interests, and that's the generation gap. Although it is more likely attributed to belief rather than such line of thinking.

entha_saava··on California accuses Cisco of job discrimination based on Indian employee's caste
Obviously there is partiality in favour of their own castes among Brahmins, Banias etc.. then there is favouring Indians over other people. Mostly among management types - that's how they are taught to think. The same mindset that thinks management is superior to doing work yourselves is likely to favour people on such basis instead of qualification.

> https://mirror.uncyc.org/wiki/Indian_Programmers

> The Russian programmers have found the concept of "indocritical mass" - this is the limit of Indian programmers that can work safely in one company. If this mass is exceeded the count of the Indian programmers starts increasing in a geometrical progression until every position in the company is occupied by Indians. Indian programmers are coming!

> It is not clear how the Indian programmers breed but judging by the speed at which they breed there is high probability that they breed by division like an unicellular organisms.

I agree there is lot of such bias. But what I don't like is stereotyping all Brahmins like that. Maybe that's a counter bias from your standpoint; nothing is black and white.

entha_saava··on California accuses Cisco of job discrimination based on Indian employee's caste
> If you look at the data of professors here in US and the first generation of guys in US doing higher studies you know. So you have a community base here . Its the same with IITs and reputed educations institutions .

This is not the generalization I oppose. I agree with this. (Although as far as IITs are concerned it is mostly well-off Bania's rather than Brahmins, but still privilege at play).

What I don't like is the generalizations that sound like all Brahmins were well-off and oppressed / actively harassed other people. While there is some divide between every two castes of India, and some of the traditional ways of Brahmins passively hurt people of other castes, that's not the way to put it.

entha_saava··on The KDE community is moving to GitLab
My small problem with gitlab is that the website is slow and heavy JS, especially having to use it on mobile (expectable that you can respond in issue trackers from mobile).

GitHub is comparatively faster and less cluttered UI.

I know this is not a significant problem. But I mentioned it since Gitlab people are sometimes commenting here. :)

entha_saava··on California accuses Cisco of job discrimination based on Indian employee's caste
> For over 2 millenia dalits were not even allowed to enter schools or gain education.

I agree. But reservation as it is in practice currently is rather a knee jerk reaction and not a scientific system. The problem with all these SJW "empowerment" plans is they empower the people who are already empowered.

A retired judge told that the only way to ensure reservation won't be misused is restricting it to one member in one family, and I agree with that, or even restricting reservation to those with less income. The problem with second approach is people easily fake income in income certificates.

The misuse of reservation system is why there is lot of complaints against it, even for people who would score a low amount in tests, reservation would become a scapegoat when the other person with similar economical status gets a job or seat in good college with similar scores.

And your generalization isn't true either. My dad learned till 4th standard, which is almost the average in the area regardless of the caste. My grandmother told she didn't go to school, and I have not seen my grandfather to ask how much he studied.

At this point, you may consider me biased because I don't know about harsh realities in other regions. But keep the data point.

entha_saava··on California accuses Cisco of job discrimination based on Indian employee's caste
> why would you witness such extreme casteism?

Ok that wasn't much clear. Things like untouchability or fights between castes aren't there. And while in-caste marriage etc.. are a thing, that's not exactly discrimination thing. Eg: there are multiple sub groups in Brahmins based on origin and while they don't have 'lower' 'higher', the marriages are preferred to be within that sub groups because each of them have distinct cultures, language dialects etc..

entha_saava··on California accuses Cisco of job discrimination based on Indian employee's caste
To be honest, for some of them it is a matter of 'preserving culture' and I don't think they would accept a 'higher' caste one either. That said, it may be different in other parts of India.
entha_saava··on California accuses Cisco of job discrimination based on Indian employee's caste
Not to forget extreme nationalism.
entha_saava··on California accuses Cisco of job discrimination based on Indian employee's caste
You can go to r/india to see that. That sub is peak irrational leftism.

And people generalizing Brahmins and other upper castes as oppressors are not exactly right. For many of us who are Brahmin by caste but have a rural, agriculture etc.. background otherwise, we have not witnessed such extreme casteism.

Disclaimer: Brahmin by caste / surname but my community is traditionally agriculturist.

entha_saava··on India bans TikTok, WeChat, and dozens of other Chinese apps
I am an Indian and here is my perspective.

A significant portion of Indian smartphone users are not technically literate. Lot of shady adware developed in China is ubiquitous in India, due to inertia and network effects, as well as lack of awareness about security / permissions given to apps etc..

For example, that file sharing application called ShareIt. That's a piece of shit. But people used it and if you wanted to share some movie / song / something like that with other people, you would've needed that crap. I have refused to use such adware since an year and it worked for me because content I consume was different, there was cheap Jio internet and I didn't need to share much files with others. The technically educated of us used Google Files or Xender which were better than ShareIt. And most people don't own PC/Laptop thus Pendrives are out of question.

Similarly people used browsers like UC browser without concerns, because they didn't know better.

Now there is friction between China and India, the ubiquity of Chinese apps is a threat, and Govt. has taken right step. But more stuff needs to be banned, and the danger needs to be clearly communicated instead of a blanket ban, which leads people to think it is just an act of patriotism.

entha_saava··on India bans TikTok, WeChat, and dozens of other Chinese apps
> "but but communist evil"

Noone told that. CCP is not even communism.

Chinese apps collect a fucking lot of data and Indian People innocently use those shit apps like ShareIt because inertia and maybe network effects. If you want to share a movie / song something with an ordinary indian citizen you'd have needed ShareIt which is a piece of shit. Technical ones among us use Google Files or something like that but I have so far refused to use ShareIt because it is such shady adware. Note that most Indians don't have Laptop / PC and USB / Pendrives aren't ubiquitous.

Now that there is some friction between China and India and given the nature of Chinese Governance these apps are threat to national security.

Ideally they could have banned PUBG also, the shit is ruining many lives.

entha_saava··on India bans TikTok, WeChat, and dozens of other Chinese apps
How is US remotely comparable to China?
entha_saava··on Go vs. Crystal Performance
maybe LLVM as well..
entha_saava··on The Defaults Don't Work
That's hard in this anti intellectual, bureaucratic world.
entha_saava··on Apple Music on Android requires its own payment details to avoid Google 30% cut
But nothing compared to anti-competitive measures and dishonest marketing of apple.

Apple puts severe restrictions on developers, that they should develop on macs, that they should use Apple's IAP features, that they should provide 'sign in with apple' (although last one may be reasonable). They even tried to prevent cross platform application frameworks some years ago, by mandating that apps should be written in C/C++/ObjC.

And the dishonest marketing is well known.

Apple promoted swift, fine. But, since they couldn't implement GC in swift because Cocoa interop, some apple people (or maybe fanboys, apple's negative cost marketing strategy is its cult) attempted to make it look like ARC is competitive advantage against Android.

Apple is a patent troll. They sued samsung for some trivial things. They trademarked the word 'app store'. They patent trivial programming language features like optional chaining.

Apple is much more harmful than Google. HN defends web technologies and apple apparently because many here are invested in it (although often they are at odds). But please don't support a patent troll like apple.

entha_saava··on Go generics draft design: building a hashtable
I'd rather have

    [* *]

    [= =]

    [/ /]

    (* *)

    (= =)

    (/ /)
Just kidding, requiring specialized tooling to type isn't quite acceptable..
entha_saava··on The Next Step for Generics
> I just find defining a string is a string when im only ever going to put a string in there kind of redundant.

There are 2 problems with this kind of thinking.

1) you aren't going to be so sure. Humans are imperfect and as codebase grows, everyone commits such errors. Eg comparing a string to int without converting it to int in python. It always returns false (IIRC) and it is hard to detect where the problem is.

2) Most type systems aren't that verbose. I guess you got the impression from java / mediaeval C++. But most statically typed languages have local variable type inference. OCaml / Haskell / F# / Swift etc.. have varying degrees of type inference. At this point, types in method signatures, in languages that require it, serve as documentation. And many of these languages are terser than python/javascript.

entha_saava··on The Next Step for Generics
Go and D made the tradeoff. And both have good compile times. Both of them have GCC and LLVM frontends as well as a homegrown one. And homegrown ones have fast compile times.

Edit: well fast compile times at the expense of optimization. But that kind of proves the point.

entha_saava··on The Next Step for Generics
I should first tell that I don't hate rust. It is a well designed language for what it aims for (statically guaranteed memory safety for systems programming). I have deep respect for rust creator and some members of core team for their technical work.

What irritates me is claims like "If borrow checker rejects your code, it was wrongly structured anyway" and "rust's restrictions lead to good structured code". It is not wrong if program logic requires self referential structures, for example. Neither does it make sense to evangelize rust using blanket statements like this. I get the impression that some people are trying to evangelize rust as a language for everything.

The mental overhead of rust (or maybe ATS, maybe Ada/SPARK, depending on requirements) makes sense for systems programming, where C/C++ will make stuff even more complicated, and you can't compromise on performance. The applications domain is realistically better served by something like F# / OCaml / Go once it gets generics..

entha_saava··on The Next Step for Generics
One thing other comments didn't mention is Go has an order of magnitude more jobs than rust.
entha_saava··on The Next Step for Generics
Was cargo famous before rust or maybe it should be npm-cult programming?
← PreviousPage 3 of 7Next →