github.com/moarvm/moarvm | IRC logs at colabti.org/irclogger/irclogger_logs/moarvm
Set by AlexDaniel on 12 June 2018.
nwc10 good *, #moarvm 06:14
lizmat nwc10 o/ 09:03
nwc10 \o
jnthn o/ 09:31
nine o| 10:21
lizmat and yet another Rakudo Weekly News hits the Net: rakudoweekly.blog/2020/07/13/2020-28-bridges-7/ 14:09
patrickb timotimo: WRT github.com/Raku/App-Rakubrew/issues/17 17:39
timotimo: Can you have a look at this change: github.com/Raku/nqp/pull/645 17:44
It relies on $NQP_HOME to be set in the context (not sure what context that actually is). The variable is currently only set in rakudo though: github.com/rakudo/rakudo/blob/mast...in.nqp#L51 17:45
Would this PR actually work when running rakudo? 17:47
I suspect it won't as it's a different HLL. 17:52
timotimo patrickb: do you happen to know what other place calculates the path? does it happen in the C launcher or something? 20:28
since the template path stuff happens after the raku code runs, we can put path calculation in raku code as well
and the hll at a given place in the code is statically based on what compiles it; that piece of code is compiled by nqp so it'll have nqp set as the hll
we probably also have ops to get symbols from another hll by its name 20:29
patrickb In rakudo the C runner does some ground work to determine the executable path (and calculates the home dirs, but only for internal use). Then the src/main.nqp and src/rakudo-debug.nqp files determine the home dirs and set up those hll symbols. 20:30
patrickb The NQP C runner does the same. 20:30
The NQP src/NQP/Compiler.nqp does not set up the HLL symbol though (I added that in one of the above PRs) 20:31
The thing that worries me a bit in my PRs is that code in NQP relies on the NQP_HOME HLL symbol, which needs to be set up in rakudos src/main.nqp. 20:33
I also set it up in NQPs src/NQP/Compiler.nqp, but that is never called when running Rakudo.
timotimo right, rakudo's compiler derives from HLL::Compiler, not NQP::Compiler 21:36
patrickb So I could put the logic into HLL::Compiler and leave it out in rakudo? That would clean things up a bit! 22:04
But where would I put it there? Sounds a bit out of place to put it into BUILD or some such... 22:07
timotimo i mean, it could just go in a method i guess? 22:21