Better HN
topnewbestaskshowjobs
Log inSign up

meithecatte

939 karma · joined Jun 29, 2019 (7y ago) · 198 submissions

Submissions

comment 5y ago · link · parent

It is interesting how readable the proofs produced by ACL2 are. Also, the automation applies induction and generalizes conjectures, which is something that no other proof assistant I'm aware of does.

The same authors also wrote "A Brief ACL2 Tutorial" [0], which seems to explain the process of developing an ACL2 proof more.

[0]: https://www.cs.utexas.edu/users/kaufmann/tutorial/rev3.html

92.

A Flying Demo of ACL2 (2000)(cs.utexas.edu ↗)

2 points · by NieDzejkob · 5y ago · 1 comment

93.

Odd Comments and Strange Doings in Unix (2002?)(cm.bell-labs.co ↗)

3 points · by NieDzejkob · 5y ago · discuss

comment 5y ago · link · parent

Aren't 255 bit codes the optimal choice for an input distribution skewed enough?

95.

A Brief, Incomplete, and Mostly Wrong History of Programming Languages (2009)(james-iry.blogspot.com ↗)

1 points · by NieDzejkob · 5y ago · discuss

comment 5y ago · link · parent

Perhaps this standard allows specifying the BSSID instead, somehow?

comment 5y ago · link · parent

> But it comes with costs. Someone has to learn Rust and then convert all of these programs.

Someone has to learn compiler engineering and then design and implement a 'safe' ABI. Unlike learning Rust, this is probably worthy of a research paper.

> Rust programs are only memory safe if the unsafe keyword is not used anywhere in the program

If you use unsafe, then you take some of the responsibility for maintaining memory safety. However, you can audit the unsafe parts of the code, and it will compose with the compiler-provided guarantees for the rest of the code. Besides, one can easily avoid unsafe code for safety-critical tools like these.

> Much more interesting (to my mind, anyway) is something like Miri. The rust interpreter, which uses fat-pointers to make things (more? completely? someone more informed can correct me..) memory-safe by inserting some relatively lightweight run-time checks.

Miri does not support most interaction with the outside world [1]. It is focused more on detecting UB in unsafe code when it is exercised by tests, than on having your code running in production through Miri. Moreover, I wouldn't call a thousand-fold slowdown [2] "relatively lightweight".

[1]: https://github.com/rust-lang/miri#miri [2]: https://www.reddit.com/r/rust/comments/hosvqu/will_the_miri_...

comment 5y ago · link · parent

I don't think it's a good idea to make a password reset take 3 entire days. In this case, I'd say the costs outweigh the benefits.

comment 5y ago · link · parent

I suppose one downside of this approach is that you need a bigger datatype to contain the result.

comment 5y ago · link · parent

GCC is no longer written in C, but in C++. They switched after GCC 4.7.

comment 5y ago · link · parent

I have had very good experience with Startpage. Unlike DDG, it's a Google proxy, so the search quality tradeoff is much less stark (not non-existent, as there's no personalization...)

comment 5y ago · link · parent

I believe the closest measurement would be in Table VII on page 8 of the paper: http://www.rsg.ci.i.u-tokyo.ac.jp/members/shioya/pdfs/Mashim...

comment 5y ago · link · parent

> You can explicitly choose to leave it undefined if it will get set later, but zig will error if you try to use it.

That doesn't seem to be true. The example below this sentence errors because the function foo being used doesn't exist, not because the variable is undefined. A proper example [1] shows that Zig will happily use uninitialized memory here:

    x: -1431655766
[1]: https://godbolt.org/z/36j4ab

comment 5y ago · link · parent

If you do not have a subscription to Nature: https://sci-hub.se/https://www.nature.com/articles/s41586-02...

comment 5y ago · link · parent

I haven't exactly read many this year, but I really liked "An Answer to the Bose-Nelson Sorting Problem for 11 and 12 Channels" [1]. It describes many interesting algorithmic tricks to establish a lower bound for an easy to understand problem. Not exactly immediately practical, but still very interesting.

Note that it has been published on arXiv just yesterday; I helped review an earlier draft.

[1]: https://arxiv.org/abs/2012.04400

comment 5y ago · link · parent

The code in question [1] does indeed return Result<(), Error>. This makes sense - more than one thing can go wrong during the verification, and the details can be important in some situations.

[1]: https://docs.rs/webpki/0.21.4/webpki/struct.EndEntityCert.ht...

comment 6y ago · link · parent

When configured properly, xsecurelock does fix this type of bug. The key is to use the -l option of xss-lock, which passes a lock file descriptor to xsecurelock and waits for it to be closed before allowing the suspend.

https://github.com/google/xsecurelock#automatic-locking

comment 6y ago · link · parent

Similar libraries are also available for Rust, see diesel [1] or sqlx [2].

[1]: https://diesel.rs/ [2]: https://crates.io/crates/sqlx

comment 6y ago · link · parent

I agree that normality is a specific formalized concept, but you could always require that an encoding function like this is injective.

comment 6y ago · link · parent

> Me supposes that, like with the ‘CALL 5’ mystery, we’ll learn the truth eventually.

This "CALL 5 mystery" sounds interesting, but I couldn't find anything about it. Perhaps somebody who knows what it's about would have more luck?

111.

A sudoku game where you have to prove that your deductions are valid(github.com ↗)

3 points · by NieDzejkob · 6y ago · discuss

comment 6y ago · link · parent

You might want to read the section "A Brief Review of the Principle of Induction".

comment 6y ago · link · parent

I doubt you'd be able to fit compiled Rust into 512 bytes, though.

comment 6y ago · link · parent

Every time I read this, I wonder what "WORDS OF PRAISE FOR FISHFOOD" is referring to. Anybody care to enlighten me?

comment 6y ago · link · parent

If I understand correctly (and I'm not sure I do), neut achieves its memory management by not sharing data between structures, and instead copying it. This works well when all data structures are immutable.

However, I feel like it would be more performent to just use reference counting here. After all, incrementing a counter must be faster than a memcpy, no? Since immutable values can't create cycles, no memory will be leaked.

comment 6y ago · link · parent

As far as code repositories go, Software Heritage seems to be more reliable. In this case, there's a full snapshot from the beginning of April: https://archive.softwareheritage.org/browse/origin/https://g...

comment 6y ago · link · parent

I'm trying to follow the code in "The Best FSM so far", and I can't see the moment where offset-to-action is added to the base address of the FSM like in the previous examples. Shouldn't there be a `R@ +` after `CELLS`?

118.

Using Uninitialized Memory for Fun and Profit (2008)(research.swtch.com ↗)

1 points · by NieDzejkob · 6y ago · discuss

comment 6y ago · link · parent

Unsurprisingly, this flaw has since showed up in CTF challenges: https://hack.cert.pl/challenge/failcrypt2

comment 6y ago · link · parent

There's a lot of complexity in gpg that's unnecessary for this usecase, I'd use age instead.

https://age-encryption.org/

1234567