Is there a way to read a file line by line at compile time?
My use case is that I want to process an input file and produce Nim code via
macros, but have no trace of the input file in the resulting binary. Basically,
I just want to iterate over the lines and throw them away after the VM has
@cblake \- thank you for commenting! I didn't like that exactness for `inf(0)`
too, but wanted to respond with that before this thread gets into oblivion. I
put there a new version, which is
[YetMoreFun](https://github.com/Leu-Gim/Nim-modules/blob/master/yetmorefun.nim)
and more in line with
I'm trying to do [server-sent
events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events)
in Jester.
What I have now is this:
router index:
get "/time":
let data =
"retry: 3000\n" &
"data: {time: \'" &
> _" Good artists borrow, great artists steal." \-- Pablo Picasso_
I have put together a document that lay out the various blocks needed for an
efficient multithreading runtime. You can have a (long) read here:
Probably because there is not a windows version :-)
@LeuGim \- nicely done & interesting approach!
I'm not sure I would have embued `inf(0)|Infinite(0)` with as precise semantics
in your `for 3 .. inf(0): ...` construction. Infinity is more a process than a
number. For `∞ - ∞ ~ inf(0)` to act like zero the two limiting processes have
to
Thanks for the reply.
> For now just drop the {.raises.} annotation, the compiler can compute this on
> its own.
Yes, it works indeed, thanks a lot.
I originally intended to make a lazy version of raiseException like this:
import std/sugar
proc raiseException* [E: