Better HN
topnewbestaskshowjobs
Log inSign up

giaour

3,849 karma · joined Sep 12, 2013 (13y ago) · 1,555 submissions

Submissions

comment 3y ago · link · parent

> Perhaps shipping the entirety of the server code

I believe you're describing Blazor: https://learn.microsoft.com/en-us/aspnet/core/blazor/?view=a...

comment 3y ago · link · parent

Fortran, maybe?

comment 3y ago · link · parent

Terraform also needs to detect when a resource is removed from a template. Having a state file makes this easy (if something is in the state file and not the template, delete it); otherwise, you have to scan your whole infrastructure (and still risk deleting something that was never managed by terraform in the first place).

comment 3y ago · link · parent

I think you're technically correct, but "low" and "high" are often just used as shorthand for "what temperature it will be in the morning" and "what temperature it will be in the afternoon," respectively. A weather app may just be reporting the expected temperature at 8 AM and 3 PM, even if there are lower lows or higher highs at some other part of the day.

comment 3y ago · link · parent

Yeah, I always assumed their relative rarity in grocery stores was because they're labor-intensive to prep and butcher. Same as with small fowl like quail and squab.

comment 3y ago · link · parent

Most grocery store butcher counters would be able to order some for you if you ask, but they're unlikely to have any on hand if customers aren't already buying it off the shelves. In a lot of the US, people who would want mutton are already going to specialty shops to pick up meat and imports; where I live (in northern Virginia), there are a couple of halal butcher shops within walking distance that always stock lamb and mutton, and the grocery stores in the same area might stock lamb (usually French cuts) but never carry mutton or goat.

comment 3y ago · link · parent

I thought e-ink used magnetically charged pixels, which would necessitate some ferrous materials.

But it looks like this was just an old rumor? https://www.mobileread.com/forums/showthread.php?t=14152

comment 3y ago · link · parent

It happened a couple of days ago in northern Virginia. It was rainy in the afternoon, which brought the high down.

comment 3y ago · link · parent

We seem to be making some variations of the same point here. The implication I was trying to draw out is that in GGP's "natural" aristocracy, there is a separate power structure that maintains that society's shape. That means that the "natural" aristocracy is neither natural nor an aristocracy, since it is artificially maintained and is subordinate to the separate power structure.

comment 3y ago · link · parent

> It is important, indeed essential, to discriminate: to prefer the smart and virtuous over the dumb and selfish.

This sounds reasonable at first glance, but I would challenge you to describe a society in which the "smart and virtuous" are elevated over the "dumb and selfish" that does not rely on an external power structure to enforce this hierarchy.

One conceit of a "natural aristocracy" is that it should be self-organizing. In practice, we know that this process will ultimately prize traits that consolidate power. Some people are stronger than others, some are willing to use physical strength to bully others, and those who are in both groups will rise to the top of a "natural aristocracy" that prizes brawn.

comment 3y ago · link · parent

> Isn't this kinda redundant? science-fiction is already fiction, it's in the name.

This is nit-picking the specific example rather than engaging with the GP's point. There are definitely genres that span the fiction/non-fiction divide (like romance, horror, politics, judaica, and many more). Interestingly, hierarchical systems used by libraries tend to ignore genre. The Dewey Decimal system doesn't classify literature by genre but instead by language, though some overarching genres (drama vs poetry) are treated as subcategories of language (e.g., German poetry is 831, French poetry is 841), but only for major European languages.

comment 3y ago · link · parent

Make that C++ developer's day by pointing out that YAML does support inheritance: https://dmitryrck.com/how-to-use-inheritance-in-yaml-files/

comment 3y ago · link · parent

I'm not using the formal definition here -- I meant that there are programs you can write in other mainstream programming languages that just can't be expressed in COBOL due to limitations on recursion.

The COBOL spec doesn't allow recursive "paragraphs" (functions), though some implementations support it. (This may no longer be the case, or this limitation may have been specific to the language version used at my job.)

The main limitation is I/O, though. You typically use JCL to indicate what files/DBs a program will run against, and I recall that everything that touched the network was written in Java and called from JCL (whether this was because networking libraries don't exist in COBOl or because those that do are terrible, I couldn't say).

comment 3y ago · link · parent

I had to deal with a bunch of mainframes in a previous job and tried to learn a bit of COBOL. One interesting thing I learned early on was that programs are almost never written exclusively in COBOL. The language isn't Turing complete (by design), so a significant portion of a program's logic will be captured in the JCL (Job Control Language) script that configures how the program will run and orchestrates multiple programs.

comment 3y ago · link · parent

> And I know about the Shadow Brokers. Not personal information.

"Tools and methods" are in fact considered more sensitive than any personal information in the IC. The system you're proposing presumes the existence of at least one unhackable organization, and I regret to inform you that there is no such thing.

comment 3y ago · link · parent

> in reality mass leaks of private data have never been an issue.

This is just wildly untrue. The 2015 OPM hack (in which an APT stole security clearance records) was a mass spill of private data. The Shadow Brokers leak put the NSA's most sensitive tools on the public internet for anyone to download. And of course we might never hear about collected intelligence that had been purloined by an adversary in the course of an offensive cyber operation.

comment 3y ago · link · parent

I was the primary maintainer for one of the services they asked about, and I still got that question wrong. 4/20 for me, but three were lucky guesses

comment 3y ago · link · parent

There are a few exceptions in US law (e.g., provisions in the Defense Production Act) that can allow a patent owner to be compelled to license their IP. IANAL but I believe this generally requires an officially declared emergency of some kind.

comment 3y ago · link · parent

Under the model you're proposing, would I potentially need to download an old copy of Excel because the sheet I'm trying to load relies on an older python runtime?

comment 3y ago · link · parent

> Many languages that are considered "precision" languages have some form of suffix to denote large/long/arbitrary-sized literals. (C# there's a big useful difference if a literal ends with `m` or `l`.)

The failure mode is significantly different when comparing JS to other mainstream languages. Most languages have a "checked" mode (either opt-in or mandatory) so that expressions like `4611686018427387904 + 4611686018427387904` can raise an error, whereas JS will just give you the wrong answer. Python is the most ergonomic for beginners or non-developers because the runtime will convert an integral type to an arbitrary precision integer on overflow.

Yes, there are alternative primitives that can be used, but you need to know they exist. We're talking about a tool that is explicitly designed for people who are not professional programmers, and JS's behavior here is surprising unless you understand the underlying data model. I would personally much rather give beginners a tool incorporating as few footguns as possible.

> JS is a language with the tools today to do precision arithmetic (whether you like it or not)

Arbitrary precision arithmetic has been possible in JS since the language was invented, but it has always been a pain. The bignum NPM package[0] predates the BigInt numeric primitive by 9 years. The addition of `BigInt` to ES2020 was important for performance (since implementing an arithmetic primitive in JS makes calculations dog slow), but it didn't add any fundamental affordances to the language.

[0]: https://github.com/justmoon/node-bignum

comment 3y ago · link · parent

"You can build arbitrary-precision rationals" is a far cry from saying, "this is a language designed for precision arithmetic." You can technically build arbitrary-precision rationals without BigInts using arrays, but it's not exactly ergonomic.

Even if we stipulate that users will be cognizant of floating point limitations and convert everything to integers, JS still requires all literals to be suffixed with n to avoid silently losing precision when integral values exceed 2*52.

comment 3y ago · link · parent

True, but financial calculations tend to involve non-integral numbers. Python has arbitrary-precision decimals via: https://docs.python.org/3.11/library/decimal.html

comment 3y ago · link · parent

Whether it runs in the cloud or locally, the included python source will be written for a specific runtime version and environment. If excel were to run python locally, it would presumably bundle an interpreter (+ any needed pip packages) rather than relying on whatever was installed locally.

The cloud execution model does still have an advantage in that it can retain old runtimes in perpetuity for backwards compatibility, though

comment 3y ago · link · parent

> Javascript in Excel would be nice.

JS has been one of the supported add-in languages for a while[0], but that's not quite the same thing as the new python offering (which sounds more like jupyter within excel).

Since excel is often (mostly?) used for working with financial calculations, I for one am glad they went with python for this feature instead of a language that insists that an IEEE 754 double is the only kind of number anybody actually needs

comment 3y ago · link · parent

I keep notes in markdown in a local folder and sync across machines with git. I tend to use VS Code to edit/read because I like the way its search feature works, but really any text editor would work fine. I sync with a private github repo, but any git remote would be equivalent.

Git history and did tracking is obviously more useful for text-based formats like md than it would be for PDFs, but there's no reason you couldn't include PDFs or other small binary files alongside your notes in the repo.

comment 3y ago · link · parent

Choose whatever language you're most comfortable/familiar with so long as it's not C or C++.

comment 3y ago · link · parent

> He allowed the show to explore some of the ramifications of a universe that clearly still has scarce resources that need to be allocated.

I always thought it was interesting that the scarce resources you could get at Quark's were non-material (companionship, holodeck experiences, games, etc). The only defining characteristic of the substance the Ferengi use as currency is that it can't be produced by a replicator, which implies that everything else (including all the expensive bottles behind Quark's bar) could be.

comment 3y ago · link · parent

Usually people use "state" to mean that the resource accumulates data. E.g., a VPC is stateless, but the s3 bucket containing flow logs for the VPC is not.

Tearing down and recreating a VPC can be disruptive, but that doesn't make it a stateful resource.

comment 3y ago · link · parent

The UK doesn't need to implement a Great Firewall; if they succeed in convincing service providers to voluntarily exit the UK market, then each service provider will block traffic to/from the UK on its own. A few shitty laws may be enough to incentivize the emergence of a Great Patchwork Firewall.
1
567
52