<rudybot>
bremner: error: second: undefined; <NEWLINE> cannot reference an identifier before its definition <NEWLINE> in module: 'program
<bremner>
oops.
<bremner>
rudybot: init racket
<rudybot>
bremner: error: with-limit: out of time
<bremner>
hrm.
<bremner>
Nikon: sorry, I can't make the bot demo it. But does (second (second your-list)) work for you/
<Nikon>
no i need to basically check everything in the big list, keep it if y = the second entry
<Nikon>
i was thinking sift
<Nikon>
but i had no idea how to get it to use the list that was currently being checked
<bremner>
ah, that's a specific function for a course, I'm not familiar with sift.
<Nikon>
so in a nut shell, we have a list of lists, i want to go and look at the seecond value of the inner most list, and if it equals some y, then i want to keep that entry, if not i discard it
<bremner>
the "entry" being the list of lists?
<Nikon>
so as a first step ex: ((1 2) (3 4)) -> (1 2) -> does 2 = y? if yes continue, then (3 4) does y equal 4? if yes continue, if no remove (3 4)
<bremner>
that doesn't sound like a very rackety way of describing the algorithm. Is that your problem description?
<bremner>
I suspect you'd be better off trying to think about the problem recursively.
lavaflow has quit [Read error: Connection reset by peer]
<bremner>
or use a for/list if that's part of your course.
<Nikon>
yeah, sorry i'm helping my gf, i'm a C programmer so my algo doesnt work heh
<bremner>
looking at sift, it looks like it could work
<Nikon>
yeah thats what i was thinking, i just dont know how to make it evaluate like i want it to
<Nikon>
because i want it to look at the list of the list its currently evaluating
<Nikon>
but i'm not sure how to do that
<Nikon>
like the list in the current step of map you know?
lockywolf__ has quit [Remote host closed the connection]
lockywolf__ has joined #racket
cpup has quit [Ping timeout: 264 seconds]
cpup has joined #racket
pie_ has quit [Ping timeout: 252 seconds]
lockywolf__ has quit [Read error: Connection reset by peer]
lockywolf has joined #racket
Oxyd_ is now known as Oxyd
rand__ has quit [Ping timeout: 264 seconds]
phf_f334 has left #racket ["ERC (IRC client for Emacs 26.1)"]
vraid has quit [Ping timeout: 256 seconds]
lockywolf has quit [Read error: Connection reset by peer]
lockywolf has joined #racket
audriu has quit [Remote host closed the connection]
lockywolf has quit [Ping timeout: 276 seconds]
iyzsong-x has joined #racket
iyzsong has quit [Ping timeout: 252 seconds]
dustyweb has quit [Read error: Connection reset by peer]
kefin has joined #racket
iyzsong-x has quit [Ping timeout: 240 seconds]
pierpal has quit [Quit: Poof]
pierpal has joined #racket
soegaard has quit [Quit: soegaard]
pie_ has joined #racket
pierpal has quit [Ping timeout: 244 seconds]
nyaacarD has quit [Remote host closed the connection]
johnjay has joined #racket
soegaard has joined #racket
acarrico has joined #racket
dddddd has joined #racket
kefin has quit [Ping timeout: 246 seconds]
pierpal has joined #racket
pierpal has quit [Read error: Connection reset by peer]
pierpal has joined #racket
ziyourenxiang has quit [Ping timeout: 246 seconds]
dan_f has joined #racket
Welkin has joined #racket
pie_ has quit [Remote host closed the connection]
pie_ has joined #racket
pierpal has quit [Ping timeout: 244 seconds]
hz has joined #racket
pierpal has joined #racket
Welkin has quit [Quit: leaving]
kefin has joined #racket
pierpal has quit [Ping timeout: 240 seconds]
ZombieChicken has joined #racket
pera has joined #racket
nyaacarD has joined #racket
ym has quit [Quit: Leaving]
soegaard has quit [Quit: soegaard]
pierpal has joined #racket
pierpal has quit [Read error: Connection reset by peer]
soegaard has joined #racket
vraid has joined #racket
johnjay has quit [Ping timeout: 256 seconds]
benner has joined #racket
georges-duperon has quit [Ping timeout: 252 seconds]
Welkin has joined #racket
pierpal has joined #racket
pierpal has quit [Read error: Connection reset by peer]
Welkin has quit [Ping timeout: 246 seconds]
pierpal has joined #racket
pierpal has quit [Read error: Connection reset by peer]
Welkin has joined #racket
pierpal has joined #racket
dented42 has joined #racket
pierpal has quit [Read error: Connection reset by peer]
dented42 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rand__ has joined #racket
SenasOzys has joined #racket
SenasOzys has quit [Client Quit]
hz has quit [Read error: Connection reset by peer]
georges-duperon has joined #racket
ubLIX has joined #racket
pera has quit [Ping timeout: 240 seconds]
rand__ has quit [Ping timeout: 246 seconds]
libertyprime has joined #racket
pera has joined #racket
Welkin has quit [Quit: leaving]
Nyanraltotlapun has joined #racket
<winny>
i've been using racket for quite awhile, and still don't quite follow the "racket-way" to make your own languages via transforming the syntax then defining your own s-expression based language. Is there a terse guide about this besides beautiful racket?
<winny>
rather, i guess what has me tied up is the best way to define a reader that isn't related to racket syntax in any way
* winny
crosses fingers and hopes to make racket school 2019
<rain2>
you can do it using my peg parser winny
<winny>
:) i'd enjoy reading it
<winny>
i just remembered there is the paper that uses MiniJava which seems a bit more consumable
<winny>
I'm not certain if that made sense, my one semester exposure to the subject could use some self-study
<rain2>
it's kind of close of CFG but it doesn't fit exactly into one of these standard classes, because it picks a less theoretically pure but more pragmatically useful option of left biasing alternation
<rain2>
in terms of parsing programming languages this choice is pragmatic because it lets you do things like dangling else
<winny>
interesting. I'm sure this paper will describe that too
soegaard has quit [Quit: soegaard]
YuGiOhJCJ has joined #racket
<winny>
so my understanding is PEG gives you two things: (1) lookahead-like checking on the grammar (2) a simpler way to encode precedence and alternate syntaxes
<winny>
oh and less ambiguity with greedy matching
<rain2>
yeah and it also has semantic actions
<rain2>
so you can put minor AST transformations into the parser source code itself
<winny>
is that a kind of extension to the original work (ford 2004)?
<rain2>
I think that it did come a bit later, not certain
<rain2>
that idea can be taken much further with attribute grammars
calwoo has joined #racket
<Nyanraltotlapun>
Hi, ffi question, what exactly happening when I call some math function (for example bitwise-xor) on ctype(_uint64)? Performance wise...
<Nyanraltotlapun>
I am trying to write some efficient bytestring comparison, and the idea to get cpointer to bytestring and use it as _uint64 reference
georges-duperon has quit [Ping timeout: 272 seconds]
YuGiOhJCJ has quit [Ping timeout: 256 seconds]
lavaflow has quit [Read error: Connection reset by peer]
lavaflow has joined #racket
ziyourenxiang has joined #racket
calwoo has quit [Ping timeout: 246 seconds]
acarrico has quit [Ping timeout: 252 seconds]
acarrico has joined #racket
acarrico has quit [Ping timeout: 240 seconds]
kefin has quit [Read error: Connection reset by peer]