Building my own network stack
41–50 of 103 posts
Re: Building my own network stack
#42Earlier quoted context omitted.
Why can’t you JIT- generate the code and then run the verification?
Where did I say you can't do that? I answered you why I assumed the original comment was leaning towards JIT for everything.
You literally said it can’t be JIT, I’m just saying it seems like it can.
Re: Building my own network stack
#43Earlier quoted context omitted.
Proper verification would be deterministic rules the JIT-ed code would be checked against, so it would have to be non-JIT. Since the comment is talking about using more & more JIT for security reasons, I assumed it extended to verification too. I don't get why you'd generally switch to JIT for security reasons.
Who writes the formal verification spec and when?
Re: Building my own network stack
#44Everyone should build their own ** is the general advise I would give just about anything. Otherwise it is hard to appreciate how much effort it goes into things that we take for granted. Everything looks simple from the outset until you try to build it yourself.
Re: Building my own network stack
#45Earlier quoted context omitted.
why are you assuming there would be no proper verification in this scenario?
Because the verification would also be done by something non deterministic and then that’s a paradox.
Re: Building my own network stack
#46Re: Building my own network stack
#47These sort of things are more complicated than you could expect and have plentiful pitfalls. Whatever you can do in reasonable amount of time is probably not that good compared to existing alternatives.
If you have actually pressing reason to build one and are ready and have means to spend time and effort on it go ahead. But carefully consider the effort needed...
Re: Building my own network stack
#48Earlier quoted context omitted.
Where did I say you can't do that? I answered you why I assumed the original comment was leaning towards JIT for everything.
Ok so if it is indeed possible to verify the code after JIT generating it, I still don’t understand why you would assume that in the hypothetical scenario we aren’t doing that verification? You literally said it can’t be JIT, I’m just saying it seems like it can.
> Since the comment is talking about using more & more JIT for security reasons, I assumed it extended to verification too.
I wouldn't consider feeding the JIT-ed code to a JIT-ed verifier code proper verification.
Even ignoring the verification bit, I don't see the security benefits of having agents write JIT code, hence the original question. Because there might be some edge cases I don't know about, but I can't see this applying generally.
Re: Building my own network stack
#49Earlier quoted context omitted.
Proper verification would be deterministic rules the JIT-ed code would be checked against, so it would have to be non-JIT. Since the comment is talking about using more & more JIT for security reasons, I assumed it extended to verification too. I don't get why you'd generally switch to JIT for security reasons.
Why can’t you JIT- generate the code and then run the verification?
Re: Building my own network stack
#50Everyone should build their own ** is the general advise I would give just about anything. Otherwise it is hard to appreciate how much effort it goes into things that we take for granted. Everything looks simple from the outset until you try to build it yourself.
I recently saw this guy on HN who had written a web server for an Atmel AVR and also implemented a TCP/IP stack to boot. It obviously was far from feature complete, but it did work. He used SLIP to communicate with the "server."