teardown has quit [Read error: Connection reset by peer]
<countvajhula>
selimcan: haha thanks, and getting very good answers :D
teardown has joined #racket
teardown has quit [Read error: Connection reset by peer]
teardown has joined #racket
teardown has quit [Read error: Connection reset by peer]
teardown has joined #racket
catonano_ has joined #racket
teardown has quit [Read error: Connection reset by peer]
badkins has quit [Remote host closed the connection]
nebunez has joined #racket
countvajhula has quit [Ping timeout: 244 seconds]
catonano has quit [Ping timeout: 240 seconds]
catonano_ is now known as catonano
teardown has joined #racket
teardown has quit [Read error: Connection reset by peer]
countvajhula has joined #racket
catonano has quit [Remote host closed the connection]
teardown has joined #racket
teardown has quit [Read error: Connection reset by peer]
caente has joined #racket
caente has quit [Client Quit]
teardown has joined #racket
caente has joined #racket
teardown has quit [Read error: Connection reset by peer]
teardown has joined #racket
teardown has quit [Read error: Connection reset by peer]
teardown has joined #racket
teardown has quit [Read error: Connection reset by peer]
rekahsoft has joined #racket
teardown has joined #racket
teardown has quit [Read error: Connection reset by peer]
teardown has joined #racket
teardown has quit [Read error: Connection reset by peer]
<samth>
countvajhula: see `raco pkg migrate`
teardown has joined #racket
<samth>
countvajhula: do you mean that you want to write a macro `m` that recognizes `lift-foo` in its input? or that you want to bind everything starting with `lift-` to a (set of) macros?
teardown has quit [Read error: Connection reset by peer]
<samth>
the former is pretty easy. the latter is not possible with macros (mostly)
fridim has quit [Ping timeout: 260 seconds]
teardown has joined #racket
TCZ has quit [Quit: Leaving]
teardown has quit [Read error: Connection reset by peer]
vejetaryenvampir has quit [Ping timeout: 258 seconds]
teardown has joined #racket
fridim has joined #racket
teardown has quit [Read error: Connection reset by peer]
<countvajhula>
samth: `raco pkg migrate` looks great, will try it next time
<countvajhula>
samth: I'd like it to recognize lift-* (not just foo), so I think that's your second option?
teardown has joined #racket
teardown has quit [Read error: Connection reset by peer]
<countvajhula>
i guess the issue is that if the reader provides "lift-foo" to the expander, there would be no transformer binding corresponding to lift-foo (specifically) so there would be no further expansion and a syntax error would follow. dzoe suggested intercepting at the reader stage so that (iiuc) the expander would receive a pre-expanded version `(curry map foo)`, and it wouldn't need to expand it further, in a way circumventing the macro
<countvajhula>
system
<countvajhula>
sounds like you're alluding to another possibility where we somehow have the reader expand lift-* to "all possible" transformer bindings prior to the expander stage, or have the expander stage itself, via some special macro definition syntax, recognize patterns rather than literal matches
teardown has joined #racket
teardown has quit [Read error: Connection reset by peer]
<countvajhula>
the latter option of having a special syntax (`(define-syntax-pattern ...)` or something like that), I guess that's the thing you're saying isn't possible atm?
nebunez has quit [Ping timeout: 240 seconds]
<samth>
countvajhula: no, I'm saying that dzoe's suggestion is probably the best one
<samth>
you could also do something with `#%top` but I think dzoe's reader suggestion is better
rekahsoft has quit [Ping timeout: 240 seconds]
nan` has joined #racket
countvajhula has quit [Ping timeout: 244 seconds]
selimcan has quit [Ping timeout: 246 seconds]
countvajhula has joined #racket
<countvajhula>
samth: got it, thanks!
orivej has joined #racket
selimcan has joined #racket
Codaraxis__ has quit [Read error: Connection reset by peer]
caente has quit [Ping timeout: 260 seconds]
phillbush has quit [Quit: Leaving]
selimcan has quit [Quit: Leaving]
nan` has quit [Ping timeout: 260 seconds]
countvajhula has quit [Ping timeout: 240 seconds]
mirrorbird has quit [Ping timeout: 260 seconds]
nan` has joined #racket
mirrorbird has joined #racket
nan` has quit [Ping timeout: 258 seconds]
teardown has joined #racket
endformationage has quit [Quit: WeeChat 2.9]
nan` has joined #racket
nan` has quit [Ping timeout: 244 seconds]
Sgeo_ has joined #racket
narimiran has joined #racket
Sgeo has quit [Ping timeout: 240 seconds]
bocaneri has joined #racket
Sgeo_ has quit [Read error: Connection reset by peer]
orivej has quit [Ping timeout: 256 seconds]
brj has quit [Ping timeout: 244 seconds]
brj has joined #racket
mirrorbird has quit [Quit: Leaving]
rgherdt has joined #racket
rgherdt has quit [Remote host closed the connection]
<dustyweb>
can't believe I didn't realize this was here sooner :O
badkins has quit [Remote host closed the connection]
badkins has joined #racket
badkins has quit [Ping timeout: 265 seconds]
aeth has quit [Ping timeout: 244 seconds]
aeth has joined #racket
nan` has joined #racket
nan` has quit [Ping timeout: 246 seconds]
narimiran has joined #racket
badkins has joined #racket
countvajhula has joined #racket
orivej has quit [Ping timeout: 260 seconds]
countvajhula has quit [Ping timeout: 244 seconds]
<dzoe>
Well, #lang slideshow needs a few tweaks from my perspective. It is still on my TODO to tackle the annoying 4:3 default and embed it reasonably in the source (and not as command-line argument).
<dzoe>
dustyweb: I assume you didn't look at the patch :)
<samth>
dzoe: the whole time that widescreen has been supported, i think
<dzoe>
Wow, I am pretty sure, that a few years ago it was a problem (and honestly - I haven't seen it since then an have been generating beamer slides using racket scripts ...)
countvajhula has joined #racket
<dzoe>
countvajhula: http://pasterack.org/pastes/97219 - I pasted it once you left, it seems that the #%top approach is possible as well
nan` has joined #racket
<dustyweb>
dzoe: I did not, as I warned I probably won't be able to look until next week
<countvajhula>
dzoe: very cool, thanks for spending time on that! I appreciate it
<dustyweb>
the reason being I am preparing a racketcon and 2 (though kinda 3) activitypub conference videos at once
<countvajhula>
I don't understand what #%top is, but maybe it will make sense eventually :)
<dzoe>
dustyweb: no worries, I am just really curious what will you say - it is REALLY simple
<dustyweb>
dzoe: oh wow ok yeah that does simplify a lot
<dustyweb>
I will merge that probably... once I test it
<dustyweb>
which won't be right now
<dzoe>
Really no rush :)
<dzoe>
Now my curiosity has been satisfied ;)
<dzoe>
I remember when I started playing with that a year or two ago and a was wondering why such strange ordering of bits - but if you look at the evolution of the encoding, it makes perfect sense.
<dustyweb>
col
<dustyweb>
cool
<dustyweb>
I really didn't reply to this
<dustyweb>
but wow
<dustyweb>
wait!
<dustyweb>
you can see how behind on issues I am but
<dzoe>
Go preparing your talk - that needs your time now :)
<dustyweb>
kinda surprised anyone got this working on windows
<dzoe>
That is virtualized Linux under some lightweight Hyper-V thing.
<dustyweb>
yeah
<dzoe>
And when you have more time, I'd like to have a chat about using Goblins for game development as well ... if you don't mind.
<dustyweb>
dzoe: let's talk next week!
<dzoe>
Awesome! Thank you very much.
<dzoe>
samth: I don't know if you recall, but I stated that I can use full 32bit unsafe fixnums under 32bit Racket - turns out, that I was just lucky. You can technically do that, but eventually you lose the 3 MSBs. I found out the hard way with BC on ARM.
<dzoe>
So it "mostly works" - but even with all the trickery I know it is impossible to make it work reliable for more than 29 bits (fixnum-for-every-system?)
<dzoe>
*reliably
bocaneri has quit [Read error: Connection reset by peer]
<countvajhula>
dzoe: do you think this approach could be extended to work on something like `(lift-(and add1) '(1 2 3))`? just curious regarding its limitations
<dzoe>
I doubt it - between "lift-" and "(" the parser will break it and "lift-(and" is therefore not a token you can play with."
<dzoe>
OTOH you can create lift- macro then.
<dzoe>
What should it exactly do?
<dzoe>
I'd ask at racket-users@ and include more verbose description of what you are trying to achieve.
<dzoe>
I am mostly doing weird hacks - you may well end up directly manipulating the syntax objects if you keep asking me :)
<countvajhula>
heheh
<countvajhula>
i'm mostly just trying to learn about the macro system, and ran into this issue when trying to implement the lift- macro that I thought would be convenient to have
<countvajhula>
since (map function collection) is something that comes up so often, and it'd be nice to hide the whole map thing behind a syntactic abstraction that we are simply "lifting" a normal function to operate on the collection
<countvajhula>
and (lift-function collection) seemed ideal compared to ((lift function) collection)
<countvajhula>
but yeah all this just as a macro-learning exercise really
<countvajhula>
or even learning more about Racket and alternate mechanisms like your solutions
<countvajhula>
and actually I was thinking more like (↑function collection) to really hide everything and make it simple haha
<dzoe>
(define ↑ map) (↑ function collection) :)
<countvajhula>
that's.... not bad. lol
badkins has quit [Remote host closed the connection]
true-grue has joined #racket
badkins has joined #racket
orivej has joined #racket
<countvajhula>
one impression i'm getting from all this though is that it could be useful to have a `(define-syntax-pattern ...)` form that's a "meta-macro", which maybe accepts regexes
<countvajhula>
and augments the expander to match regexes instead of literal matches
<dzoe>
I think you can do that - although it might not be an easy task.
<countvajhula>
i'm not sure where I would start with somethign like that.. doesn't sound like a reader extension
<countvajhula>
would it be a modification to the expander source itself?
badkins has quit [Ping timeout: 244 seconds]
<dzoe>
I think it should be possible purely in Racket.
<dzoe>
But proving that would require far more time than the #%top hack :)
<countvajhula>
even though it's a modification of the expansion phase?
<countvajhula>
food for thought :)
nan` has quit [Ping timeout: 256 seconds]
badkins has joined #racket
TCZ has joined #racket
caente has joined #racket
narimiran has quit [Ping timeout: 240 seconds]
<dzoe>
Is there a way to force scribble's racketblock to output numbers in hexadecimal format?
caente has quit [Ping timeout: 260 seconds]
FreeFull has joined #racket
badkins has quit [Remote host closed the connection]
badkins has joined #racket
badkins has quit [Remote host closed the connection]
badkins has joined #racket
nan` has joined #racket
nan` has quit [Ping timeout: 240 seconds]
badkins has quit [Remote host closed the connection]
remexre has quit [Quit: WeeChat 2.9]
true-grue has quit [Read error: Connection reset by peer]
mirrorbird has joined #racket
countvajhula has quit [Ping timeout: 256 seconds]
remexre has joined #racket
endformationage has joined #racket
mirrorbird has quit [Ping timeout: 256 seconds]
mirrorbird has joined #racket
selimcan has quit [Ping timeout: 240 seconds]
TCZ has quit [Quit: Leaving]
nan` has joined #racket
nan` has quit [Ping timeout: 260 seconds]
orivej has quit [Ping timeout: 260 seconds]
selimcan has joined #racket
selimcan has quit [Remote host closed the connection]
TCZ has joined #racket
caente has joined #racket
selimcan has joined #racket
notzmv has joined #racket
aeth_ has joined #racket
caente has quit [Remote host closed the connection]