Better HN
topnewbestaskshowjobs
Log inSign up

netbioserror

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

Submissions

comment 11mo ago · link · parent

Where do you draw the line on this logic? Should we never inline or unroll and only warn? Should we never re-order and only warn? The CPU is doings its own re-ordering and that can't be manually controlled, should we pick instructions to force ordering and warn?

I can understand if we'd want to emit perfectly matching control flow logic with certain debug flags to verify correctness in specific scenarios. But I'd want it to be opt-in.

comment 1y ago · link · parent

I personally got one of those jobs at a smaller, "non-tech" (read: engineering) company, quite close to where I grew up. Got to pick my language and tools, have ownership of my slice of the product, live a very comfortable and flexible 9-to-5 where they gave me the room to do my best work. Pays maybe half of the typical inflated tech salary. But I'm doing well for myself.

My only issues at this point are 1) my life has bucket list things to check off that have nothing to do with work, 2) I'm running out of super interesting things to work on and entering a sort of maintenance mode on my program, 3) the old guard, who were all retirement age, are checking out for a new generation, with a new direction.

So all that being said, I've been looking for work far afield in places closer to my bucket list items. Hopefully, I can find another smaller, specialized company that needs a programmer with my skillset, because this experience has been fantastic.

comment 1y ago · link · parent

Couldn't cell or Starlink substitute in this day and age? 5G cells are pretty prolific now. So even if you might not want to actually leave, it's a perfectly good threat and functions as competition in their eyes.

comment 1y ago · link · parent

Would be interesting to see what sorts of motile creatures could descend from mosses in a few hundred million years.

comment 1y ago · link · parent

I greatly look forward to the day when the Godot team focuses on UI tools and workflow, a layout and theming engine, and slim UI-focused builds. So we can avoid this total nonsense local-server React-UI insanity. This is such a stupid way to build desktop applications.

comment 1y ago · link · parent

You might be right. Though with the way I design software, I'm rarely passing managed objects via moves to unrelated scopes. So usually the scope that calls the destructor is my original initializing scope. It's a very functional, pyramidal program style.

comment 1y ago · link · parent

Most of the performance penalty for the languages you mentioned is because they're dynamically typed and interpreted. The GC is a much smaller slice of the performance pie.

In native-compiled languages (Nim, D, etc), the penalty for GC can be astoundingly low. With a reference counting GC, you're essentially emulating "perfect" use of C++ unique_ptr. Nim and D are very much performance-competitive with C++ in more data-oriented scenarios that don't have hard real-time constraints, and that's with D having a stop-the-world mark-and-sweep GC.

The issue then becomes compatibility with other binary interfaces, especially C and C++ libraries.

comment 1y ago · link · parent

Who is "we"?

comment 1y ago · link · parent

Modularity is how we put out some long-running fires at my company. Our old infrastructure, from people who had long-since left, was a cross-cutting mish-mash of monoliths that each tried to do everything. Data analysis to web serving to PDF generation. Written in everything from C to Perl to PHP to VBA. All were supported because different clients depended on different monoliths depending on when they were brought aboard. Basically, each language was intended to serve on whatever walled-garden platform any given employee or client was expecting to use it. They didn't even talk to each other, reimplemented the same algorithms, it was a mess.

We spun out the specialized tasks (data analysis and PDF generation key among them) to native-compiled binaries or containerized packages like Gotenberg, started moving data around between modules via JSON, isolated the legacy monoliths to containers, unified on our now-modularized PHP backend, and have been working on updating or replacing any other pieces with new modules that can serve the task better. Our clients and non-engineering employees get antsy, but as a smaller company and a smaller programming team, we simply cannot maintain multiple 20-year-old codebases with near-total overlap. It makes no sense now, it didn't make sense when they were each created.

comment 1y ago · link · parent

I finished the rewrite in just a few months and have been happily maintaining it for two years and extending it with powerful features it never had before, partially thanks to optimized native binary speed, partially thanks to the ludicrous compatibility of a musl-libc static binary. The rewrite is the backend foundation of a web product stack that is best-in-category.

I didn't choose Nim because I was an evangelist; I had only toyed with it twice before. After much evaluating (and wrestling an ultra-frustrating previous attempt at a Rust rewrite my predecessor had tried), Nim surfaced as the best tool for the specific job. And it still is. It doesn't have to be our entire product stack; it's doing a small subset of very important jobs, doing them well, and is invoked by other languages that do their jobs better as web servers and such. A modular stack helps each language and tool shine where it works best.

comment 1y ago · link · parent

Throwing my hands up and moving to Nim was downright easy next to the excessive effort I put into trying out Nuitka, Numba, and PyInstaller for my use case. If you want static compilation, use a language and libraries built with that assumption as a ground rule. The herculean effort of building a half-compatible compiler for a dynamic language seems like a fool's errand, and would be a fun curiosity if so many people hadn't already tried it, especially with Python.

comment 1y ago · link · parent

Location: Tampa, Florida

Remote: Yes

Willing to Relocate: Yes

Technologies: Python, Numpy, Pandas, SciKit, PyTorch, Matplotlib, Nim, Datamancer, C, Linux, GCC cross-compilation w/ musl-libc (ARM, RISC-V), gnuplot, LaTeX, Typst, Clojure, JavaScript/TypeScript, HTML/CSS, PostgreSQL

Resume/CV: https://mega.nz/file/NOBCkDgT#zjEmVYv9WuoYti7xPxUJkrOPC2v-dQ...

Email: nervecenter7@gmail.com

I'm a Master's in CS, and a primarily backend software engineer focusing on mathematical & data analysis, currently specializing in vibration, signals, and sensor analysis, as well as data visualizations. I recently reverse-engineered and from-scratch rewrote an obfuscated backend analysis codebase, resulting in a maintainable, readable, concise, well-documented system.

I have some past experience building backend web services with Clojure, Postgres, and Datomic, and more recent experience making local frontend GUI tools with TypeScript.

I'm a strong advocate of FOSS tools, powerful pragmatic languages, modular technology stacks, and simple solutions. All directly informed by experience with how proprietary languages & libraries, monolithic stacks, and clever programming wizardry result in systems that are brittle and crash-prone, expensive or impossible to maintain, and difficult to defend to clients and courts.

comment 1y ago · link · parent

This code style is psychotic. I had to reverse-engineer and verify a C codebase that was machine-obfuscated and it was still clearer to follow than this. Increasing clarity through naming is great, but balancing information density is, dare I say, also a desirable goal. Compacting code rapidly diminishes returns once you're relying on a language having insignificant whitespace.

comment 1y ago · link · parent

Metaprogramming is writing programs that generate programs. It's been around since the beginning of programming languages. I'm still not sure what you're trying to dunk on me with here.

comment 1y ago · link · parent

Nim, for one. It has an incredibly powerful macro and template system. But other languages with similar macro power include Elixir and Julia.

D has a generic system similar to Nim's, and a mixin system similar to Nim's templates, but doesn't have a powerful AST-manipulating macro system like the above languages.

comment 1y ago · link · parent

Metaprogramming isn't exactly new. I guess the novelty is that its history in the systems language space is spotty, and has only recently become usable in the way a Lisper might want to use it.

comment 1y ago · link · parent

In practice, it means that unlike most native-compiled languages, if you want a data-oriented approach without having to worry about system details at all, you can do that. Your program will still be strongly typed, but you're not obligated to worry about allocation, reference vs value semantics, ownership, or initialization details. For programs that shouldn't have to worry about those details, the Nim team has done a lot of work to make sure the language gets out of the way and lets you process data. Then, you get a fast binary comparable to the results you'd get from C++ (with a lot more effort).

In buzzword-speak, it's easy to write programs composed of nearly pure business logic while getting C++-level performance.

comment 1y ago · link · parent

It doesn't seem as exciting as those because it doesn't have a whiz-bang-pow killer feature (other than very robust metaprogramming), but it's very mature, and breezy to write high-performance software.

comment 1y ago · link · parent

It's also not a huge issue in most cases because the default is stack-managed pointers passed around by value. So effectively automatic invisible unique pointers. You can construct whole programs without ever touching the `ref` keyword. I've done this in a live commercial deployment.

comment 1y ago · link · parent

First-gen 50-year-old open source suffers from a first-mover problem of not knowing how people will use the thing. Thus, 50 years later, we end up with multiple-gigabyte distributions and messy, inconsistent syntactic approaches to hack together what people want and need.

Typst has 50 years of accumulated TeX experiences to learn from, and fit everything people actually want to use into a 45M binary, and maybe you'll download a few dozen K of package scripts.

I have used it for much more than academic publishing (book, brochure, and even card layout) and it's hands-down the best tool ever made for producing documents of any imaginable kind. Procedurally producing layouts from first-class JSON and CSV support is bliss.

comment 1y ago · link · parent

I'm becoming acutely aware of the first-mover problem in open source software: Nobody truly knows how the software is going to be used in half a century. And once that time is past, the accumulated tech debt of the first-generation tool should probably just be thrown out entirely, for a new second-generation tool that easily does what people have shown they actually want do with it.

I've been using Typst for work documentation and hobby authorship. It is unreal how powerful it is out of the box, with no plugins. It's a Turing-complete programming language where you can switch between a code context and a document context with a simple change of brackets. Everything you WISH Latex did out of the box, it does. Highly recommend the VSCode plugin with live PDF generation and automatic scrolling.

comment 1y ago · link · parent

Unenforceable tripe. Do not comply.

comment 1y ago · link · parent

I like KDE, but every time I use it as a daily driver, I again run into all of those little issues that make it frustrating over time. Little breakages, weird Qt dependency hell, the works. I came to Mint because Cinnamon really has been built with being bomb-proof as the highest priority. The details are sweated, and the feature set is lean, so they can really focus on quality.

comment 1y ago · link · parent

I have a Zephyrus G14 and have experienced these issues. Audio crackling, lots of stuttering when playing back video on the iGPU. Throttling has been less of an issue for me. I'm on Linux Mint, so the problems are definitely BIOS related and not OS-dependent. Stuttering continued even after I manually expanded the iGPU's available memory pool in the AMD kernel settings.

The laptop was a nice deal on fire sale, but I guess I get what I pay for.

comment 1y ago · link · parent

We should probably be making widget toolkits for the Canvas and using WebSockets for communication. DOM manipulation is a total hack-job. It's somewhat flexible, but the performance and dark-pattern cost is just too great. If you're making an interactive application, then treat it like an application and draw widgets to a canvas.

comment 1y ago · link · parent

Precisely this. For all the (woefully young) science about brain development and maturity, it doesn't seem to stop for quite a while, and my late 20's and early 30's have been the most interesting time of reflection and self-appraisement I've had.

It's becoming clear to me that what we call a "mid-life crisis" is probably just Jung's self-actualization, where a person becomes aware they've been wearing a mask to some degree until then. It seems most people find a way to drop it, stop doing what they don't want, and start doing what they do want. Hence the development of grumpiness, divorces, moving far afield, buying sports cars, becoming ascetics, whatever it is that reflects a truer identity than their young selves that satisfied expectations and chased approval.

I've found that the people I know who naturally reject molds and masks while young and pursue what they want early on don't seem to go through this.

comment 1y ago · link · parent

I don't dismiss new things off-hand. I explore them until I'm sure that initial distaste is real. And I definitely don't bash my head against them over and over, to the point of wasting time. We are not obligated to like anything on anyone else's account.

comment 1y ago · link · parent

So you're lying to yourself to fit in instead of exploring the wider world to find undiscovered potential interests that bring you joy. I used to be like that. The earlier you stop, the more content you'll be. If you're worried that you might have bad taste, you're only thinking about how you're perceived by others, not about using your short time on Earth wisely.

comment 1y ago · link · parent

You've never discovered something and felt the indescribable, joy-inducing draw of its appeal? Listened to some music and immediately jived with it? Blaming familiarity bias and "old man yells at clouds" is a disappointingly small-minded critique. It's the opposite: I've lived long enough to thoroughly experience the joy of newly discovering something that feels like it fits me perfectly; conversely, I've tried to appreciate other things enough times to know never to waste my time trying again. Especially for the sake of others.

I've learned that liking things behaves a lot like attraction. It has no reasoning or logic, it happens organically, and when you know, you know. Thus, I would never deign to pretend to like something I've found I don't.

comment 1y ago · link · parent

Actively trying to like something is already a sign that you don't like it intrinsically. Continuing to try strikes me as...some expression of over-socialization. It's okay to pursue things you actually like for your own sake.
12345
19