Better HN
topnewbestaskshowjobs
Log inSign up

cryptonector

11,942 karma · joined Jun 29, 2012 (14y ago) · 8,736 submissions

Submissions

comment 11mo ago · link · parent

See my sibling comment. Basically each text fragment (either each branch-free run of instructions or each function/method) would need to be an object w/ capability, and the linker-loader must arrange for all text references to have the correct pointers. And then it would work. It's just a complication of the linker-loader, but once a program is loaded there would be no further lookups (unless you use something like `dlsym()`). The compromise to make is that within each such text object you have linear addressing with small offsets.

comment 11mo ago · link · parent

Another thing is that array addressing is tricky. You need to support arrays, but then how do you construct pointers to individual elements of the arrays? The cleanest option is to not allow that and force the programmer to always pass around the pointer to the array and an index. The same applies to slices. This definitely makes life harder for porting existing codebases or making existing languages work.

comment 11mo ago · link · parent

> The linking stage could perhaps be performed at process launch by a privileged task?

This gets expensive.

comment 11mo ago · link · parent

If PHK, DJB, <insert luminary> writes a post that comes across as clueless or flat out wrong, I'm going to read it and read it carefully. It does happen that <luminary> says dumb and/or incorrect things from time to time, but most likely there will be a very cool nugget of truth in there.

Regarding what PHK seems to be asking for, I think it's... linear addressing of physical memory, yes (because what else can you do?) but with pointer values that have attached capabilities so that you can dispense with virtual to physical memory mapping (and a ton of MMU TLB and page table hardware and software complexity and slowness) and replace it with hardware capability verification. Because such pointers are inherently abstract, the fact that the underlying physical memory address space is linear is irrelevant and the memory model looks more like "every object is a segment" if you squint hard. Obviously we need to be able to address arrays of bytes, for example, so within an object you have linear addressing, and overall you have it too because physical memory is linear, but otherwise you have a fiction of a pile of objects some of which you have access to and some of which you don't.

comment 11mo ago · link · parent

Is each branch-free run of instructions an object (which in general will be smaller than "function" or "method" objects) that can be abstracted? How does one manage locality ("these objects are the text of this function")?

Maybe one compromises and treats the text of a function as linear address space with small relative offsets. Of course, other issues will crop up. You can't treat code as an array, unless it's an array of the smallest word (bytes, say) even if the instructions are variable length. How do you construct all the pointer+capability values for the program's text statically? The linker would have to be able to do that...

comment 11mo ago · link · parent

> so we're going to go to the workshop and play with a high-volume fire pump.

Sounds like a joke. Had me laughing. (I would not let a 5 y/o play with a fire pump!)

comment 11mo ago · link · parent

It's like Newton's third law of motion, that "every force has an equal and opposite reaction", which when I was a wee child made no sense to me because "surely then nothing would happen". The key was that the equal and opposite reactions are on different objects.

It's the same thing with double entry accounting! The two entries are on different accounts.

comment 11mo ago · link · parent

IMO we need to rethink routing for IPv6 so we can finally reduce pressure on router tables and finally cause pressure to ditch IPv4. Here are some of my thoughts on that elsewhere in this thread: https://news.ycombinator.com/item?id=46471898

But here's a more thought-out design:

- register a well-known IPv6 prefix with 20 bits reserved for AS number

- so we'd have ${well_known_prefix}:${AS_number}:${customer_prefix}:${end_entity} (not necessarily that format for display, but just for the purpose of getting the idea across here)

- have DNS servers return AAAA RRs with the AS number filled in

- DNS servers should either have the correct AS numbers filled in their zones, or possibly could subscribe to the RPKI and use the RPKI for mapping ${well_known_prefix}:${all_zero_AS}:${customer_prefix}:* to AS numbers, then fill them in (this would require live signing if using DNSSEC, which is f-i-n-e fine)

- if there are multiple AS numbers for a $customer_prefix, then return multiple AAAA RRs, or if EDNS0 indicates client support for it, one AAAA RR and N RRs of a new type that carry only the AS numbers

- update core routers to route these prefixes based on the AS number in the address

- update edge routers to replace the sender's AS number in its address if its address is below the $well_known_prefix -- this takes care of the return path

- update internal routers to use only the $customer_prefix and the $end_entity for routing for this $well_known_prefix

- end entities should ignore the AS number when receiving packets, thus allowing multi-homing (i.e., let source and destination IPv6 addresses match ${well_known_prefix}:*:${customer_prefix}:${end_entity} for socket 5-tuples)

- for backwards compatibility end entities should map these addresses back to whatever the application used in its calls to bind() and connect() (i.e., if the app found an AAAA with the AS number filled in and used it for connect(), but the ${customer_prefix} is multi-homed, then accept packets from all those homes) (apps should make sure to use TLS / QUIC for security, naturally)

- when an end-entity sees a change in AS number for a peer's address matching a socket 5-tuple then update the peer's AS number / address in the 5-tuple -- this allows for migration and better path finding

I think something like this could be deployed with relatively little effort.

comment 11mo ago · link · parent

IPv6 was a total failure of imagination.

The fact is that already in 1993 routing tables were just too big, and the fact is that having a "flat" address space was always going to mean huge routing tables, and the fact is that because IPv6 is still "flat" routing tables only got larger.

The fix would have been to have a subset of the address space that is routed as usual for bootstrapping ex-router address->AS number mapping, and then do all other routing on the basis of AS numbers _only_. This would have allowed us to move prefix->AS number mappings into.. well, DNS or something like it (DNS sucks for prefix mapping, but it could have been extended to not suck for prefix mapping), and all routing would be done based on AS numbers, making routing tables in routers _very small_ by comparison to now. Border routers could then have had tiny amounts of RAM and worked just fine. The IP packets could have borne AS numbers in addition to IP addresses, and all the routers in the middle would use only the AS numbers, and all the routers at the destination AS would know the routes to the destination IPs.

But, no. Great missed chance.

Well, we still could do this with IPv6, but it would be a lot of heavy lifting now.

EDIT: Ah, I see draft-savola-multi6-asn-pi existed.

EDIT: Ah, see also LISP [https://www.rfc-editor.org/rfc/rfc6830]. But LISP is essentially dead.

comment 11mo ago · link · parent

Quite.

comment 11mo ago · link · parent

Make them wear school-provided inside-ear headphones to hear the exam.

comment 11mo ago · link · parent

TFA's case involved examinations about the student's submitted project work. It's not the same thing. Even for a more traditional examination with no such context attached one might still want to rely on AI for grading. (Yeah, I know, that comes across as "the students are not allowed to use AI for cheating, but the profs are!".)

Also, IMO oral examinations are quite powerful for detecting who is prepared and who isn't. On the down side they also help the extroverts and the confident, and you have to be careful about preventing a bias towards those.

comment 11mo ago · link · parent

Is there an evaluation of how good the questioning was? Did TFA review the transcripts for that? Did I miss it?

> The grading was stricter than my own default. That's not a bug. Students will be evaluated outside the university, and the world is not known for grade inflation.

Good!

> 83% of students found the oral exam framework more stressful than a written exam.

That's alright -- that's how life goes. This reminds me of a history teacher I had in middle school who told us how oral exams were done at the university he had studied in: in class, each student would come up to the front, pick three topics at random from a lottery-ball-picker type setup, and then they'd have a few minutes in which to explain how all three are related. I would think that would be stressful except to those who enjoy the topic (in this case: history) and mastered the material.

> Accessibility defaults. Offer practice runs, allow extra time, and provide alternatives when voice interaction creates unnecessary barriers.

Yes, obviously this won't work for deaf students. But why must it be an oral examination anyways? In the real world (see above example) you can't cheat at an oral examination because you're physically present, with no cheat sheets, just you, and you have to answer in real time. But these are "take-at-home" oral exams, so they had to add a requirement of audio/video recording to restore the value of the "physically present" part of old-school oral exams -- if you could do something like that for written exams, surely you would?

Clearly a take-home written exam would be prone to cheating even with a real-time AI examiner, but the real-time requirement might be good enough in many cases, and probably always for in-class exams.

Oh, that brings me to: TFA does not explicitly say it, but it strongly implies that these oral exams were take-at-home exams! This is a very important detail. Obviously the students couldn't do concurrent oral exams in class, not unless they were all wearing high quality headsets (and even then). The exams could have been in school facilities with one student present at a time, but that would have taken a lot of time and would not have required that the student provide webcam+audio recordings -- the school would have performed those recordings themselves.

My bottom-line take: you can have a per-student AI examiner, and this is more important than the exam being oral, as long as you can prevent cheating where the exam is not oral.

PS: A sample of FakeFoster would have been nice. I found videos online of Foster Provost speaking, but it's hard to tell from those how intimidating FakeFoster might have been.

comment 11mo ago · link · parent

That relied on hardware, which -recall- is ETOOEXPENSIVE.

comment 11mo ago · link · parent

No, it's "launch a read and elsewhere get a completion event".

"do a read and wait for it" is synchronous I/O.

comment 11mo ago · link · parent

From an abstract API perspective it doesn't matter: it's just fire-and-forget where you call a function that will start some I/O and you associate some sort of event completion notice. The details matter only regarding performance.

comment 11mo ago · link · parent

Nice! I could use this :) (for open source work).

Though I would prefer to have something not based on coroutines.

comment 11mo ago · link · parent

For a second I thought this was about fake/altered honey.

comment 11mo ago · link · parent

Hardware isolation is ETOOEXPENSIVE, so we need soft containers/sandboxes. It's that simple.

comment 11mo ago · link · parent

Whoa. Can it be used to run older software on newer Windows too?

comment 11mo ago · link · parent

The reason you're getting downvoted is that what you're saying implies a shit-ton of work for the distros -- that's expensive work that someone has to pay for (but nobody wants to, and think of the cost of opportunity).

But you're not entirely wrong -- as long as you have API compatibility then it's just a rebuild, right? Well, no, because something always breaks and requires attention. The fact is that in the world of open source the devs/maintainers can't be as disciplined about API compat as you want them to be, and sometimes they have to break backwards compatibility for reasons (security, or just too much tech debt and maint load for obsolete APIs). Because every upstream evolves at a different rate, keeping a distro updated is just hard.

I'm not saying that statically linking things and continuing to run the binaries for decades is a good answer though. I'm merely explaining why I think your comment got downvoted.

comment 11mo ago · link · parent

Managers "own" the open reqs, so that's not out of the ordinary.

comment 11mo ago · link · parent

If you get an offer from a startup you'll need to pay a great lawyer to negotiate an iron-clad contract, so much so that any post-1st round startup would rescind the offer.

comment 11mo ago · link · parent

In Spanish:

- cifrar -> to encipher

- cifra -> digit

comment 11mo ago · link · parent

Time flies by way too fast. But if you did good you'll get upgraded to grandparent!

comment 11mo ago · link · parent

My goal is for every line of C/C++ to be rewritten.

My goal. Not Microsoft's or SpaceX's or...

When Galen says "my goal is ..." I take that at face value but as aspirational.

comment 11mo ago · link · parent

| My goal ...

later

| ... our ...

I think Galen's goal to rewrite every bit of C/C++ was his goal, not Microsoft's.

comment 11mo ago · link · parent

The "odd capitalization" was humor related to the parent comment's "odd capitalization".

comment 11mo ago · link · parent

BECAUSE ads that's why. They could have had the sense and respect for their users to make it async.

comment 11mo ago · link · parent

I wonder how well Claude would do at porting Heimdal's ASN.1 compiler to Rust, Swift, Java, etc. I wonder how well it would do at porting Heimdal's lib/hx509. I think the latter would be much easier than the former. But I'd expect that porting the krb5 code would be much harder still.
1
181920
292