3 ms·
I am curious why develop a new language instead of building a library for an existing language. What are the benefits as I didn't see this in the paper? Can it
by ktallett 2mo ago
I am curious why develop a new language instead of building a library for an existing language. What are the benefits as I didn't see this in the paper? Can it interact with other languages?
- black_knight 2mo agoThe first sentence of the abstract gives a motivation: "λλ uses a linear type system to encode the physical constraints of optics, rejecting unrealizable programs at compile time." The fact that it its own language does not preclude using it within the context of a different language. You can embed a domain specific language into a general purpose one.
- ktallett 2mo agoI read that but unless they are able to encode construction, input, output, material, and packaging restraints which I'm not sure this does then I can't see the benefit. It's only ever going to be idealised which are realistically unrealizable. A key focus of silicon photonics is that it has to interact with classical systems to do readout and input right now so it would be logical to design with that built in.
- flossly 2mo agoI understood this language like being something similar to assembly. Many compiled languages can compile down to assembly and which can be used to debug/optimize/understand the compilation process. Assembly is so close to the underlying hardware that it's not very practical for us humans to write software with it. > Can it interact with other languages? I'd say this is probably similar to the story with assembly. Assembly cannot interop with C. But C can be compiled down to assembly (not sure that counts as "interact" to you).
- tekne 2mo agoAssembly can totally interop with C.
- flossly 2mo agoWhen that C is compiled down to... assembly? Or binary? I cannot call a C function by name from assembly right?
- ktallett 2mo agoWell the logical step would be that you are creating a silicon photonics environment that has comparable input and output to the real world (classical computing) which is always into another system to appropriately input, readout, and feedback into the system. Hence why interaction with the languages that readout and input will involve are essential.