Hacker News new | past | comments | ask | show | jobs | submit | more latchkey's comments login

Nobody has mentioned this, but https://docs.scale-lang.com/ is doing some amazing work on this front. Take CUDA code, compile it and output a binary that runs on AMD. Michael and his team working on this are brilliant engineers.


I think the revolution was more than just riping, it has to do with the variety. When I moved to Vietnam, I found they also had a large amount of avo's used in a lot of dishes, but they are shaped differently and taste like chalk compared with sweeter/creamier Mexico/California avo's.

Wow, just searching around, I found that I'm not the only one! It seems to be Haas vs. Booth...

https://www.reddit.com/r/VietNam/comments/uw10hw/in_the_west...


Here in Guatemala they have regional avocados which also are terrible compared to Hass. What's cool though is that they grow all over the place and they're dirt cheap.

Once I went to a park and realized the tree at the park was a (regional) avocado tree. But the avocados were REALLY high up. Like, there was no way we were gonna climb that sucker. So I knocked on a door that was right by the park, and I asked the young girl who answered if she had a stick or something we could use.

She said "actually, we do" and she brought out this insanely long stick with a little forked part at the edge that was just for picking avocados. And we picked so, so many.


Here in Brazil there's like 10 different versions of avocados.

You have all type of versions. Some are better to be eaten as guacamole... others are not. Here we do sweet avocados (just eat with sugar, or just put on a blender with milk).

Some of them have more fat, others have less...

Search for "Abacate pescoço". This is probably the most interesting and different one.

:)

I believe Hass is just better to export, because it doesn't spoil so easily.

Another fun fact: I think majority of people don't really buy avocados in supermarket. They are grown all over the place. Streets, backyard, parks... In my street there's like, 5 avocados trees (with each being different type). Hass is the most rare here, you'll usually find it on supermarket only...


Ha, over here in Aus we get Hass most of the year but for a few weeks at the end of March/start of April we can only get Shepard and everyone moans about it!

Hass are definitely superior, but Shepard aren’t all that bad. Bit rubbery maybe :)


Follow Anush on Twitter and give him feedback. He's actively listening.

https://x.com/AnushElangovan



Congrats!


Cobra https://github.com/spf13/cobra uses https://github.com/spf13/pflag, which supports GNU style flags. Cobra has been developed for many years now and has a ton of additional features, like automatically generating the autocompletions and has tons of unit tests.

I'd just use cobra.


Cobra is certainly popular, but it has many weird edge cases and limitations. It's been a while since I've used it so I can't recall the specifics, but I do remember it being a very poor experience, both as a developer and as a user.

I've had a much better experience with https://github.com/alecthomas/kong , and I've heard good things about https://github.com/urfave/cli , so I would recommend those over Cobra.


I have used both argp and Kong. I consider them two of the best Go CLI libraries for different reasons. Kong has a full set of advanced functionality like flag groups and associating environment variables with options. It is highly useful in a larger project with a complex CLI. For a simple command-line interface, I prefer argp's small API and defaults, like exit with status 2 on bad usage. (Disclosure: I contributed this default to argp.)

Kong 1.7 has a disadvantage when it comes to negative numbers. argp parses `foo --bar -1` as `foo --bar=-1` the way you expect when `--bar` takes a value, but Kong treats `-1` as a flag.

Edit: Expanded the first paragraph.


> argp parses `foo --bar -1` as `foo --bar=-1` the way you expect when `--bar` takes an value, but Kong treats `-1` as a flag.

This seems a bug in Kong. Has someone reported it?


Yes, see https://github.com/alecthomas/kong/issues/315. It may be nontrivial to change.


They all have their warts, but "just pick cobra/kong/cli" is what I go with these days. I'm still partial to Cobra because of the nice autocompletion scripts it generates for me so I get tab-completion for free.


This is the correct answer. Just use Cobra, the automatic autocomplete is the best UX for users.

I’ve also tried all of them. cobra is more than good enough and what issues remain in 2025 are easily and reliably worked around to be non issues.


Yes! People love Cobra and yet every time I've used it, it's felt super janky and unreliable at actually doing what you think it should.

Not a fan.


Kong doesn't explicitly say it supports GNU-style, which is why I didn't mention it.


one thing I liked about cobra is the auto complete support, but I don't like the manual process of define command and parameter and not easy to extend, so I wrote https://github.com/hujun-open/myflags, it is built-on top of cobra but allow uses a struct to define all commands/args and also easily to extend support new types (even existing types)


I’ll second that. Cobra is the industrial strength flag parsing package most of the professional Go ecosystem has settled on. It’s the boring choice in the best sense of the word. Use it and move on with life.


https://news.ycombinator.com/newsguidelines.html

Please don't post comments saying that HN is turning into Reddit. It's a semi-noob illusion, as old as the hills.


I'm aware of this rule but I think it's clearly not true that quality hasn't degraded over time. Look at any pg thread from 2014 https://news.ycombinator.com/item?id=21233848 Anyway I get that commenting this isn't the best use of space but I still think it's true (I also suspect not being allowed to call this out is not helping the quality).


SHA265 hasn't been efficient on a GPU (compared with an ASIC) in over 10 years.


crpto != only Bitcoin. Any cryptocurrency worth its salt is ASCI resistant.


Even ethash had ASICs. As long as there is enough financial incentive, there can always be ASICs built for cheating the system. "Any cryptocurrency worth its salt" would have that incentive.


I am guessing this is coming up now due to the recent changes in regulations.

https://news.ycombinator.com/item?id=43357447

"Prioritizing coal ash program to expedite state permit reviews and update coal ash regulations (CCR Rule)"


Wrong project. ZLUDA will never support enterprise.

What you're looking for is SCALE...

https://docs.scale-lang.com/

and they are making amazing progress.


Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: