Better HN
topnewbestaskshowjobs
Log inSign up

netbioserror

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

Submissions

comment 1y ago · link · parent

I try to keep it simple, using Make to build, and so have ran into issues with Nimble. The upcoming Atlas is supposed to fix these issues, but I don't know enough about it yet. But I remember running into conflicting name resolution with Nimble when multiple versions of a package were installed; I believe it was trying to choose betweeen a Nim 1.x package version and a Nim 2.x, which are kept in separate Nimble folders (pkgs and pkgs2).

I'm probably going to sit down and give Atlas a try soon, and migrate my dependencies.

comment 1y ago · link · parent

I just use -d:release, along with a bunch of other options related to static compilation with musl-libc. I've tried -d:danger before and the reliability of my calculations went completely out the window. I think Datamancer and Arraymancer are dependent upon some of those checks and guarantees. The --opt flag didn't make enough of a difference in my case.

comment 1y ago · link · parent

I'm the developer of an in-production sensor analysis backend program written in Nim. Our server scripts invoke it on individual or batches of records, so it doesn't continuously run, and we get free parallelism via the shell. I make copious use of Datamancer dataframes. The program is entirely processing logic. I have maybe 3 lines of memory semantic code in 40k lines. I rely on Nim's default behavior, wherein dynamic types such as collections are stack-managed hidden unique pointers treated as value types.

The performance is impressive. I've done some exercises on the side to compare Nim's performance to C++ building large collections along with sequential and random access, and -d:release from Nim puts out results that are neck-and-neck with -O3 for C++. No special memory tricks or anything, just writing very Pythonic, clear code.

Feel free to ask me anything.

comment 1y ago · link · parent

Has anyone tested if the manual safety on the M17/18 has any effect on the interaction chain that leads to uncommanded discharge?

comment 1y ago · link · parent

There are plenty of anthropological, sociological, and philosophical arguments that this is inevitable for any organization. Once visionaries in any organization of any size are gone, the priorities of its members are proportionally dominated over time by simple self-preservation.

comment 1y ago · link · parent

I've built some single-file HTML page tools at work that use newer Web APIs (WebSerial, WebUSB) and essentially utilize the browser as a cross-platform application virtual machine, which is a great way to think about browsers. With WASM compilation, Canvas, and WebSockets, combined with this self-modifying concept where an HTML file is a contained, stateful application that can persist, we've got very interesting possibilities for the future of user-facing applications, both local and fetched remotely. This is probably exactly what some of the visionaries at Google were thinking of when they concepted the Chromebook and Chrome OS.

comment 1y ago · link · parent

For someone who initiated hostility, you're a dismal failure at supporting your arguments. I'm not reading two entire manuals to find the citations you're referring to and should've cited yourself.

comment 1y ago · link · parent

Thanks for courteously linking me to the relevant documents! Very productive and good-natured of you.

comment 1y ago · link · parent

Data structure types. In standard CL and Scheme, data structures are implemented at their base using cons cells, and their interpretation as tables, trees, queues, etc. is up to library functions. Unless I have somehow misinterpreted the selling points of classic Lisps, because Clojure and Janet data structures sell themselves as being not built this way. Clojure makes a different trade-off by building all its data structures off of hash array-mapped tries. But Janet goes out of its way to use efficient and closely-mapped base stores, even if the contained elements are dynamic Janet objects.

comment 1y ago · link · parent

From a compute standpoint I guess I'm wrong. But from a modeling power perspective, I definitely prefer the clarity and uniformity of Clojure's standard library functions. Maybe that has something to do with its distinct data types, maybe not.

comment 1y ago · link · parent

Unfortunately, part of the pragmatic usefulness of newer Lisps (Clojure and Janet) is the abandonment of CAR and CDR in favor of efficient distinct data structure types backed by efficient bases (tries, arrays, arraylists, hashmaps) and a focus on homoiconicity as the winning feature, separated forcefully from the idea of linked lists and CAR/CDR.

comment 1y ago · link · parent

It's a lightweight embeddable interpreter and runtime, similar to Lua. Dynamically and strongly typed, but no native compilation. Easy to call C libraries, or embed into C projects. In my testing, it's roughly twice as fast as Python for similar tasks. You can "compile" a project by embedding scripts and resources with the runtime into a bundled executable.

comment 1y ago · link · parent

This is the solid particles in the ground moving in place. As the wave passes through, any given volume of ground is displaced somewhat. In a balanced low-intensity wave, the soil or rock gets jostled around a bit. In a high-intensity balanced wave, the ground is yanked back and forth, potentially damaging foundations or buildings above the foundation. Particles will be displaced, but not permanently, with a net of 0.

In an unbalanced wave, the earth is permanently displaced in a particular direction. We can measure that net displacement in a particular direction using an anti-derivative if the total average velocity is nonzero (if we included negative velocities around a given axis). Earthquakes, of course, tend to have nonzero net displacement, and thus an extremely biased velocity waveform along a particular axis.

So in fact, the soil beneath you vibrating back and forth at 1 to 5 inches per second is not fun. At 118 inches per second? Catastrophe.

comment 1y ago · link · parent

Terrifying. I program automated vibration analysis for blasting, and a very powerful explosive blast will feature particle velocities (the direct corollary for power) in the single-digit in/s range (~0.02-0.13 m/s) . This peak particle velocity is 20-150x higher than the peaks we see from the most powerful blasts we measure, if they're at all qualitatively comparable.

And of course, the earthquake energy source is many magnitudes larger and much, much further away, deep in the crust, with the wavefront already having passed through miles of solid rock. We measure blasts from at most a few hundred meters away.

comment 1y ago · link · parent

Is it not obvious? Democracies are schizophrenic, where the people and the ruling class are constantly fighting to implement and repeal half-baked bastardizations of their agendas. The best sign that the people have any influence in their government is that there is zero consistent application of anything. Consistency only happens when the democratic element is removed.

comment 1y ago · link · parent

You're assuming perfect assimilation happens. Otherwise you simply have a colony. If the colony outstrips the natives, they change the culture and eventually the governance of a place by right of conquest. Then they can change names and there's no denying it.

States encompass territory, but nations are defined by their people and culture.

comment 1y ago · link · parent

>Do you think person's voting power should be directly proportional to how much they pay in taxes?

Not quite, because that would grant power and influence to the rich that is already quite heavy on account of their wealth and ability to employ constituents. Qualifying voting power by way of being an active payer is, however, absolutely sensible.

>A 16 year old has a much bigger stake in the future of their country than a 70 year old.

They also have nothing to lose. With the least invested in a system's continuation, history is rich with young teenage raiders, conquerors, mutineers, revolutionaries, and rioters. They are the primary demographic with the lowest stake, and have the least concern for any Chesterton's fences. They are also the poorest equipped to make decisions concerning material resources, since utopian idealism is common at that age. They haven't yet suffered or built much at all, and it's easy for them to dismiss the sheer volume of accumulated knowledge, material, and labor that sustains civilization.

comment 1y ago · link · parent

It's simply unwise to distribute power, however minute, to those who don't yet know where their food comes from.

comment 1y ago · link · parent

If you're implying that money printing significantly benefits the generation which instates it and bankrupts everyone who comes after, then I agree. And democracies have a long history of relying on debasement to fund their excesses, a significant factor in their implosions.

comment 1y ago · link · parent

Horrific idea. Those paying into the system should have the strongest stake, not those with elementary ideas and no stake at all (or worse, those dependent upon the system's rewards).

comment 1y ago · link · parent

I used Clojure back in the day and use Nim at work these days. Linking in to C is trivially easy in Nim. Happy to see this working for jank, but C++ is...such a nightmare target.

Any chance of Jank eventually settling on reference counting? It checks so many boxes in my book: Simple, predictable, few edge cases, fast. I guess it really just depends on how much jank programs thrash memory, I remember Clojure having a lot of background churn.

comment 1y ago · link · parent

Being Ubuntu based, I really think Zorin should be combining efforts with Linux Mint. There is quite a bit of work duplicated here. IMO Mint is the prime project; I prefer an ideal form of the core OS to a facade of others. Mint's choices have, as a side-effect, made it rather familiar anyways.

comment 1y ago · link · parent

All of these are the exact reasons I don't go overboard with a custom Vim or Helix setup with all sorts of bells and whistles, and just use stock Sublime. The real problem is never the speed at which I can write code. I need to model a complex problem domain. My choice of language and tools virtually eliminate all boilerplate and focus the effort on those modeling and software design problems. I've tried LLMs multiple times, and each time they've proven they cannot help me.

comment 1y ago · link · parent

Given the gains in tape and hard disk densities in recent years, why can't we revisit floppy disks as a potential long-term archival media for the future? Are they particularly volatile? Would the design of the physical disk case be able to solve for such issues?

comment 1y ago · link · parent

I work at exactly one of these companies. It's been thoroughly refreshing, picking my tools and language, being able to defend my choices and help make new ones, have ownership of my part of the product, and see that all bear fruit going from a product that was on fire and mired in tech debt when I got there, to a smoothly running machine with my code at its heart now.

They definitely can't pay inflated Silicon Valley salaries, but I'm also at much less risk of getting that pink slip when some far-off executive decides I'm extraneous. I'm two hops from the company CEO, and even though I haven't met him, he's quite aware of my contribution and has requested projects for my skillset. I have direct lines to most of the executive engineers. That's gratifying.

comment 1y ago · link · parent

This is what happens when interest rates are artificially suppressed. "Buy-now-pay-later" would not exist if the market were able to properly price the time value of money and wasn't backstopped by the Fed and nil reserve requirements.

comment 1y ago · link · parent

Been on Linux for 13 years now, and recent Mint releases really are as close as we've gotten to a "set-and-forget" operating system that...just works. Switchable graphics, power profiles, night colors, a consistent and stable updater, sensible defaults and options...

Microsoft really stumbled upon gold when they designed Windows 7, and fumbled it because investors always need novelty for growth. Mint just picked up the ball and kept running.

comment 1y ago · link · parent

And an extraordinarily cheap psyop at that. If all it costs is 1) a rambling web page full of word vomit, and 2) an actor playing an enraged talking head for a 3 minute segment on cable TV about the word vomit webpage...you've got an almost infinitely scalable propaganda scheme. Pump it up, and you've confused everyone's sense-making right up until collective effort is made to filter the well poisoning. At which point it's easy to identify and suppress competent opposition.

Fifth generation warfare is so staggeringly cheap next to previous generations, it can be fought indefinitely. It requires literally every person, in every country, everywhere on Earth, to be constantly vigilant, wary of everything they read and hear and see. Maybe that forces us to collectively sharpen our mental knives over time. Who knows.

comment 1y ago · link · parent

I've tooted this horn for a while now. Poison the well using UFOs, flat Earth, and fake Moon landing. Lump in and associate ALL distrust of government with the well-poison theories. Socially ostracize all mistrust of government. Tada, power and influence on the cheap.
1
456
19