See this video clip for motivation:https://youtu.be/bSkpMdDe4g4?t=3193 …
-
-
Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi
-
-
-
The tech-savvy userbase for compilers is likely ok making such a trade-off of functionality vs security. For example,
#rustlang would be much less useful without the ability to codegen from the output of arbitrary external code at build time via procmacro. -
Are you suggesting that rustc should be allowed to open sockets? I don't see how TCP/IP has any business participating in my build - seems over-engineered Maybe there's a good middle ground? Perhaps a cmd line arg "--this-github-repo-is-evil" ?
- Još 4 druga odgovora
Novi razgovor -
-
-
Compilers already have enough bugs that you can do this even if the language doesn't support it.
-
True, very very true Only possible exception http://compcert.inria.fr Not a bad C compiler, but also not as flexible or optimized as the competition Still I use it when I can, which is surprisingly often
- Još 4 druga odgovora
Novi razgovor -
-
-
what does it mean to "run arbitrary code"? does constant folding count as "running arbitrary code"? (I think it does)
-
A good question - Let’s say, ability to invoke arbitrary system calls Or rewrite arbitrary files on disk Stuff like that
- Još 4 druga odgovora
Novi razgovor -
-
-
There's quite a bit of nuance missing from this question. "Arbitrary" as in any code, any syscall, run as root? No of course not. "Arbitrary" as in any code it has permission to run, any syscall it possesses a capability for, explicitly granted by the user? Yes of course.
-
I personally think "here, wear this straightjacket" is more of an "I hate users" attitude than a lack of guardrails (which is also bad, to be clear)
- Još 2 druga odgovora
Novi razgovor -
-
-
They would be sandboxed with writes allowed into the output files they opened before compilation, so that the question should be moot.
-
If only it were so simple

- Još 1 odgovor
Novi razgovor -
Čini se da učitavanje traje već neko vrijeme.
Twitter je možda preopterećen ili ima kratkotrajnih poteškoća u radu. Pokušajte ponovno ili potražite dodatne informacije u odjeljku Status Twittera.