[00:09:56] * tgunr [tgunr!~davec@dsl-dhcp-conrtxxahre-76-164-90-16.consolidated.net] has quit (Quit: My MacBook has gone to sleep. ZZZzzz…). [01:15:41] * zolk3ri [zolk3ri!~zolk3ri@gateway/tor-sasl/zolk3ri] has quit (Remote host closed the connection). [04:08:40] * craigo [craigo!~craigo@144.136.206.168] has joined the channel. [05:58:12] * zolk3ri [zolk3ri!~zolk3ri@gateway/tor-sasl/zolk3ri] has joined the channel. [05:58:33] https://gitweb.factorcode.org/gitweb.cgi returns 502 Bad Gateway. [06:47:35] * Sgeo [Sgeo!~Sgeo@ool-18b982ad.dyn.optonline.net] has quit (Read error: Connection reset by peer). [08:41:12] * zolk3ri [zolk3ri!~zolk3ri@gateway/tor-sasl/zolk3ri] has quit (Remote host closed the connection). [08:58:13] * ephe_meral2 [ephe_meral2!~amnesia@217.9.41.114] has joined the channel. [09:05:34] * ephe_meral2 [ephe_meral2!~amnesia@217.9.41.114] has quit (Ping timeout: 258 seconds). [09:25:18] * ephe_meral2 [ephe_meral2!~amnesia@217.9.41.114] has joined the channel. [09:36:37] * ephe_meral2 [ephe_meral2!~amnesia@217.9.41.114] has quit (Ping timeout: 258 seconds). [09:42:43] * ephe_meral2 [ephe_meral2!~amnesia@217.9.41.114] has joined the channel. [10:34:45] * ephe_meral2 [ephe_meral2!~amnesia@217.9.41.114] has quit (Ping timeout: 240 seconds). [11:38:37] * ephe_meral2 [ephe_meral2!~amnesia@217.9.41.114] has joined the channel. [12:34:04] We moved to GitHub, so that's not surprising. Is something still referencing that? [12:52:25] * ephe_meral2 [ephe_meral2!~amnesia@217.9.41.114] has quit (Ping timeout: 240 seconds). [12:52:51] * craigo_ [craigo_!~craigo@144.136.206.168] has joined the channel. [12:55:14] * craigo [craigo!~craigo@144.136.206.168] has quit (Ping timeout: 260 seconds). [13:15:32] * ephe_meral2 [ephe_meral2!~amnesia@217.9.41.114] has joined the channel. [15:06:13] * ephe_meral2 [ephe_meral2!~amnesia@217.9.41.114] has quit (Ping timeout: 264 seconds). [15:15:13] * ephe_meral2 [ephe_meral2!~amnesia@217.9.41.114] has joined the channel. [15:17:21] * [1]MrMobius [[1]MrMobius!~MrMobius@208.58.206.154] has joined the channel. [15:19:19] * MrMobius [MrMobius!~MrMobius@208.58.206.154] has quit (Ping timeout: 258 seconds). [15:19:19] * [1]MrMobius is now known as MrMobius [15:38:34] * tgunr [tgunr!~davec@dsl-dhcp-conrtxxahre-76-164-109-108.consolidated.net] has joined the channel. [16:01:05] * tgunr [tgunr!~davec@dsl-dhcp-conrtxxahre-76-164-109-108.consolidated.net] has quit (Ping timeout: 240 seconds). [16:06:28] * ephe_meral2 [ephe_meral2!~amnesia@217.9.41.114] has quit (Ping timeout: 258 seconds). [16:19:05] * tgunr [tgunr!~davec@dsl-dhcp-conrtxxahre-76-164-109-108.consolidated.net] has joined the channel. [16:23:25] * tgunr [tgunr!~davec@dsl-dhcp-conrtxxahre-76-164-109-108.consolidated.net] has quit (Ping timeout: 240 seconds). [16:26:14] * tgunr [tgunr!~davec@dsl-dhcp-conrtxxahre-76-164-109-108.consolidated.net] has joined the channel. [16:27:23] * tgunr [tgunr!~davec@dsl-dhcp-conrtxxahre-76-164-109-108.consolidated.net] has quit (Client Quit). [16:28:12] * Sgeo [Sgeo!~Sgeo@ool-18b982ad.dyn.optonline.net] has joined the channel. [16:55:46] * craigo_ [craigo_!~craigo@144.136.206.168] has quit (Ping timeout: 246 seconds). [17:28:12] * ptrkriz [ptrkriz!~ptrkriz@81.4.110.225] has joined the channel. [17:28:20] Hey. [17:28:41] How could I run words that take 1 or 2 arguments with n arguments? Such as: append, append-path, and the like? [17:29:46] Like I want to have "a" "b" "c" "d" with append-path, but in a way different from "a" "b" append-path "c" append-path, and "a" "b" "c" [ append-path ] dip append-path [17:30:23] I am sure there's a way to type "append-path" (or anything else) once, and then run it on as many arguments as I want, say inside a [ or a {, not sure. [17:59:32] I had something else than "nappend" in mind [17:59:40] one that doesn't require "n", [18:00:05] like call append-path on all elements of a list or something? idk [18:08:36] hmm I have a constant and that doesn't work with { CONSTANT_VAR ANOTHER } concat [18:08:49] : [18:08:52] :/ [18:09:12] not sure why [18:27:49] anyone? [18:28:01] why cant i use constant inside { } [18:53:10] ah I see [18:53:14] $[ works [19:04:08] Hello [19:04:12] Yeah, due to how the parser works. [19:04:38] ptrkriz: There is no way to have vararg words in Factor. You would use a list instead. { "a" "b" "c" "d" } append-path or the like. [19:04:50] The only exceptions are parsing words. [19:06:54] { "a" "b" "c" } append-path does not work though, do you know how I could make it work with the least code? [19:07:11] ideally not just append-path but anything else similar to it [19:09:16] I was more speaking about the approach taken. [19:09:23] Are you writing your own word or what? [19:09:47] And are you looking just at paths, or you're asking more generically about functions with variable numbers of arguments? [19:10:45] I'm asking because the general way to do this in Factor would just be to use actual pathnames (which look P" like/this") [19:11:17] Since you can do multiple components, and they'll be properly understood/parsed, you don't need the kind of `pathlib.join` stuff you get in e.g. Python quite the same way. Usually an `append-path` and a `canonicalize-path` is enough. [19:12:50] In terms of things that have variable numbers of arguments, though, those don't exist; as I noted, you'd use arrays. You could look at e.g. `and` v. the `0&&`/`1&&`/etc. words to see a simple example (or the `n&&` word to see how macros let you slightly flaunt what I just said) [19:47:46] * ephe_meral2 [ephe_meral2!~amnesia@ip5f5bf7d1.dynamic.kabel-deutschland.de] has joined the channel. [19:59:36] bmp: general way [19:59:49] could be append, append-paths, or anything else [20:00:19] Maybe look at `concat`? [20:00:24] If I get what you're asking? [20:03:07] CONSTANT: VAR-DIR $[ { $[ GIT-DIR ] "/" $[ REPO-NAME ] ".git/var" } concat ] [20:03:12] I use concat like this right now [20:03:17] is there a better way for this? [20:24:44] Not as such, but I'd need to see more of what you were doing to really grok what's going on here. I'm a bit confused why you're hardcoding the git dir but not just using a string. [20:43:25] hmm [20:44:05] yeah not the best way to do it [20:57:41] will just use symbol + variables [21:13:47] * ephe_meral2 [ephe_meral2!~amnesia@ip5f5bf7d1.dynamic.kabel-deutschland.de] has quit (Ping timeout: 240 seconds). [23:22:16] ptrkriz: Have you looked at the path word (P") that I mentioned above? [23:22:25] It might be a good fit for that constant, depending. [23:33:45] bmp: yeah [23:33:49] bmp: I need another help tho [23:33:54] I mean wrt anothr thing [23:34:09] I got [23:34:19] : foo ( -- ) "." absolute-path current-directory get ; [23:34:21] and MAIN: foo [23:34:37] it says inferred ( -- x x ) [23:34:38] so I change it [23:34:49] then it says [23:34:52] * craigo_ [craigo_!~craigo@144.136.206.168] has joined the channel. [23:34:55] MAIN: foo [23:35:06] got ( -- ), expected ( -- x x ) [23:35:12] how do I fix this? [23:35:21] it seems as if MAIN can only have ( -- )? [23:35:53] that's odd though, I did manage to print some stuff out with it, when it was just ( -- x ) [23:35:58] I'm not sure I get it [23:36:48] deploy-tool only runs if it's ( -- ) but I get a bug [23:36:52] You have triggered a bug in Factor. Please report. [23:39:04] hmm [23:39:28] oh [23:39:32] I get it now [23:39:46] fixed, works [23:41:26] forgot to print :p [23:47:54] I'm gonna be laggy but I will help. Looks like you're okay for the moment tho?