[00:01:24] * NB0X is now known as NB0X-QRT [00:05:23] * NB0X-QRT is now known as NB0X [00:28:25] * pierpal [pierpal!~pierpal@host84-235-dynamic.181-80-r.retail.telecomitalia.it] has joined the channel. [00:37:34] * NB0X [NB0X!~discrttm@unaffiliated/discrttm] has quit (Quit: My MacBook has gone to sleep. ZZZzzz…). [01:06:57] * pierpal [pierpal!~pierpal@host84-235-dynamic.181-80-r.retail.telecomitalia.it] has quit (Ping timeout: 264 seconds). [01:23:04] * eht [eht!~eht@c-73-118-141-207.hsd1.wa.comcast.net] has joined the channel. [01:56:16] * eht [eht!~eht@c-73-118-141-207.hsd1.wa.comcast.net] has left the channel ("Leaving"). [02:53:41] * pierpa [pierpa!50b5eb54@gateway/web/freenode/ip.80.181.235.84] has quit (Quit: Page closed). [02:55:50] * pierpal [pierpal!~pierpal@host84-235-dynamic.181-80-r.retail.telecomitalia.it] has joined the channel. [03:13:03] * pierpal [pierpal!~pierpal@host84-235-dynamic.181-80-r.retail.telecomitalia.it] has quit (Quit: Poof). [03:13:23] * pierpal [pierpal!~pierpal@host84-235-dynamic.181-80-r.retail.telecomitalia.it] has joined the channel. [03:15:47] * lugh [lugh!~lugh@chame.co] has joined the channel. [04:19:29] * pierpal [pierpal!~pierpal@host84-235-dynamic.181-80-r.retail.telecomitalia.it] has quit (Quit: Poof). [04:19:50] * pierpal [pierpal!~pierpal@host84-235-dynamic.181-80-r.retail.telecomitalia.it] has joined the channel. [06:03:36] * raingloom [raingloom!~raingloom@C2267141.catv.pool.telekom.hu] has joined the channel. [06:22:35] * raingloom [raingloom!~raingloom@C2267141.catv.pool.telekom.hu] has quit (Ping timeout: 240 seconds). [06:26:35] * pierpal [pierpal!~pierpal@host84-235-dynamic.181-80-r.retail.telecomitalia.it] has quit (Quit: Poof). [06:26:55] * pierpal [pierpal!~pierpal@host84-235-dynamic.181-80-r.retail.telecomitalia.it] has joined the channel. [07:47:28] * pierpal [pierpal!~pierpal@host84-235-dynamic.181-80-r.retail.telecomitalia.it] has quit (Quit: Poof). [07:47:47] * pierpal [pierpal!~pierpal@host84-235-dynamic.181-80-r.retail.telecomitalia.it] has joined the channel. [08:05:52] * erkin [erkin!~erkin@unaffiliated/erkin] has joined the channel. [08:55:39] * nowhere_man [nowhere_man!~pierre@2a01:e35:2eb3:4350:3fcb:8255:8d52:d188] has quit (Read error: Connection reset by peer). [08:59:39] * nowhere_man [nowhere_man!~pierre@2a01:e35:2eb3:4350:3fcb:8255:8d52:d188] has joined the channel. [10:02:07] doublec: Thanks [12:30:41] * kalkin- [kalkin-!~kalkin-@x4dbc5617.dyn.telefonica.de] has joined the channel. [12:30:42] hi [12:31:53] I want to have an optional slot on a TUPLE in Factor. I found the word maybe{ } and defined a Tuple like this Foo { bar maybe{ string } read-only } [12:32:48] Now when I do f >json I get { "bar": false } instead of an empty {} [12:33:21] How can I get the result I expect? [12:59:36] kalkin-: looks like the json library uses which gives f for each empty slot, which translates to json false [13:19:09] * erkin [erkin!~erkin@unaffiliated/erkin] has quit (Quit: Ouch! Got SIGIRL, dying...). [13:24:03] erg: k, I found it [13:24:11] how would I fix it the factor/forth way? [13:24:43] Reimplementing the function json-print-assoc? [13:26:07] kalkin-: is it broken? i guess you want a minimal factor object representation in json? [13:26:42] if you just want an associative structure you can use H{ { 1 2 } } >json . [13:35:07] erg: I actually need to convert tupple to hashtable, then remove the maybe slot if empty and then do >json [13:38:20] * pierpal [pierpal!~pierpal@host84-235-dynamic.181-80-r.retail.telecomitalia.it] has quit (Quit: Poof). [13:40:43] * pierpal [pierpal!~pierpal@host84-235-dynamic.181-80-r.retail.telecomitalia.it] has joined the channel. [13:40:51] * pierpal [pierpal!~pierpal@host84-235-dynamic.181-80-r.retail.telecomitalia.it] has quit (Client Quit). [13:41:45] TUPLE: foo { bar maybe{ string } read-only } ; foo new >alist [ nip ] H{ } assoc-filter-as >json [13:42:23] kalkin-: you can ``{ } assoc-filter-as`` if you need a json list instead of dict [13:42:49] * pierpal [pierpal!~pierpal@host84-235-dynamic.181-80-r.retail.telecomitalia.it] has joined the channel. [13:49:43] Thank you very much! [13:53:26] One more thing that I don't understand yet [13:54:58] Given i have TUPLE: movie { directory string read-only } { version intial: "2.0" } { stars maybe{ string } read-only } [13:55:14] My stack contains a string "asd" [13:56:16] I want to do something like this movie new >>director and get a movie{{director Asd"} {version "2.0"} { stars f }} [13:56:57] But I get an error [13:57:18] What is the Factor way of achieving this? [13:57:20] USE: constructors CONSTRUCTOR: movie ( director -- movie ) ; [13:57:40] ohh there is a vocabulary for that. I see. Thanks [13:58:39] np [15:04:27] * Sonderblade [Sonderblade!~bjourne@n136-p140.eduroam.kth.se] has joined the channel. [15:16:23] https://github.com/factor/factor/blob/227e9d66728ba90352aaed68c3c18eac1fb8d3ba/extra/dns/dns.factor#L411 cool huh? [15:25:35] * pierpal [pierpal!~pierpal@host84-235-dynamic.181-80-r.retail.telecomitalia.it] has quit (Quit: Poof). [15:25:55] * pierpal [pierpal!~pierpal@host84-235-dynamic.181-80-r.retail.telecomitalia.it] has joined the channel. [17:28:24] * nowhere_man [nowhere_man!~pierre@2a01:e35:2eb3:4350:3fcb:8255:8d52:d188] has quit (Remote host closed the connection). [17:29:18] * nowhere_man [nowhere_man!~pierre@2a01:e35:2eb3:4350:3fcb:8255:8d52:d188] has joined the channel. [17:43:36] * nowhere_man [nowhere_man!~pierre@2a01:e35:2eb3:4350:3fcb:8255:8d52:d188] has quit (Remote host closed the connection). [17:43:59] * nowhere_man [nowhere_man!~pierre@2a01:e35:2eb3:4350:3fcb:8255:8d52:d188] has joined the channel. [18:16:10] * Sonderblade [Sonderblade!~bjourne@n136-p140.eduroam.kth.se] has quit (Quit: Konversation terminated!). [18:24:02] * pierpal [pierpal!~pierpal@host84-235-dynamic.181-80-r.retail.telecomitalia.it] has quit (Quit: Poof). [18:24:22] * pierpal [pierpal!~pierpal@host84-235-dynamic.181-80-r.retail.telecomitalia.it] has joined the channel. [18:49:20] * tgunr [tgunr!~davec@cpe-76-173-67-52.hawaii.res.rr.com] has joined the channel. [18:49:56] * nowhere_man [nowhere_man!~pierre@2a01:e35:2eb3:4350:3fcb:8255:8d52:d188] has quit (Ping timeout: 256 seconds). [18:53:35] * tgunr [tgunr!~davec@cpe-76-173-67-52.hawaii.res.rr.com] has quit (Ping timeout: 240 seconds). [20:51:40] * raingloom [raingloom!~raingloom@C2267141.catv.pool.telekom.hu] has joined the channel. [20:59:42] * pierpal [pierpal!~pierpal@host84-235-dynamic.181-80-r.retail.telecomitalia.it] has quit (Ping timeout: 256 seconds). [21:28:02] * kalkin- [kalkin-!~kalkin-@x4dbc5617.dyn.telefonica.de] has quit (Remote host closed the connection). [22:35:13] * NB0X [NB0X!~discrttm@unaffiliated/discrttm] has joined the channel. [22:48:18] * pierpa [pierpa!50b5eb54@gateway/web/freenode/ip.80.181.235.84] has joined the channel. [23:13:53] * NB0X is now known as NB0X-QRT