Better HN
topnewbestaskshowjobs
Log inSign up

PartiallyTyped

2,940 karma · joined Oct 16, 2020 (6y ago) · 2,890 submissions

me [at] [$handle].dev

----------------------------------------------------

Submissions

comment 3y ago · link · parent

> NSA worked closely with IBM to strengthen the algorithm against all except brute-force attacks and to strengthen substitution tables, called S-boxes. Conversely, NSA tried to convince IBM to reduce the length of the key from 64 to 48 bits. Ultimately they compromised on a 56-bit key.[13][14]

From wikipedia. Major compromise tbh :unamused:

[13] Thomas R. Johnson (2009-12-18). "American Cryptology during the Cold War, 1945-1989.Book III: Retrenchment and Reform, 1972-1980, page 232" (PDF). National Security Agency. Archived (PDF) from the original on 2015-04-25. Retrieved 2015-07-16 – via National Security Archive FOIA request. This version is differently redacted than the version on the NSA website.

[14] Thomas R. Johnson (2009-12-18). "American Cryptology during the Cold War, 1945-1989.Book III: Retrenchment and Reform, 1972-1980, page 232" (PDF). National Security Agency. Archived (PDF) from the original on 2015-04-25. Retrieved 2015-07-16 – via National Security Archive FOIA request. This version is differently redacted than the version on the NSA website.

comment 3y ago · link · parent

It's the least reliable form of "evidence". If anything, it's an anecdote at best.

comment 3y ago · link · parent

NSA has both red and blue teams. Work from blue teams helps the public even if they are only known for their red team. Iirc we saw the blue team with S-Boxes in DES, but I may be misremembering things.

comment 3y ago · link · parent

There was a CTF around this premise not too long ago.

comment 3y ago · link · parent

I can't say much more unfortunately, not yet at least.

I have semi-sketched the idea in Dafny instead of Isabelle. Direct encoding of arrays makes it difficult, but I am thinking iterative deepening might just work. I am working on a Z3 approach for this, and I am crossing my fingers.

If Z3 doesn't work, I will try emitting Dafny code instead and hooking up to the compiler.

comment 3y ago · link · parent

It would most likely hurt the working class more than anyone else.

comment 3y ago · link · parent

You needn’t think of databases as tables and data, you may think of them as trees of structs, ie an object relational model and show satisfiability of the model by constructing a tree of dependencies.

You can do it incrementally for parts of the model, but that doesn’t guarantee that long range dependencies are satisfiable.

Yes, you then need to show that it is incrementally constructible, which is a different can of worms… the tree view above isn’t actually fully correct because you duplicate entries mapping to the same object. Because of this duplication, the tree may refer to an object that can only be inserted later.

Oh and the encoding must be able to accommodate arbitrary length arrays and arbitrary objects … which makes usage of SMT solvers difficult to say the least.

While I agree that for the average company this isn’t useful, and the average engineer won’t shoot their feet on purpose, what I am doing needs to accommodate all those scenarios because I have no guarantees of sanity.

comment 3y ago · link · parent

> What exactly have you tried to do there? Isn't a schema already a model? What properties did you want your model to have?

Yes, a schema is a data-model, and a database can tell you whether the row you are trying to insert satisfies the constraints, but it can't tell you whether an instantiation of the database exists, nor can it tell you how to construct it.

There are 2 issues here, first proving that an instantiation exists; and second proving that there's a sequence of insertions that satisfy the constraints. Notice that some tables can have non sat constraints.

This becomes significantly harder when you are dealing with recursive definitions, cycles in the dependencies, foreign keys that refer different tables across the same constrained columns, type compatibility, and on and on

In other words, the space of all databases described by a schema may not even be constructible :upside_down:

comment 3y ago · link · parent

That's easy to say, until you've tried to write a provably correct piece of software or tried to do model checking.

I have tried to build models for the schemas that databases have, not their implementation, just the schema, and it is difficult AF. Using z3 for this might as well be trying to start a fire with a pair of rocks.

comment 3y ago · link · parent

A good friend of mine is a hypervisor/kernel engineer, and I can swear he has said the same thing, almost word for word.

comment 3y ago · link · parent

> How can it possibly all work?

What must not to fail has very rigorous standards, e.g. Nasa, aerospace, and medical devices.

Everything is built like an onion of failsafes.

comment 3y ago · link · parent

What are you compiling, if you don’t mind me asking?

comment 3y ago · link · parent

HN seems to like Nim and more exotic (though not esoteric) languages.

comment 3y ago · link · parent

The “white saviour” complex is well documented. Well-meaning but racist in their ignorance white people try to save people based on racist stereotypes and caricatures of imagined problems.

comment 3y ago · link · parent

It’s the enshittification of everything and the pervasiveness of “pop culture”.

Every HR person needs to touch something to feel useful and “changing something”.

comment 3y ago · link · parent

Depending on who you ask.

Tangent: Imho, the only reason it is good is because it's not as grindy and / or the community just didn't put as much emphasis on min-maxing things. GearScore was a thing of course, but theory crafting wasn't anywhere close to what we have now.

comment 3y ago · link · parent

Sounds like AI dungeon to me :)

comment 3y ago · link · parent

Present your work / citation needed.

comment 3y ago · link · parent

Epic tried. So it has already happened.

comment 3y ago · link · parent

Apple a) has a mutual interest in them remaining privacy centric as we do. B) most of your data is locked onto the device and cannot be accessed by anyone including apple themselves.

comment 3y ago · link · parent

Except that it is certainly up to everything you consume to demand that you install their app through their shitty third party store.

Imagine if your appliance manufacturer could dictate that you kept your door open for them.

comment 3y ago · link · parent

50 people to build a service for a product that doesn’t exist yet.

comment 3y ago · link · parent

For someone not into the topic or aware of the recent events, a first glance at the title sounds like complying with backdoor policies.

It is far more innocent than that. In fact it's not remotely malicious.

> Just under the two-week deadline that France's radiation watchdog, Agence nationale des frequences (ANFR), set Apple has submitted a promised fix for claimed too-high radio frequency emissions from the iPhone 12. The phone was found to exceed legal limits for RF exposure, in a round of the AFNR retesting of 141 mobile phone models.

comment 3y ago · link · parent

> Or 'God morgen'

pronounced goo-morn in Danish, and written godmorgen :D

comment 3y ago · link · parent

There's something quite funny about reading a book, an activity usually enjoyed alone sans conversations, about well, conversations.

Thanks for the recommendation, I will give it a try.

comment 3y ago · link · parent

The hej thing is common in some Scandinavian countries, but people don't strike up conversations with each other nor do they make new friends easily.

comment 3y ago · link · parent

I don't think we can actually reduce this to just "<description>". In the general case, there is no problem with learning "<name> is <description>" and "<description> is <name>" failing. It should fail because you go from the general, i.e. description, to the specific, i.e. name.

The problem - to me - seems to be that the specific description is equivalent to one and only one person, and that is what the models seem incapable of learning; that for all x, y matching that particular description, x=y, and exists only one person matching said description.

comment 3y ago · link · parent

From the title alone it sounded as if the model understood the Liskov substitution principle.

Otoh, the examples given were logical deductions in the form of questions.. Could it be that the fine tuning is causing these?

1
222324
97