Re: Hiding sideeffect from compiler

2017-11-15 Thread pwernersbach
In regards to cdome's original question, I think tricking the compiler to ignore side effects for a certain function is the wrong way to go about this. If the memoization table was passed as a function parameter, the function would have no side effects, with no tricks involved.

Re: Reason for -fno-strict-aliasing?

2017-08-25 Thread pwernersbach
Also, in my opinion, violating the strict aliasing rule is a code smell, and so I think we should avoid accommodating bad code with the "-fno-strict-aliasing" flag.

Re: How To - Proper Interfacing In Nim

2017-06-11 Thread pwernersbach
**@ivanitto**: I agree with Varriount that it's best to declare the types in Nim along with the correct C type pragmas. You don't have to define the entire type, just enough to indicate its semantics to Nim and to identify it in the C type system: type BoxOfStuff {.final,

Re: InfluxDB-to-MySQL Protocol Converter

2016-12-01 Thread pwernersbach
Haha, yep, it's a pretty comprehensive project and is bigger than a lot of Nim projects. The code makes use of Nim features such as async and macros. Imagine how large the program would be if Nim didn't have those features!

InfluxDB-to-MySQL Protocol Converter

2016-11-30 Thread pwernersbach
I've open sourced and published my InfluxDB-to-MySQL protocol converter to [https://github.com/philip-wernersbach/influx-mysql](https://github.com/philip-wernersbach/influx-mysql). It is written in Nim, and is being used in production to power a big data solution. This is a great example of