Better HN
topnewbestaskshowjobs
Log inSign up

netbioserror

1,518 karma · joined Mar 15, 2023 (3y ago) · 543 submissions

Submissions

comment 9mo ago · link · parent

I've recently made a dozen vastly different projects with Typst, ALL of which would have created dependency hell, syntax noise, and hours of extra pointless work in Latex. It's such a clear win at this point it's embarrassing.

comment 9mo ago · link · parent

I bounced off of Objective-C not because of its message-passing OO. That was the actual cool part. I bounced off because of the insane amount of boilerplate prototyping and headers required to use it.

I think every OO language should be using Smalltalk's message-passing style rather than holding hard references, and Objective-C is a great model. But discard the rest.

comment 9mo ago · link · parent

New York City has been a running sine wave of sketchy stories and memories for the past century!

comment 9mo ago · link · parent

True beauty. Wow. My only ask would be optional type annotations for function and type parameters, so it's easy to fully describe your interfaces in code.

comment 9mo ago · link · parent

Major syntactic structures definitely have an influence on my language choices. Outside of compilation and runtime model, modeling the domain (both data and procedures) changes drastically between paradigms. Syntax is what enables or hamstrings different modeling paradigms.

My two biggest considerations when picking a language are:

- How well does it support value semantics? (Can I pass data around as data and know that it is owned by the declaring scope, or am I chained to references, potential nulls, and mutable handles with lifetimes I must consider? Can I write expression-oriented code?)

- How well does it support linear pipelining for immutable values? (If I want to take advantage of value semantics, there needs to be a way to express a series of computations on a piece of data in-order, with no strange exceptions because one procedure or another is a compiler-magic symbol that can't be mapped, reduced, filtered, etc. In other words, piping operators or Universal Function Call Syntax.)

I lean on value semantics, expression-oriented code, and pipelining to express lots of complex computations in a readable and maintainable manner, and if a language shoots me in the foot there, it's demoralizing.

comment 9mo ago · link · parent

Same. Not only has using it been no trouble, but having a barebones core app selection, a few picks from F-Droid, and using the browser for the rest makes my phone feel refreshingly under my control. It lasts for 3-4 days of low usage to boot, when nothing is phoning home constantly.

comment 9mo ago · link · parent

Colossally awful take. Corruption is an intractable problem in human history. Power is a magnet for the worst people, and every system we invent can be exploited in innumerable ways. The only variable is how long the people of any individual society can remain free and prosperous before their decline. Temporary recoveries have only happened by lopping off massive chunks of empire, implementing extreme monetary reforms, and/or a switch to full autocracy. Every other outcome is terminal decline.

comment 10mo ago · link · parent

The feature list here has significant overlap with Nim. Maybe we need a website that categorizes languages with feature tags, so we can visualize the overlap!

comment 10mo ago · link · parent

I've been statically linking Nim binaries with musl. It's fantastic. Relatively easy to set up (just a few compiler flags and the musl toolchain), and I get an optimized binary that is indistinguishable from any other static C Linux binary. It runs on any machine we throw it at. For a newer-generation systems language, that is a massive selling point.

comment 10mo ago · link · parent

Nim has a similar, strong preference for value semantics. However, its dynamic heap types (strings, seqs, tables) are all implemented as wrappers that hide the internal references and behave with value semantics by default, unless explicitly escape hatched. It makes it incredibly easy to manipulate almost any data in a functional, expression-oriented manner, while preserving the speed and efficiency of being backed by a doubling array-list.

comment 10mo ago · link · parent

What @cheeseomlit said, plus: During the Age of Exploration/Colonization, competing European powers each minted metal currencies and couldn't reasonably debase their metals without immediately being out-competed (which is why the trusted purity of Spanish gold and silver coinage slowly dominated). The primary mode of failure for those empires was bankruptcy via war. The impossibly high cost of fielding armies around the globe was laid bare during that era. Paper money lets us (funnily enough) paper those costs over and live with the illusion that it's all a free lunch. But what we're actually doing today is debasement, and eating, vociferously, all of the deflationary efficiency gains won by 20th century technological progress.

comment 10mo ago · link · parent

There are also many Americans who have always desired de-dollarization, since the dollar has been the foundation of our imperial system and abuses of state power. Say what you will about how dated a gold standard is, but it forces immediate fiscal responsibility upon governments; fiat currencies defer responsibility, turning it into a Sword of Damocles that catastrophically falls upon future generations. You trade geopolitical dominance now for guaranteed future withering. Of course, fiscal responsibility and the rejection of imperial ambition were core principles of the Anti-Federalists, Democratic-Republicans, and Whigs. It's baked into our history and tradition to not want to be the unilateral arbiters of a global trade and alliance system.

comment 10mo ago · link · parent

I was surprised that for most of my smaller use cases, Zepto.js was a drop-in replacement that worked well. I do need to try the jQuery slim builds, I've never explored that.

comment 10mo ago · link · parent

You can also feed the maggots to chickens.

comment 10mo ago · link · parent

The real question at the core of any production: What's the minimum performance cost we can pay for abstractions that substantially boost development efficiency and maintainability? Just like in other engineering fields, the product tuned to yield the absolute maximum possible value in one attribute makes crippling sacrifices along other axes.

comment 10mo ago · link · parent

Yeah, immutability should probably use a `let` keyword and compiler analysis should enforce value semantics on those declarations.

comment 10mo ago · link · parent

I've used JSON as an additional options input to a native-compiled CLI program's various commands because 1) the schema of each option is radically different, 2) they need to be passed most of the way down the call stack easily for each stage of our calculation and report generation.

It works fantastically well, and don't let anyone tell you that you MUST bloat the CLI interface of your program with every possible dial or lever it contains. We should all be cogent of the fact that, in this very young and rapidly evolving profession, textbook and real-world best practice often do not overlap, and are converging and diverging all the time.

comment 11mo ago · link · parent

Precisely what I was going to say. As domain specificity increases, LLM output quality rapidly decreases.

comment 11mo ago · link · parent

And so the size of your data structures matters. I'm processing lots of data frames, but each represents a few dozen kilobytes and, in the worst case, a large composite of data might add up to a couple dozen megabytes. It's running on a server with tons processing and memory to spare. I could force my worst case copying scenario in parallel on each core, and our bottleneck would still be the database hits before it all starts.

It's a tradeoff I am more than willing to take, if it means the processing semantics are basically straight out of the textbook with no extra memory-semantic noise. That textbook clarity is very important to my company's business, more than saving the server a couple hundred milliseconds on a 1-second process that does not have the request volume to justify the savings.

comment 11mo ago · link · parent

This is neat and I wish C3 well. But using Nim has shown me the light on maybe the most important innovation I've seen in a native-compiled systems language: Everything, even heap-allocated data, having value semantics by default.

In Nim, strings and seqs exist on the heap, but are managed by simple value-semantic wrappers on the stack, where the pointer's lifetime is easy to statically analyze. Moves and destroys can be automatic by default. All string ops return string, there are no special derivative types. Seq ops return seq, there are no special derivative types. Do you pay the price of the occasional copy? Yes. But there are opt-in trapdoors to allocate RC- or manually-managed strings and seqs. Otherwise, the default mode of interacting with heap data is an absolute breeze.

For the life of me, I don't know why other languages haven't leaned harder into such a transformative feature.

comment 11mo ago · link · parent

Great! We can start trading with each other in stock notes. I can't wait to buy my next round of groceries with a 0.1 SPY note! The ones I don't use will pay dividends!

comment 11mo ago · link · parent

You've described Nim, Chicken, and Jank. Partially what I meant by "leaps made by native-compiled languages".

comment 11mo ago · link · parent

Positive downstream effect: The way software is built will need to be rethought and improved to utilize efficiencies for stagnating hardware compute. Think of how staggering the step from the start of a console generation to the end used to be. Native-compiled languages have made bounding leaps that might be worth pursuing again.

comment 11mo ago · link · parent

Proton is a single build target, and it's just the Windows build target.

comment 11mo ago · link · parent

I was going to say. This is pretty easily achievable with a Typst template and script, which can even parse YAML.

comment 11mo ago · link · parent

Obvious is good. Optimization can come later. Cleverness is for when you are out of options.

The programming landscape 30+ years ago and its severely constrained resources strongly biased our idea of "good software" in favor of cleverness. I think we can say we know better now. Having been responsible for picking up someone else's clever code myself.

comment 11mo ago · link · parent

Precisely, and I'm saying there is no other good plan. If the cost of defending democratic values worldwide is starting WW3, we simply can't defend democratic values worldwide anymore.

comment 11mo ago · link · parent

"You don't get your best performances by trying harder" is just another way of saying that our talents come so naturally that they don't feel like work.

Does that mean that if you're trying, you're fighting a losing uphill battle against something you'll never excel at? I think many skills are learned and must be earned with discipline. But the culture places excessive weight on excelling in specific fields that most people simply can't brute-force. Hence the prevalence of chemical assistance at the highest ends of productivity, intellectual competition, and athletics.

We probably need to place more emphasis on doing things that come naturally to us. Emphasis on doing. But also enjoy downtime and not-doing occasionally.

comment 11mo ago · link · parent

I treat extensions like they're all capable of privileged local code execution. My selection is very vetted and very small.

comment 11mo ago · link · parent

So then what use is any other approach than simply letting it happen? Words are just that. If violence is out, then the only other approach is escalating the trade war and Chinese isolation, at great cost.
12345
19