8,496 karma · joined Feb 1, 2017 (9y ago) · 2,551 submissions
comment 6y ago · link · parent
> - Arrays start at one
Oof. Big turnoff for me. For some reason, this particular context switch really grinds my gears. All languages I use (except bash, which grinds my gears) use Dijkstra-style array slices: python, go, c/++, js. I'm sure it makes it easier for Matlab converts.
This, plus the mentioned weaknesses with libs like http, grpc et al, IMHO will relegate Julia to many years of just being wrapped by other languages. To avoid that, I think they should be thinking about continuing to woo more of the engineering crowd - which to their credit I think they've done pretty well so far.
https://www.cs.utexas.edu/users/EWD/transcriptions/EWD08xx/E...
comment 6y ago · link · parent
They are a powerful concept - give a resource a universal name, regardless of how you locate it. I'm surprised this hasn't taken off as a way to universally point to assets (outside bittorrent), but I guess the challenge there is the resolver, and the lack of a pressing need when URLs do most of what you want.
I just want a way to refer to a file that might be local, http, s3, what-have-you, and always refer to it with the same string, regardless of where it's located.
There's XRIs, but there's, erm, some drama going on there.
https://en.m.wikipedia.org/wiki/Extensible_Resource_Identifi...
comment 6y ago · link · parent
Also it saddens me we have a speaker mute keycode but no system-wide mute mic.
comment 6y ago · link · parent
I have thought about custom in-line hardware but that's honestly as complicated as QMK. Plus latency.
What I would love however is an inline monitor to see what keycodes I'm issuing. It gets...zany.
comment 6y ago · link · parent
It's like duck typing with a built-in Audubon society taxonomy chart.
You can always do whatever you want at runtime, it's still python.
IMHO, duck typing is strictly inferior to interface typing. You'd define a `Number` interface which `int`, `float`, ect all implement.
comment 6y ago · link · parent
> Furthermore, Julia has much power powerful metaprogramming facilities than Python does.
Until someone writes a way to import julia code directly into python/autogenerate it from python. Anyone who says "well then you're not really writing python" is missing the whole point: writing python is all about exactly this sort of tip-of-the-abstraction-iceberg trickery.
Sure, you can call python from Julia as well. So it boils down to "which is the better glue language?" This isn't a competitive thing, it's just literally what Python is meant to do.
comment 6y ago · link · parent
I've never seen typed yaml, this is wild.
negative: !!int -12
zero: !!int 0
positive: !!int 34
Can't say I love the notation, but indeed that is type annotations. I guess neither "yaml type hints" nor "yaml type annotations" are the right query. Had to search explicitly for "yaml tags".comment 6y ago · link · parent
Python will gain usecases as a meta-language as the ability to automatically wrap lower abstraction libaries improves. I see Julia eating much of Python's lunch, then python abstracting its way over julia, just because it can.
comment 6y ago · link · parent
I'm kind of in an odd niche, so maybe your last sentiment applies. But it strikes me as very un-hacker-mindset to be like, "no one _needs_ to know X". it's curiosity.
comment 6y ago · link · parent
Unless you have actual type annotations/tags (eg xml, jsonld, graphql), everything IS a string. There's no assumptions otherwise.
comment 6y ago · link · parent
Starting to get into Xonsh. Still a learning curve, cause it's neither bash nor python, but it's really refreshing.
comment 6y ago · link · parent
Pycharm has it built in or as a plugin now too.
comment 6y ago · link · parent
I drive zsh but still use bash scripts a lot cause "portability" and "it's available everywhere" but that argument just doesn't hold up when I'm already in control of most of my stacks and have docker access on pretty much every host I'm in.
I'm forcing myself to use Xonsh more, which despite having all its own quirks, is so much less mental overhead going between Python development. Yeah maybe it's a few more steps (than zero for bash) to provision, but it's worth it.
comment 6y ago · link · parent
Heck, I worked on a repo where "master" was 2 years untouched, "rc" was like 8 months untouched and effectively deployment, "next" was effectively the release candidate but also used in production elsewhere, so it was gated like it was a master branch, and everything else was dev. Yeah.
comment 6y ago · link · parent
Master much more clearly implies the antonyms "slave" "servant" "underling". to me, "main" doesn't have one single strong antonym, it's more contextual, but could be side, alternate, aux, etc.
comment 6y ago · link · parent
Ex. A: China's singular party has implemented a surveilance dragnet and social tattling ideology with vast repercussions on freedoms and censorship. Features include forced assimilation until it is "voluntary" (re-education), measures that encourage ratting out dissidents, a leader with near mythical status, and a technical panopticon.
Ex. B: HN commentor warning about just such a system.
I get your point, but GP is hardly "spreading fear about the other" when saying "hey we need to pay attention to this if we care about liberty"