Better HN
topnewbestaskshowjobs
Log inSign up

programmer_dude

601 karma · joined Apr 4, 2014 (12y ago) · 477 submissions

Submissions

comment 4y ago · link · parent

> The current build system and type system go a long way to encourage library use

I have zero experience with Zig but this contradicts what the other poster in this thread said. Not sure what to make of this.

comment 4y ago · link · parent

> Everybody is lying some of the time. Some more than others but nobody is perfectly truthful all the time.

True!

comment 4y ago · link · parent

> don't necessarily want to call lots of library code

Makes sense since Zig is meant to be a replacement for C and "C is NOT a modular language! The best way to use C is to roll your own (or copy and paste) data structures for your problem, not try to use canned ones!" from a comment here: https://news.ycombinator.com/item?id=33130533

Edit: I call this misfeature of the C language the "polluted/busy call site syndrome".

comment 4y ago · link · parent

Everybody is dumb some of the time. Some more than others but nobody is perfect in all spheres of life.

comment 4y ago · link · parent

> This post is meant to discuss reasons why Zig-style generics are not well-suited for languages other than Zig.

> Limited compiler support when calling generic code

> Limited compiler support when writing generic code

> Limited type inference

> Cannot distribute binary-only libraries with generic interfaces

> Tooling needs to do more work

> Inability to have non-determinism at compile time

> Inability to support polymorphic recursion

Why are these things not a problem in Zig?

comment 4y ago · link · parent

Hmm, this is interesting. Never realized this was a thing. Care to submit a specimen link?

comment 4y ago · link · parent

> I just think it's important to point out it's how they chose to do it

IMO the current way of pooling things together is one way of spreading the loss (due to returns or A-to-z claims) across the entire pool. Other members of the pool bear the cost of such maleficence. Amazon's motto probably: Screw all sellers f**k if I care.

comment 4y ago · link · parent

How does Amazon do this SKU aggregation? It must use some kind of product identifier (barcode / QR code / RFID tag etc.)? Why not include vendor information with it? Please stop using this tired excuse. It is not a difficult problem to solve if you have the intent.

comment 4y ago · link · parent

Ford was not competitive in the Indian market. It simply failed. Are you surprised? Doesn't the US ban the importation of any car model newer than 22 years (may be misremembering this figure), thus ensuring the dominance of mediocre products in the American market?

Edit: it's actually 25 years: https://www.autoweek.com/car-life/a1707441/who-really-benefi...

comment 4y ago · link · parent

Please name some of these limitations.

comment 4y ago · link · parent

Yes India has vocational training institutes (established 1950): https://en.wikipedia.org/wiki/Industrial_training_institute

Don't know how these compare with institutes in other countries.

comment 4y ago · link · parent

> it has become a better functional programming language than most functional programming languages.

LOL

comment 4y ago · link · parent

https://web.archive.org/web/20221002054840/https://www.econo...

comment 4y ago · link · parent

I'd say containing things is just one function of arrays. The other arguably more important function is "naming" things using numbers.

comment 4y ago · link · parent

Just curious why would anyone want to buy it.

comment 4y ago · link · parent

Isn't Final Space available on Netflix?

comment 4y ago · link · parent

Yet another discrete mathatics book?

comment 4y ago · link · parent

I have seen Abhijit's video, it lacks merit. The video I linked shows why Abhijit's take on this subject is untenable. Yes, this video was created in response to Abhijit's video and addresses it directly. OIT is improbable.

comment 4y ago · link · parent

Here's a better video: https://www.youtube.com/watch?v=NQX5LlJ7YXg

comment 4y ago · link · parent

India experienced a massive heat wave last summer. My electricity consumption exceeded the average US per month figures for the first time (>900 KWh/month). Bulk of it went to airconditioning. Needless to say I am deeply concerned about the times ahead. I am pretty sure increase in electricity consumption is only going to aggravate things further.

comment 4y ago · link · parent

IMO numbeo.com has pretty accurate stats for Indian cities. Is this not true of their info on the US?

comment 4y ago · link · parent

It is possible. Some embedded systems can work in the milliwatts to microwatts region.

comment 4y ago · link · parent

>What programming questions can weed out people with CS/SE degrees?

Precisely this question. You don't need a programming question.

comment 4y ago · link · parent

Apparently there is an official definition: https://en.wikipedia.org/wiki/Classification_of_Indian_citie...

comment 4y ago · link · parent

All fiber to the home service providers here (Jio, Tataplay fiber, Airtel etc) support IPv6 "out of the box".

comment 4y ago · link · parent

These other shapes will need taller walls to keep the desert sand out.

comment 4y ago · link · parent

I did this for roughly the first 25 years of my life. I no longer think it is a good idea. People invariably end up asking for money.

comment 4y ago · link · parent

Closest I have is: https://m.youtube.com/channel/UC4t3vjushyjfqQ1LMn8vWzw

comment 4y ago · link · parent

Agreed!
1
567
16