Frank Dedden

Results 29 comments of Frank Dedden

Thank you @simondlevy! That is a rather interesting problem. Copilot currently only supports limited sharing of streams. I am pretty sure that better sharing would help in this case. @agoodloe...

This is a feature that is requested before (#56), and something we definitely want to implement. Having this amount of type-safety will really introduce a huge benefit over using C....

Currently there is no way to construct an array from stream carrying scalars. Having a feature like this (and a similar one for structs) would indeed help a lot, and...

Just made an in between merge with master to implement the first fix of printing numbers. Only when the suite is made architecture independent, we can close the issue.

@ivanperez-keera @agoodloe, I have implemented the `sizeof` operator in `language-c99-simple` (https://github.com/fdedden/language-c99-simple/pull/12), that should make it straightforward to implement. I have tested the implementation with arrays and nested arrays as well....

> I have drafted the solution here: https://github.com/ivanperez-keera/copilot/tree/develop-delay-array > > The example above works for me. It would be good if others could also try it @fdedden and maybe also...

My package has been published (https://hackage.haskell.org/package/language-c99-simple-0.2.2), so the changes made by @ivanperez-keera should work now, if the dependency version is increased accordingly.

> > Weird though how the optimisation level of GCC makes a difference. I always thought that up to `-O2`, semantics didn't change. > > I'm fairly certain that the...

Thanks for mentioning this. Moving the definition of the struct from the .c to the .h file will solve this problem. Initially the C99 backend of Copilot is designed to...

> The implications are that, in many cases, the code that uses Copilot will not be able to import the `.h` file. Oftentimes, those structs will be defined in different...