Better HN
topnewbestaskshowjobs
Log inSign up

kortex

8,487 karma · joined Feb 1, 2017 (9y ago) · 2,549 submissions

Submissions

comment 3y ago · link · parent

Can't you just define the symbol color pallet in options? (I'm not a vscode user, I use JetBrains and I just define my own colors)

comment 3y ago · link · parent

I'm a big fan. My source code looks like a rave. I think it depends on your neurotype quite a bit though.

comment 3y ago · link · parent

I'm not really an engineer (general hobbyist, former chemist) but I have built and worked with pressure and vacuum vessels.

Positive pressure (tank vs exterior) is much easier to deal with than negative pressure (vacuum vessel at 1 atm, or bathyscape with 1 atm inside and high pressure exterior). In positive pressure, your stress is mostly in the hoop mode, which is stable. This is why aluminum cans can be so thin. In negative pressure vessels, you have a buckling mode, which is inherently unstable. As soon as it goes, it goes all at once.

I've had a 2L glass vacuum flask implode on me. There is no warning. All it takes is a tiny defect, and once you hit a certain pressure delta, kaboom. Composite is similar in that it's mostly brittle failure vs ductile. I've also imploded a 55 gallon steel vessel. That goes a lot more gradually (though still fast) - maybe enough to detect and abort the trip.

The other main advantage of steel vs composite is you can inspect with X-ray imaging to find defects.

comment 3y ago · link · parent

Yes but every time I've seen it, it's in a small scope, it's very obvious the type of the variable and what it's doing. It's really not as bad as it seems once you spend some time in go.

comment 3y ago · link · parent

ROS is verrrrrrry opinionated and a pain to set up in an orthogonal way to other ROS installs. It's also tied very heavily to ubuntu/debian. Putting it all into containers makes many things so much easier (it makes a few things harder, or at least it did on ros1, hopefully that's been ironed out in ros2)

comment 3y ago · link · parent

Oh man, this is a nostalgia bomb. I wish this had a search feature, so I can't find my favorite one, though I'm sure it's on there. Author if you are here, I'd love the ability to search, rather than scroll through thousands in a drop-down on mobile.

Unreel Superhero 3. I think it was off a keygen for Sony ACID, propellerheads Reason, or Daemontools, can't remember which.

https://youtu.be/9STiQ8cCIo0

comment 3y ago · link · parent

Chip music / chiptune specifically to music produced on/for sound chips, or produced using tracker software which was commonly used to produce this kind of music.

"8-bit" is also often used to refer to the genre of chiptune, even though much of the music is produced for higher bit depth systems.

Many keygen tunes are chiptunes, produced on trackers, but many are not. Some are straight-up DnB, techno, or trance, not remotely chiptune. E.g. Here's a track from downthread which would be considered rave/ old skool / breakebeat hardcore or just "hardcore" (not to be confused with like a dozen other genres called "old skool" or "hardcore" (it's a very ineffable genre from a fairly narrow time period, from a fairly underground at the time subculture, who released via physically unstable "dubplates" that haven't survived well through digital archiving)).

https://cable.ayra.ch/webxmp/#835

https://en.m.wikipedia.org/wiki/Breakbeat_hardcore

It's almost like language is fluid and descriptive, not proscriptive.

comment 3y ago · link · parent

703 is probably the right path towards true gilless python, but to quote Greg Smith (gpshead) on the PR,

> We're not ready to simply pronounce on 703 as it has a HUGE blast radius.

703 isn't even out of draft PEP status. I think they need to come to consensus on 703, or modify it until it is acceptable, and then figure out how to merge the code and release it.

I don't know for sure, but it looks like even with the compile nogil flag off, there are enough low-level API changes that extensions would break. If they can do it without breaking extensions with the flag off, I can see this happening over the next few years. But it's no small feat.

comment 3y ago · link · parent

> The problem is not that deep

Technically yes, the data structure can be abstracted over and removed, in that sense, it isn't "deep". But the reason I say it's deep is because of the deep implications and assumptions of the GIL being there. For decades, the codebase (and extensions) has grown with the expectation that the GIL enforces a certain behavior.

> That's from my view the crust of the issue, the TLDR is that GIL-less python is not a priority for the python team, so they view any trade-off/comprise as "not justifiable". Especially something when it come to added complexity to the code base or what not...

Precisely. Because it's such a hard problem. If someone had a proposal to actually remove the GIL, limit the single core performance hit to say <10%, and not break extensions, I have no doubt the steering team would go for it. It would be huge PR for python, simply because of the Gil's bad rap.

Turns out that multi-interpreters give you most of the benefit of multithreading with nowhere near as much complexity.

> People have this reaction because having a single-threaded interpreter in 2023 is just ... embarrassing, what ever the reasons behind it.

What other dynamic languages invented over 3 decade ago have natively multithreaded interpreters? Oh javascript, the (fundamentally simpler on a technical level and uses different gc techniques) language which has gotten millions of dollars in development by the biggest tech companies because it runs on nearly every browser and thus has huge incentives to optimize? If python ran in every browser, the Gil would be gone by now.

Java? Again, huge amount of backing, 15 years older than python.

Perl, ruby, lua, all use refcount and have single-threaded interpreters. Objective C might fit the bill for multithreaded refcount gc (I don't know, I'm asking gpt). Nim does, but it's rather modern, (2008). Swift is statically typed, which helps, and much newer (2014).

I guess that leaves Erlang, which again uses different gc techniques.

I guess the takeaway is refcount is probably not the best design choice for writing a modern dynamic language if you value multithreading.

comment 3y ago · link · parent

I indirectly referenced it. IIRC the main problems with his approach are the ABI problem and the mutex overhead. He tries to "solve" the performance hit by offsetting with performance gains elsewhere, but that raises the question "why not take the gains by themselves".

comment 3y ago · link · parent

What exactly does "running inside a Thread/GilFreeThread" in the context of the cpython runtime mean? You pretty much need an entire copy of the virtual machine code.

These are C structs we are talking about here, not some Rust trait you can readily parameterize over abstractly. That either means lots of manual code duplication, or some gnarly preprocessor action. Both are a maintenance nightmare.

comment 3y ago · link · parent

Every single HN thread on python performance, ever:

Person with limited to zero experience with CPython internals> I hate the GIL, why don't they just remove it?

That just is doing an incredible amount of heavy lifting. It'd be like saying, "Why doesn't the USA just switch entirely to the metric system?" It's a huge ask, and after being burned by the 2/3 transition, the python team is loathe to rock to boat too much again.

The GIL is deep, arguably one of the deepest abstractions in the codebase, up there with PyObject itself. Think about having to redefine the String implementation of a codebase in your language of choice.

Whatever your monday-morning quarterback idea on how to pull out the GIL is, I can almost guarantee, someone has thought about it, probably implemented it, and determined it will have one or more side effects:

- Reduced single-thread performance

- Breaking ABI/FFI compatibility

- Not breaking ABI immediately, but massively introducing the risk of hard to track concurrency bugs that didn't exist before, because GIL

- Creating a maintenance nightmare by adding tons of complexity, switches, conditionals, etc to the codebase

The team has already decided those tradeoffs are not really justifiable.

The GILectomy project has probably come the closest, but it impacts single-thread performance by introducing a mutex (there are some reference type tricks [1] to mitigate the hit, but it still hurts run time 10-50%), and necessitates any extension libraries update their code in a strongly API-breaking way.

It's possible that over time, there are improvements which simultaneously improve performance or maintainability, while also lessening the pain of a future GILectomy, e.g. anything which reduces the reliance on checking reference counts.

[1] PEP 683 is probably a prerequisite for any future GILectomy attempts, which looks like it has been accepted, which is great https://peps.python.org/pep-0683/

comment 3y ago · link · parent

> But the red/blue splitting happens behind the scenes, so it's different.

Respectfully, I don't believe you have spent any appreciable time looking at the CPython source code. If you had, you would understand how unreasonable this expectation is. I don't say this to tear you down, I say this to convey the magnitude of what you are describing. It would involve touching tens of thousands of LoC. You are talking about a multi-million dollar project that would result in a ton of near-duplication of code.

The red/blue is inescapable because you have to redefine PyObject to have two flavors, PyObject with GIL and GilFreePyObject. You now have to check which one you are dealing with constantly.

comment 3y ago · link · parent

Python is dynamic AF and Rust's whole shtick is compile-time safety. Python was built from the ground up to be dynamic and "easy", Rust was meticulously designed to be strict and use types to enforce constraints.

It's hard to convey how difficult it would be to retrofit python to be able to truly "enclose multithreading in a safe abstraction".

comment 3y ago · link · parent

That sounds like a maintenance and stability nightmare, if it's even possible. You are effectively red/blue splitting the entire codebase. PyObject and the GIL touch everything in the codebase.

comment 3y ago · link · parent

> C programs unavoidably interact directly with the GIL?

Bingo. They don't have to, but often the point of C extensions is performance, which usually means turning on parallelism. E.g. Numpy will release the GIL in order to use machine threads on compute-heavy tasks. I'm not worried about the big 5 (numpy, scipy, pandas, pytorch, and sklearn), they have enough support that they can react to a GILectomy. It's everyone else that touches the GIL but may not have the capacity or ability to update in a timely manner.

I don't think this is something which can be shimmed either or ABI-versioned either. It's deeeep and touches huge swaths of the cpython codebase.

comment 3y ago · link · parent

> Donnie: I made a new language

> Therapist: New language, or LISP dialect?

> Donnie: LISP again

Mostly a dig at the title. Jokes aside, I love how concise this is. Not sure how I feel about readability, too many inline if {} blocks for my liking, and a bit arcane. But I'm never not gonna upvote novel languages. Something about language creation delights me.

comment 3y ago · link · parent

Synthetic chemistry in the 40s was like alchemy compared to the processes today. There are myriad chemical techniques and reactions that exist today, that didn't exist in the 40s, and you flat out can't do without fluoropolymers, because the reagents used are way too aggressive on virtually everything else.

comment 3y ago · link · parent

I don't think you understand how bad lead is for neural development. It's far worse than plastic. And with leaded gas, there was no escaping it. At least you can generally live a no-plastic or reduced-plastic lifestyle. We literally dosed an entire generation with aerosolized heavy metals.

comment 3y ago · link · parent

Just because you don't personally encounter it, doesn't mean it's non-essential.

Viton is essential in modern engines. Basically anywhere you are in contact with gasoline, you need fluoroelastomer.

The entire chemicals industry - everything from medicine to energy to commodity chemicals - would collapse overnight if you took away teflon, viton, and PVDF. That's not hyperbole, it's used everywhere and there are no drop in alternatives. Silicone can fit the bill for some purposes, but it has nowhere the compatibility and longevity of viton. We have no real non-fluoronated alternative to teflon.

comment 3y ago · link · parent

Very little "rubber" is actual natural latex rubber. Balloons, certain hose, and some gloves are natural latex, as are about 40% of the material in tires. The rest is synthetic elastomer. EPDM and Buna-N/nitrile are probably the most common.

Teflon is not rubber, but viton is fluorinated elastomer, and it's used everywhere as well.

comment 3y ago · link · parent

Perhaps a naive question, but what prevents a user from running an emulation layer with a virtual browser, that pipes the data to a desired client? Term of service?

Ok what if they decide to run said adversarial interface, host the code outside of judicial grasp, and cover tracks?

Yeah performance would probably be subpar, but if Reddit keeps up this process, that will be the likely inevitable outcome.

comment 3y ago · link · parent

> hanging within a few feet of a campfire for hours

is actually bad though. You may not feel it, but as an asthmatic, I can tell you quite certainly that this is dosing you with PM2.5 unless you have a really clean burning convective fire or smokeless pit.

comment 3y ago · link · parent

I meant when they originally designed it, they should have designed in an easement.

comment 3y ago · link · parent

Great ruling. The private/public checkerboard is pretty bizarre in the first place. A much more forethought approach would be to add a public buffer around everything (basically shrink the private plots by 6' or so).

comment 3y ago · link · parent

I know the idea, but it's usually not 14-15 standards, it's usually like one really entrenched old crusty standard (if you are lucky) or (more likely) emergent glued-together patchwork of hacks.

It's definitely an uphill battle to introduce any new standard, but it does happen. USB-C, HTML5, ECMA6, I would say are some success stories.

comment 3y ago · link · parent

Yeah, I read all that. I still don't understand why/how the lawyers went ahead with the trademark process before the engagement letter was signed.

Like, I want to believe you, it just seems weird of lawyers to do the thing without the i's dotted and t's crossed. I can see software devs totally barging ahead, but lawyers, less so.

comment 3y ago · link · parent

Yeah, regional burns are definitely my jam. I guess I just gotta ask folks what other events they are going to whenever I'm at one. Yay network effects!

comment 3y ago · link · parent

Probably that plus other things

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

Also "we didn't sign the agreement but the lawyers pushed the application forward anyways" sounds very...un-lawyer-y. Kinda sus.

comment 3y ago · link · parent

How do you find out about these? I hear about some by word of mouth but I'd like to accelerate the process.
1
141516
85