Better HN
topnewbestaskshowjobs
Log inSign up

lazulicurio

599 karma · joined Dec 7, 2016 (10y ago) · 205 submissions

Submissions

1.

All 13,000 employees of NOAA are receiving spam emails(old.reddit.com ↗)

6 points · by lazulicurio · 1y ago · 4 comments

comment 2y ago · link · parent

This is a huge shame. Ondsel brought much-needed focus to the freecad development process.

I hope that with them gone the project doesn't revert to the mindset of "everyone gets their own fiefdom (workbench) to manage" that's resulted in instabilities and fractured user experience in the past.

comment 2y ago · link · parent

Just to start, I want to acknowledge that the problem space is tremendously complex; the FreeCAD developers have put in a lot of effort and it's amazing that a project like FreeCAD exists at all.

Not trying to disrespect the other FreeCAD developers, but it seems like things have improved remarkably since ondsel started taking a more active role.

The project seemed to exhibit a (common) impulse to prioritize extensibility too much. The "workbench" architecture and python API let you do some really neat stuff if you're willing to dig into the weeds. But, from the perspective of a community outsider (so take it with a grain of salt), the development process seemed to be a good example of Conway's Law in action. The workbenches let everyone have their own sub-projects to manage without stepping on each other's toes. This led to a lot of resulting complexities, inconsistencies, and instabilities, which made the approach a net negative (imo) in terms of tradeoffs.

With ondsel, there's been more focus on holistic improvements and getting the individual modules working together more smoothly, which I greatly appreciate.

comment 2y ago · link · parent

Seconding the plug for sh3d. And the source is relatively accessible if you want to make modifications---I patch my personal copy to allow zero-height walls and floors which can make doing more complicated geometry easier.

comment 3y ago · link · parent

Does the mozilla ppa provide the www-browser metapackage?

If not, you might run into [this bug](https://old.reddit.com/r/linux4noobs/comments/uj58i5/psa_fix...)

FWIW my solution was using equivs to create a dummy package to satisfy www-browser and installing that.

comment 3y ago · link · parent

Are you on linux? For a while I've been running into issues with FF where it will randomly halt repainting after switching tabs. The process is clearly still responding to keystrokes and mouse events, but the ui is mostly frozen.

I've also been running into an annoying issue where hover menus will randomly stop working---it seems like the mouseout event is firing before the click event is handled.

But all in all not annoying enough to switch.

comment 3y ago · link · parent

Yeah, having equals and hashCode on the root Object class is Java's biggest mistake, IMO. Although for a slightly different reason: equality is usually context-dependent, but having equals as an instance method ties you to one implementation.

comment 3y ago · link · parent

It's a tad more verbose, but I assume the simplest way would just be to use a standard closure.

    void log(Supplier<? extends String> messageSupplier);

    log(() -> log.info"User is \{someExpensiveFunction(user)}");
The pattern of using Supplier to provide a lazy argument is pretty well-established afaict.

comment 3y ago · link · parent

To be somewhat glib, let me coin "lazulicurio's law":

The only way to have the option to have your preferences met in a large and mature enough market is to be completely price insensitive.

comment 3y ago · link · parent

Irrational investor expectations in a self-reinforcing feedback loop with economic policy decisions driven by core underlying beliefs that speculation can't destroy productive growth (i.e. if you create a bubble that pops, you'll still be net-positive compared to before the bubble) and that speculation is the best way to create growth in a population-constrained market.

comment 3y ago · link · parent

> but the Senate may propose or concur with amendments as on other Bills

Of course, this is a loophole big enough to sail a cruise ship through. And the Senate takes full advantage of that loophole in practice.

comment 4y ago · link · parent

imo it seemed like there was this phase of "if we pretend null doesn't exist maybe it will go away" that resulted in a bunch of design issues. Beyond Optional, the other big one to me is Map.compute/Map.merge, which subtly breaks the previous interface contract for Map. As annoying as null is, I'd rather have null than have broken apis.

comment 4y ago · link · parent

If you're entering into a webpage, your best bet may be a different scanner. Virtual COM generally ties it to native applications (website COM interfaces are possible, but I'm assuming the website isn't yours to modify).

Another possibility is writing a native app that works like a shim: reading from the COM port and using APIs (e.g. SendKeys on Windows) to re-transmit the characters as keystrokes. But the most robust solution is probably a different scanner.

comment 4y ago · link · parent

Do you have the scanner set up as a keyboard wedge (USB-HID)? From your description, it sounds like it. Usually when dealing with control characters it's easier to put scanners in virtual COM mode. Although using them as a COM device does carry its own set of issues. I'm more familiar with honeywell and cognex scanners, but quickly browsing the realinn documentation I don't see a character replacement functionality.

comment 4y ago · link · parent

A big part of this is investors demanding financializaton. Unless you're in a sector that investors have decided is a "growth" sector, it's all about capital efficiency and headcount and how much "fat" you can trim. See, for example, the recent gas price situation. Companies are far more worried about becoming overcapitalized than they are worried about losing out on some sales volume.

comment 4y ago · link · parent

The default actually depends on project language IIRC. C# has overflow checking disabled by default, VB.net has it enabled by default. Not sure about F#.

comment 4y ago · link · parent

To be slightly pedantic, C# gives you the option to throw an exception in that case (with either checked blocks or setting the CheckForOverflowUnderflow compiler flag to true), but the default behavior is to allow overflow.

comment 4y ago · link · parent

Is there a way to change the output format? I find that "||||||| merged common ancestor" to be very noisy, visually.

comment 4y ago · link · parent

> Try programming for Xamarin, UWP, or anything involving multitargeting.

The complaints in the original article fell rather flat to me, but this is one area where it's absolutely fair to criticize VS. More generally, the reason that build tooling in the .net sphere is such a mess is because of historical baggage from VS.

With that said, if you're coloring within the lines[1], VS is very powerful and productive.

[1] To an extent. There definitely are use cases that are "supported" only in name.

comment 4y ago · link · parent

> Ultimately Microsoft is powerless to stop this except by using their antivirus to block installation of Firefox in the first place

They've already started down that road with s mode, which is default for new installs and not a separate SKU (anymore) that you can avoid.

comment 5y ago · link · parent

Also worth noting that Java may be able to fix it in the future after Valhalla drops (and this may mean better implementation for JVM-based languages too).

comment 5y ago · link · parent

IMO it's more fundamental than the parallelism v concurrency split.

Microsoft in general has a tendency to bolt on functionality in a kinda slapdash manner when another team wants it, so you get a lot of cruft that really doesn't belong in the Task class[1] but is there because someone wanted a way to handle their special case so it just got thrown into Task.

[1] See https://source.dot.net/#System.Private.CoreLib/Task.cs,045a7...

comment 5y ago · link · parent

The way I put it: .NET async makes the easy things easier and the hard things harder.

The problem is that Task/Task<T> was the foundation for async, and it's a bad foundation. Even with the ability to write your own duck-typed awaiters (and the advent of ValueTask), the widespread use of Task means if you're writing async code you're going to have a tough time getting away from it.

comment 5y ago · link · parent

IMO the main issue with modules is that strong encapsulation is actually a bad goal. If the focus was solely on reliable configuration, I think that the transition would have gone better.

WRT why I think strong encapsulation is a bad goal: I've worked extensively in .net where assembly-private members are the norm for core libraries. It has issues. Classes and methods that are theoretically extensible aren't so in practice because core logic is inaccessible.

In the end, encapsulation, no matter how strong, doesn't prevent people from relying on internal implementation details. If the concern is people relying on "internal" APIs, either suck it up and make those APIs public (with all that entails) or come up with a deprecation strategy (or just freeze them and refactor around them).

comment 5y ago · link · parent

A "fun" thing to do if you really want to get a hang of IEEE floats is manually write the algorithms for a bunch of rounding operations (ceil, floor, truncate, half to even, etc).

comment 5y ago · link · parent

Probably so if you bitcast a floating point value into a signed int it maintains the proper sign for comparisons.
1234567