Better HN
topnewbestaskshowjobs
Log inSign up

netbioserror

1,519 karma · joined Mar 15, 2023 (3y ago) · 544 submissions

Submissions

comment 1y ago · link · parent

True, but I think errors in real-world modeling logic are part of our primary problem domain, while managing memory and resources are a secondary domain that obfuscates the primary one. Tools such as exceptions and contract programming go a long way towards handling the issues we run into while modeling our domains.

comment 1y ago · link · parent

There's a way I like to phrase this:

In C and C++, it's easy to write incorrect code, and difficult to write correct code.

In Rust, it's also difficult to write correct code, but near-impossible to write incorrect code.

The new crop of languages that assert the inclusion of useful correctness-assuring features such as iterators, fat-pointer collections, and GC/RC (Go, D, Nim, Crystal, etc.) make incorrect code hard, but correct code easy. And with a minimal performance penalty! In the best-case scenarios (for example, Nim with its RC and no manual heap allocations, which is very easy to achieve since it defaults to hidden unique pointers), we're talking about only paying a 20% penalty for bounds-checking compared to raw C performance. For the ease of development, maintenance, and readability, that's easy to pay.

comment 1y ago · link · parent

Never quite understood the color spectrum complaint, most of the incandescent bulbs I've ever seen are astoundingly red (low temperature), while I've always gotten the greatest color accuracy in my spaces from daylight-temp LEDs.

comment 1y ago · link · parent

Article II of the Constitution exists and you can read it anytime:

https://constitution.congress.gov/constitution/article-2/

In short: Job protection for executive employees defeats the entire point of an executive that is accountable to the people. Major magistrate positions are subject to Senate approval before being vested authority, but they are appointed and serve at the behest of the president, who literally embodies the executive.

comment 1y ago · link · parent

And we definitely know it did exactly what it says...

comment 1y ago · link · parent

I love me some board games, but I prefer depth and decision space to complexity -- and the industry is dominated by stupendously complex beasts full of unnecessary mechanics that slow things down or extend setup without adding too much. A perfect example is TI4's expansion Prophecy of Kings, nearly all of which I despise for bloating a beautiful base game. I'm also always flabbergasted by how starved and railroaded I feel in games like Dune Imperium or Cole Wehlre's collection. Despite a wealth of mechanics, my choices are few and far between.

Complexity has its place, especially for engine builders like Terraforming Mars where complex interactions are the point. Many designers seem to be throwing in the kitchen sink arbitrarily. We're in a "bigger is better" paradigm.

comment 1y ago · link · parent

Honestly hard to say. There are a number of styles of architecting Nim libraries and programs, and almost none match my own. My most particular criticism of the Nim ecosystem is the abuse of macros: There are a number of libraries implementing huge chunks of functionality behind macros such that code paths only appear at compile time and are not reflected in sources. Some libraries constrain macro use, but many are built entirely out of macros. I'd say to avoid looking to those examples.

comment 1y ago · link · parent

Typora is the best I've used. It's a GUI, but it's pretty fantastic for a GUI Markdown editor (especially an Electron one), and its PDF export is consistent and customizable with styles. Includes a few good ones out of the box. Plus an automated TOC.

comment 1y ago · link · parent

Nim. Fantastic choice for modern headless software. Simple obvious type system, preference for immutability and referential transparency. Dynamic collections are by default managed by hidden unique pointers on the stack. So the default RC isn't necessary unless explicitly invoked for a ref type.

Currently solo managing a 30k line data analysis application I built for my company. Easily fits in my head given the obvious pyramidal functional-like structure. Maybe two lines of memory semantics anywhere in the entire thing, and only one module that's OO with a constrained scope. Lots of static data files (style sheets, fonts) slurped up as const strings at compile time. Incredible performance. Invoked by our PHP server backend, so instead of doing parallel or async in the analysis, the server gets that through batch invocation.

Working stupid well for our product, plus I can easily compile binaries that run on ARM and RISC-V chips for our embedded team just by invoking the proper gcc backend.

Replaced an ailing and deliberately obfuscated 20 year old jumble of C and PHP designed to extort an IP settlement from my company. Did it in a year.

comment 1y ago · link · parent

Electricity finally made some sense to me when I wrote down the basic high school electricity equations and derived the basic energy and charge units from them.

That's how I finally understood that power is energy rate (Joules per unit time), current is charge rate (electrons per unit time), and voltage is energy per unit charge (Joules per electron). Voltage makes a lot more sense as the excitation of electrons; them wanting to jump gaps and go to a lower energy place feels more intuitive in that framing.

comment 1y ago · link · parent

Based on what I've seen of Sabine, virtually all of this post is lies. She regularly positions herself as an outside skeptic and critic. Do you have any examples or her claiming authority or representing consensus?

comment 1y ago · link · parent

I fractured my elbow mountain biking, the tip of my radius. The urgent care doctor gave me a sling and suggested months of immobility. The orthopaedic said to throw away the sling and start exercising the elbow as soon as I could, and prescribed PT. Turns out that was the right move, there are some permanent changes to mobility but it's about 97% what it was before the crash. Immobilizing joints can apparently cause the muscles, tendons, and nerves to seize up and lose significant range of movement permanently.

comment 1y ago · link · parent

Does replacing a completely unsalvageable legacy project count? It's done and dusted at this point, but I replaced a C/PHP codebase written by an IP-trolling freelancer who kept project sources as his personal IP, won back after a legal settlement. It was all deliberately obfuscated single letter naming and misdirected logic paths, along with a heavy reliance on global state. Investigating any individual part was manageable, thankfully, but I still had to unwind a great many useless stack frames and reverse-engineer several intense procedural bit-logic algorithms.

comment 1y ago · link · parent

For Janet fans, there's janetsh (https://github.com/andrewchambers/janetsh). Seems very elegant indeed.

comment 1y ago · link · parent

Maybe because the products suck and there are very few business models for software? I'm gonna focus on the software product segment, and my evaluation might be flawed, but I think that software is an inherent race to the bottom for three important reasons:

1) Dependence on proprietary software is at best a short-term support boon, and in the majority of cases a crippling liability when the vendor changes support terms or goes under (personal experience talking).

2) Open source software is a slow but inevitable creep towards feature-matching and quality that has borne ample fruit already.

3) As ephemeral information with near-zero material cost other than labor, software finds most low-hanging fruit quickly, while higher-hanging fruit attract the formation of non-profit foundations to continue development; there just aren't many more interesting software products to offer.

Working business models in the tech industry seem to revolve around the provisioning of hardware because buying software just isn't an appealing proposition to customers in most cases.

Sure, LLMs are interesting software, but they're a perfect demonstration: Open source LLMs already exist and gather huge momentum when released; the field is still so new that novel and efficient solutions are not the exclusive realm of proprietary research; and because of these factors, business models can't revolve around interesting model capabilities so much as provisioning the hardware they run on.

comment 1y ago · link · parent

>For tasks that tend to scale well with increased die area, which is often the case for GPUs as they're already focused on massively parallel tasks so laying down more parallel units is a realistic option, running a larger die at lower clocks is often notably more efficient in terms of performance per unit power.

I should've considered this, I have an RTX A5000. It's a gigantic GA102 die (3090, 3080) that's underclocked to 230W, putting it at roughly 3070 throughput. That's ~15% less performance than a 3090 for a ~35% power reduction. Absolutely nonlinear savings there. Though some of that may have to do with power savings using GDDR6 over GDDR6X.

(I should mention that relative performance estimates are all over the place, by some metrics the A5000 is ~3070, by others it's ~3080.)

comment 1y ago · link · parent

A lot of commentators have pointed out that Intel is reaching nowhere near the performance/mm2 of Nvidia or AMD designs, though contrary to what I thought that might imply, it seems that power consumption is very much under control on Battlemage. So it seems the primary trade-off here is on the die cost.

Can anyone explain what might be going on here, especially as it relates to power consumption? I thought (bigger die ^ bigger wires -> more current -> higher consumption).

comment 1y ago · link · parent

Was the Patriot Act patriotic?

comment 1y ago · link · parent

Context provided by the vaunted journalists at Politico, I'm sure.

comment 1y ago · link · parent

The reigning liberal ideology foundationally believes that federal spending is existential to every individual. They have no concept of how little it matters to most people. Or how much is actually in the hands of states, counties, and municipalities. It's deep into delusion territory.
1
678
19