3 ms·
The strangest thing about Flow is that its compiler is implemented in C#. So if you decide to use it in your C++ codebase, you now have a C#/.Net dependency, at
by boris 10mo ago
The strangest thing about Flow is that its compiler is implemented in C#. So if you decide to use it in your C++ codebase, you now have a C#/.Net dependency, at least at build time.
- jermaustin1 10mo agoI wonder why that decision was made. I know why I, a C# developer, would make that decision, but why Apple?
- jeffbee 10mo agoThis entire codebase was acquired by apple in a state of substantial completion and since then relatively little has changed.
- atn34 10mo agoThe original developers (before Apple bought the company) used Visual Studio on Windows
- rdtsc 10mo agoSomeone knew C# and was good at parsers, would be my guess. It could have just as easily been Scala or something else.
- boxfire 10mo agoIt’s also funny because it’s a small, incomplete, incompatible subset of c++… seems like a perfect LLVM / clang rewriter case too, it would be easy to convert and be pure c++. Hell even a clang plugin to put the compile time into one process wouldn’t be awful. But i wonder looking at the rewrites if there’s not a terribly janky way to not need a compiler, if at some runtime cost of contextual control flow info.
- whizzter 10mo agoNot even that, this should more or less be directly translateable to C++ 20 coroutines.
- mananaysiempre 10mo agoAlso of course years older than them.