00:00:01 | * | junland quit (Quit: %ZNC Disconnected%) |
00:01:54 | * | junland joined #nim |
00:04:38 | FromDiscord_ | <mratsim> you can cast[string](yourSeqChar) |
00:04:53 | FromDiscord_ | <mratsim> it has the same representation, the GC will not get lost in translation |
00:09:28 | * | smitop joined #nim |
00:10:44 | * | minierolls joined #nim |
00:11:46 | minierolls | I noticed that "nimble install" compiles a debug version of the project |
00:11:53 | minierolls | is there a way to get it to compile a release version instead |
00:13:13 | shashlick | Nimble install should be creating a -d:release version |
00:13:59 | minierolls | interesting.. when I ran the nimble install version of my project, debugEcho was still printing |
00:15:08 | FromDiscord_ | <mratsim> debugEcho always print, what it does is not causing issue with func / {.nosideeffect.} tag |
00:16:29 | * | endragor joined #nim |
00:16:54 | minierolls | Ah I see, I guess I misunderstood some parts of debugEcho |
00:16:56 | minierolls | Thank you! |
00:20:04 | * | sentreen joined #nim |
00:21:17 | * | endragor quit (Ping timeout: 250 seconds) |
00:27:00 | * | krux02_ joined #nim |
00:27:19 | * | minierolls quit (Quit: WeeChat 2.4) |
00:31:02 | * | krux02 quit (Ping timeout: 276 seconds) |
00:50:26 | * | endragor joined #nim |
00:54:52 | * | nif quit (Quit: ...) |
00:55:02 | * | nif_ joined #nim |
00:59:02 | * | dwdv quit (Ping timeout: 268 seconds) |
01:02:14 | * | endragor quit (Ping timeout: 276 seconds) |
01:06:08 | * | sentreen quit (Ping timeout: 276 seconds) |
01:18:48 | * | sentreen joined #nim |
01:25:33 | * | sentreen quit (Ping timeout: 265 seconds) |
01:34:01 | disruptek | 0.0.24 nimph add araq's 🔱 |
01:34:08 | disruptek | free releases for everyone! |
01:38:58 | * | sentreen joined #nim |
01:46:30 | * | uu91 quit (Read error: Connection reset by peer) |
01:46:45 | * | uu91 joined #nim |
01:50:21 | FromDiscord_ | <treeform> Wow I got to step up my game with nimby. |
01:51:58 | disruptek | nah, come to the dark side. we'll do lockfiles tomorrow. |
01:52:49 | disruptek | iirc, most of your nimby opinions are the same as mine. i just wanted more portability to nimble projects. |
02:20:18 | * | thomasross_ joined #nim |
02:20:18 | * | thomasross quit (Killed (tolkien.freenode.net (Nickname regained by services))) |
02:20:18 | * | thomasross_ is now known as thomasross |
02:39:20 | * | thomasross_ joined #nim |
02:39:20 | * | thomasross is now known as Guest57541 |
02:39:20 | * | thomasross_ is now known as thomasross |
02:39:33 | * | Guest57541 quit (Ping timeout: 268 seconds) |
03:19:39 | * | furry joined #nim |
03:19:44 | furry | what up my nimmas |
03:19:50 | furry | these are real nimma hours |
03:20:03 | * | furry is now known as Guest85887 |
03:29:48 | * | uu91 quit (Read error: Connection reset by peer) |
03:31:06 | * | uu91 joined #nim |
03:34:48 | FromDiscord_ | <yewpad> what's all about this nimby and nimph talk? |
03:35:35 | FromDiscord_ | <yewpad> nimby is a package manager, gotcha |
03:37:51 | FromDiscord_ | <yewpad> and nimph is also a package manager? ok, we're gonna have a nim package manager fight pretty soon I think. Making Nimble competition huh |
03:40:29 | * | Guest85887 quit (Remote host closed the connection) |
03:47:15 | * | thomasross_ joined #nim |
03:47:15 | * | thomasross is now known as Guest95286 |
03:47:15 | * | thomasross_ is now known as thomasross |
03:49:14 | * | Guest95286 quit (Ping timeout: 268 seconds) |
04:09:03 | * | smitop quit (Quit: Connection closed for inactivity) |
04:10:12 | * | thomasross quit (Ping timeout: 268 seconds) |
04:11:23 | * | chemist69 quit (Ping timeout: 252 seconds) |
04:13:24 | * | chemist69 joined #nim |
04:14:29 | * | uu91 quit (Read error: Connection reset by peer) |
04:14:43 | * | uu91 joined #nim |
04:15:11 | * | endragor joined #nim |
04:19:37 | madprops | how can i init a seq and add some values in the same line? |
04:20:19 | nisstyre | madprops: let foo : seq[int] = @[1,2,3] |
04:28:15 | * | abm quit (Quit: Leaving) |
04:55:02 | FromDiscord_ | <yewpad> Even simpler: let foo = @[1,2,3] |
04:55:14 | * | narimiran joined #nim |
04:58:51 | * | uu91 quit (Read error: Connection reset by peer) |
04:59:07 | * | uu91 joined #nim |
05:17:25 | * | crem quit (Ping timeout: 268 seconds) |
05:18:17 | * | endragor quit (Ping timeout: 240 seconds) |
05:19:52 | * | crem joined #nim |
05:35:19 | * | uu91 quit (Read error: Connection reset by peer) |
05:35:33 | * | uu91 joined #nim |
05:54:41 | FromGitter | <bung87> what happened to List Comprehension? |
05:55:25 | narimiran | now it is a nimble package |
05:59:58 | * | uu91 quit (Read error: Connection reset by peer) |
06:00:16 | * | uu91 joined #nim |
06:04:59 | Araq | bung87: also try the new sugar.collect macro |
06:05:13 | Araq | which is our replacement for list comprehensions |
06:07:20 | * | uu91 quit (Read error: Connection reset by peer) |
06:08:01 | FromGitter | <bung87> nimble install "https://github.com/nim-lang/graveyard?subdir=lc" ⏎ Downloading https://github.com/nim-lang/graveyard using git (subdir is 'lc') ⏎ ⏎ ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=5de358c11659720ca8d9d886] |
06:08:04 | * | uu91 joined #nim |
06:09:12 | * | thomasross joined #nim |
06:10:29 | FromGitter | <bung87> @Araq ok, I checked it 's list in devel doc. |
06:11:06 | * | uu91 quit (Read error: Connection reset by peer) |
06:11:23 | * | uu91 joined #nim |
06:27:41 | * | uu91 quit (Read error: Connection reset by peer) |
06:28:08 | * | uu91 joined #nim |
06:34:27 | * | uu91 quit (Read error: Connection reset by peer) |
06:34:43 | * | uu91 joined #nim |
07:00:34 | * | uu91 quit (Read error: Connection reset by peer) |
07:00:51 | * | uu91 joined #nim |
07:01:08 | * | uu91 quit (Read error: Connection reset by peer) |
07:01:21 | * | uu91 joined #nim |
07:01:23 | * | solitudesf joined #nim |
07:03:25 | * | uu91 quit (Read error: Connection reset by peer) |
07:03:39 | * | uu91 joined #nim |
07:16:54 | * | ponyrider joined #nim |
07:23:04 | FromGitter | <bung87> (https://files.gitter.im/nim-lang/Nim/Pm7c/Screenshot-2019-12-01-at-3.22.49-PM.png) |
07:23:30 | FromGitter | <bung87> am I missing something why 0.18.1 |
07:24:43 | * | nsf joined #nim |
07:27:02 | * | pbb quit (Ping timeout: 276 seconds) |
07:27:02 | * | Yardanico quit (Ping timeout: 276 seconds) |
07:28:03 | * | pbb joined #nim |
07:28:49 | * | Yardanico joined #nim |
07:29:42 | FromDiscord_ | <Rika> check your path |
07:30:08 | narimiran | nah, it was a problem on our end, should be fixed now |
07:30:16 | FromDiscord_ | <Rika> 🤔 |
07:30:24 | FromDiscord_ | <Rika> interesting, what was the issue |
07:30:37 | narimiran | i half-assed moving `lc` to graveyard :) |
07:30:49 | narimiran | i forgot it needs `lc.nimble` |
07:32:06 | FromGitter | <bung87> seems choosenim not propertly release 0.5.0 , it just release git archives. |
07:33:15 | FromGitter | <bung87> (https://files.gitter.im/nim-lang/Nim/aFaw/Screenshot-2019-12-01-at-3.33.04-PM.png) |
07:42:35 | FromGitter | <bung87> @narimiran I sent feedback to you |
07:44:40 | sealmove | can I make a NimNode representing a reference type by something like `ident("ref myType")`? |
07:44:51 | sealmove | or do I need to construct it? |
07:48:18 | * | uu91 quit (Read error: Connection reset by peer) |
07:48:33 | * | uu91 joined #nim |
08:00:00 | * | gmpreussner quit (Quit: kthxbye) |
08:05:05 | * | gmpreussner joined #nim |
08:05:30 | Araq | newTree(nnkRefTy, ident"myType") |
08:07:38 | FromDiscord_ | <Rika> anything for unzipping/decompressing any generic zip file in nim? or do i have to use a c library |
08:12:47 | Araq | !github zip |
08:12:48 | disbot | https://github.com/juancarlospaco/biblioteca-guarrilla -- 11Simple web to share books, Calibre, Jester, Spectre CSS, No JavaScript, WebP & ZIP to reduce bandwidth 8 5⭐15 0🍴 |
08:13:43 | Araq | nimble search zip |
08:13:53 | Araq | !nimble search zip |
08:14:03 | Araq | !search zip |
08:14:04 | disbot | https://github.com/Beamdog/nwsync/issues/1 -- 3Dependency zip - Build issue @11WilliamDraco 7& 29 more... |
08:14:30 | Araq | disbot is weird, so type in 'nimble search zip' for yourself |
08:17:25 | * | matic joined #nim |
08:21:13 | matic | mratsim: I have not solved it, can you help? https://play.nim-lang.org/#ix=23eA |
08:24:58 | * | dddddd quit (Remote host closed the connection) |
08:26:12 | * | Perkol joined #nim |
08:29:33 | madprops | any tips on how to generate an object/table of a filesystem. For instance if I have a path, I want to gather every file inside it, including directories and their contents, all of it ?? |
08:29:53 | madprops | right now im recursively traversing through it and printing stuff along the way |
08:30:11 | madprops | but since i have to scan files multiple times, it's not very efficient |
08:30:35 | madprops | so im thinking of having the full representation first, and then print using that |
08:42:19 | madprops | oh guess walkdirRec would give me all the paths i need |
08:43:00 | madprops | but maybe i should turn it into some structure to use later on |
08:43:22 | madprops | or just analyze the strings on the go |
08:58:45 | FromDiscord_ | <spacepluk> hi 🖖 |
09:07:08 | * | dwdv joined #nim |
09:10:02 | * | crem quit (Read error: Connection reset by peer) |
09:12:27 | * | crem joined #nim |
09:49:06 | FromDiscord_ | <mratsim> hi |
09:52:08 | * | filcuc_ joined #nim |
09:55:58 | FromDiscord_ | <Rika> hello |
10:03:26 | matic | Hello |
10:12:56 | matic | @mratsim: I have not solved it, can you help? https://play.nim-lang.org/#ix=23eA |
10:29:48 | solitudesf | matic, https://play.nim-lang.org/#ix=23gX |
10:32:07 | matic | solitudesf: Excellent, thanks. Why does it work this way, can you explain please? |
10:35:07 | FromGitter | <bung87> @Araq is it possible to make nim target typescript or build js module ? |
10:37:42 | * | Perkol quit (Quit: Leaving) |
10:40:26 | solitudesf | matic, you use size in quote do, so it get injected literally, but there is not size symbol where you instantiate the macro. use --expandMacro for debugging. |
10:41:47 | * | njoseph quit (Ping timeout: 268 seconds) |
10:43:10 | matic | solitudesf: Ahh, now I get it. Weird that I didn't notice these things, thanks. Never knew about '--expandMacro', Nim is getting big. |
10:52:05 | * | ng0 joined #nim |
10:58:17 | Araq | bung87: via .emit and .exportc it should be possible but it's usually best to keep your main in Nim and import from JS/TS what you need |
11:02:23 | * | filcuc_ quit (Ping timeout: 245 seconds) |
11:10:52 | * | clyybber joined #nim |
11:11:34 | * | clyybber quit (Client Quit) |
11:14:48 | FromGitter | <bung87> @Araq using .exportc I have function name without modified, I will check .emit later, I just trying make a tiny js module, write it in Nim to make it more readable and maintainable |
11:19:39 | * | njoseph joined #nim |
11:26:53 | * | clyybber joined #nim |
11:30:07 | * | lritter joined #nim |
11:59:22 | * | clyybber quit (Quit: WeeChat 2.6) |
12:01:23 | * | uvegbot quit (Quit: Konversation terminated!) |
12:01:37 | * | uvegbot joined #nim |
12:04:20 | * | tane joined #nim |
12:16:16 | * | clyybber joined #nim |
12:18:14 | Araq | clyybber, I fixed the bug, see my pR |
12:19:05 | * | Perkol joined #nim |
12:19:19 | FromDiscord_ | <jbr93> Has anyone been able to get `ui` working on MacOS? I made an issue but there doesn't seem to be a solution |
12:20:37 | Araq | jbr93: iirc the examples worked for me on OSX |
12:21:01 | Araq | without any trouble |
12:21:10 | clyybber | Araq: I see, I fixed it the same way I think, except that I didn't call genSink directly |
12:21:31 | clyybber | Any reason why we don't use moveOrCopy there? |
12:23:06 | * | matic quit (Quit: Leaving) |
12:28:02 | FromDiscord_ | <jbr93> I'll pull down and try again. This is the issue: https://github.com/nim-lang/ui/issues/11 |
12:29:07 | Araq | clyybber, dunno, I used the logic for nkCallKinds |
12:29:17 | FromDiscord_ | <Lantos> @pmunch just watched the video on metaprograming you did at FOSDEM. Nice job do you have a youtube page that you upload to? |
12:29:25 | Araq | and promptly got biten by p vs pArg again |
12:30:26 | Araq | libui on OSX does not use gtk3 anyway iirc |
12:30:36 | Araq | I've no idea what you're doing |
12:31:31 | clyybber | Araq: The problem with unifying pArg and p is that we will still have to have a parameter `behaveLikeParg: bool` or someting like that |
12:31:33 | Araq | clyybber, moveOrCopy takes a destination when we move nkConv we don't have a destination ready so we need pArg |
12:31:54 | Araq | we already have the 'isSink' parameter and 'consumed' |
12:32:06 | clyybber | Yeah, they should be merged in some way, no? |
12:32:12 | Araq | yeah |
12:32:34 | Araq | here is what all the other code generators do: |
12:33:00 | Araq | proc gen(c; n: PNode; dest: T) # dest can be 'nil' or -1 if we don't have a destination to bind the expression to |
12:33:30 | Araq | and I don't see why injectdestructors cannot use the same pattern |
12:34:24 | clyybber | Ok, I'm gonna try that today. |
12:35:16 | clyybber | bbl |
12:35:20 | * | clyybber quit (Quit: WeeChat 2.6) |
12:44:02 | * | tane quit (Quit: Leaving) |
12:53:39 | dom96 | 1.0.4 missing +x on nimble binary? https://github.com/dom96/choosenim/issues/147 |
12:53:44 | dom96 | CC Araq narimiran |
12:56:52 | FromGitter | <bung87> https://github.com/bung87/datetime_parse/blob/63a8f91f4b9342325f0c5d7cf4623ced85a52fc7/src/datetime_parse.nim#L116 does this worth something,? after done it I have no idea now... |
12:59:22 | * | endragor joined #nim |
13:00:06 | FromGitter | <bung87> (https://files.gitter.im/nim-lang/Nim/EzvX/Screenshot-2019-12-01-at-8.59.53-PM.png) |
13:03:37 | Araq | dom96, no idea, everything is automated |
13:04:54 | dom96 | hrm, it could actually be due to the change in the way choosenim extracts the tarball :/ |
13:06:14 | Araq | in fact, I wrote a Nim program to automate these things further :P |
13:06:38 | Zevv | pfff, don't you automate the writing of your Nim programs? |
13:07:42 | Araq | that's mratsim's task |
13:08:03 | Araq | we'll use his deep learning framework for automated compiler development |
13:08:55 | Zevv | yeah, every programmar once came up with this great idea: "if only I had to write the tests and the program wrote itself" |
13:09:17 | Zevv | imagine the monstrosities that thing would come up with to satisfy your tests criteria |
13:09:34 | FromGitter | <alehander92> i seriously planned simple version of it |
13:09:40 | FromGitter | <alehander92> as you can imagine |
13:09:48 | FromGitter | <alehander92> with many of the comp sci bad ideas |
13:12:38 | Araq | "Test a VM relative jump with an offset larger then 32767 instructions." |
13:13:07 | Zevv | what about it |
13:13:33 | Araq | it inspires me for a new Nim slogan |
13:13:47 | Zevv | shoot |
13:13:51 | Araq | "Nim will eat any shit without complaining" |
13:13:55 | Araq | :P |
13:14:00 | Zevv | it should |
13:14:38 | Zevv | but cmon, a vm limited to 32K instructions. even my AppleII could jump further then that |
13:15:03 | Araq | it's limited to 32K instructions *per proc* |
13:15:11 | Zevv | see if I care :) |
13:15:27 | Araq | I like the fact that we're getting more registers |
13:15:31 | * | Vladar joined #nim |
13:15:32 | Araq | the jumps don't concern me |
13:15:58 | Zevv | Well, I'm not really *concerned*, but it is just something I ran into, which is just as easily solved. |
13:16:51 | Zevv | But there's a tradeoff to be made. The new room in the instruction could also be used or an additional opcode register, some things could do with a regD I guess |
13:17:08 | Zevv | but if they are all scaled up to 16 bits, adding that will no longer fit |
13:20:47 | * | endragor quit (Remote host closed the connection) |
13:21:11 | Araq | very few opcodes have the need for regD, bad tradeoff |
13:21:22 | Araq | 16 bit register indexes make sense to me |
13:22:45 | Zevv | quickly, merge the PR before krux02 sees it then |
13:25:47 | * | filcuc_ joined #nim |
13:27:39 | * | filcuc_ quit (Read error: No route to host) |
13:27:57 | * | filcuc_ joined #nim |
13:35:18 | * | filcuc_ quit (Ping timeout: 245 seconds) |
13:35:56 | * | nsf quit (Quit: WeeChat 2.6) |
13:38:57 | * | filcuc_ joined #nim |
13:50:23 | * | matic joined #nim |
13:53:18 | matic | I have a signature: "proc `[]=`*(self: var Memory, address: MemoryRegion, values: openarray[uint8])", then I use "mem[50] = [0x01, 0x02]", it throws a array type mismatch error. |
13:54:29 | matic | Then I tried creating a converter that would convert array[int] to array[uint8], but it doesn't get used. Is there an way to implicitly convert array[int] to array[uint8]? |
13:57:43 | FromDiscord_ | <Rika> cant just append 0x01 with .uint8? |
13:58:25 | matic | Rika: Is that the only way? |
13:59:46 | matic | I'll probably use that, but I already had many occasion where I forgot. |
14:00:14 | FromDiscord_ | <Rika> overload the []= proc which uses sequtils mapIt or something? |
14:00:52 | matic | Right, excellent. Thanks! |
14:01:12 | solitudesf | you should really just annotate the first element with explicit type suffix |
14:03:34 | * | tklohna joined #nim |
14:03:34 | matic | solitudesf: I try, but I forget a lot of times. |
14:03:44 | solitudesf | compiler errors gonna remind you |
14:10:19 | FromDiscord_ | <Rika> now that i read my message again, im surprised you understood what i meant |
14:11:20 | * | tklohna quit (Ping timeout: 276 seconds) |
14:22:18 | * | tane joined #nim |
14:24:36 | disruptek | Araq: try !help |
14:25:11 | disruptek | i would add a nimble package search but it'd be good money after bad. |
14:25:30 | * | NimBot joined #nim |
14:27:59 | FromDiscord_ | <Generic> matic: converting array[int] to array[uint8] is not trivial, because they are quite distinct |
14:28:35 | FromDiscord_ | <Generic> matic: if you're on a 64-bit system each entry in a array[int] is 8-bytes long while each array[uint8] entry is one byte long |
14:28:42 | FromDiscord_ | <Generic> you can't just them on top of each other |
14:29:15 | FromDiscord_ | <Generic> their value range is also different |
14:29:26 | FromDiscord_ | <jbr93> Araq, I just updated the dependencies and still can't get it to compile. I am running `nim c -r examples/controlgallery.nim` to try. Is that the wrong command? |
14:42:57 | * | dddddd joined #nim |
14:58:24 | * | ng0 quit (Ping timeout: 260 seconds) |
15:00:21 | * | ng0 joined #nim |
15:18:44 | lqdev[m] | leorize: trying out nvim with your nim.nvim plugin, so far it looks quite good |
15:20:28 | disruptek | should there be a way to break from a block and assign an expression value to the block at the same time? |
15:24:52 | sealmove | example? |
15:27:11 | FromDiscord_ | <onelivesleft> does the person who runs `nimble.directory` frequent here? it needs 1.0.4 installed... |
15:32:51 | disruptek | sealmove: my use-case is that i have a template that i want to be able to return from, or set a value of the block. |
15:34:01 | disruptek | just wanted to avoid a procedure if there wasn't a semantic reason to have one. i just dunno if it's a limitation of syntax or semantics. |
15:34:21 | sealmove | i've considered this problem before |
15:34:29 | sealmove | i made a macro for that |
15:34:36 | sealmove | but it didn't work very well so I dropped it |
15:35:00 | federico3 | onelivesleft: why? |
15:35:27 | * | jwm224 quit (Quit: WeeChat 2.7-dev) |
15:35:55 | sealmove | disruptek: https://github.com/sealmove/ease |
15:36:23 | sealmove | it's a very bad repo, but what you are describing is the idea of "anonymous" macro in this repo |
15:36:27 | sealmove | it might help |
15:37:24 | * | jwm224 joined #nim |
15:37:43 | disruptek | thanks, i will mull it over. 😊 |
15:40:13 | FromDiscord_ | <onelivesleft> @federico3 because it doesn't have it |
15:40:23 | federico3 | it's staying on 1.02 |
15:40:45 | FromDiscord_ | <onelivesleft> well, that sucks for anything that depends on 1.0.4 :/ |
15:41:06 | federico3 | there are minor bugfixes in 1.0.4 |
15:41:26 | FromDiscord_ | <onelivesleft> register use got reworked |
15:44:43 | FromDiscord_ | <onelivesleft> I know because my package works in 1.0.4 but not in 1.0.2 |
15:48:12 | * | krux02_ quit (Remote host closed the connection) |
15:53:12 | * | dddddd quit (Ping timeout: 252 seconds) |
15:55:16 | * | dddddd joined #nim |
16:02:29 | * | filcuc_ quit (Ping timeout: 276 seconds) |
16:05:06 | * | clyybber joined #nim |
16:05:38 | leorize | lqdev[m]: \o/ |
16:09:49 | disruptek | Araq: !package | !packages |
16:09:52 | disruptek | !package zip |
16:10:30 | disruptek | hmm. |
16:10:32 | disruptek | !package zip |
16:11:05 | FromGitter | <Willyboar> !repo zip |
16:11:06 | disbot | https://github.com/juancarlospaco/biblioteca-guarrilla -- 11Simple web to share books, Calibre, Jester, Spectre CSS, No JavaScript, WebP & ZIP to reduce bandwidth 8 5⭐15 0🍴 |
16:11:15 | FromGitter | <Willyboar> !repos zip |
16:11:16 | disbot | https://github.com/juancarlospaco/biblioteca-guarrilla -- 11Simple web to share books, Calibre, Jester, Spectre CSS, No JavaScript, WebP & ZIP to reduce bandwidth 8 5⭐15 0🍴 |
16:11:29 | FromGitter | <Willyboar> just one :) |
16:12:11 | disruptek | this is weird. |
16:12:43 | disruptek | it works when i message the bot directly, but i get an async error otherwise. |
16:14:52 | disruptek | !package zip |
16:14:53 | disbot | https://github.com/nim-lang/zip -- 9zip: 11A wrapper for the zip library |
16:15:18 | disruptek | more async subtleties involving templates. lovely. |
16:15:49 | federico3 | this is quite spammy. Can it reply in query instead? |
16:16:07 | disruptek | yeah, if you /msg it. |
16:16:20 | federico3 | I mean always |
16:16:29 | disruptek | the whole point is to share the result. |
16:17:18 | * | njoseph quit (Ping timeout: 265 seconds) |
16:29:54 | FromDiscord_ | <Rika> wtf when i searched github i didnt get that repo lmao |
16:29:56 | FromDiscord_ | <Rika> thanks |
16:32:25 | disruptek | yeah; there are some differences in the github search. |
16:33:38 | disruptek | the !package search looks at package names, keywords, the url, the description, etc. -- it should always find something. however, there's no scoring, so the first results "win". i guess i should add a result count. |
16:37:17 | dom96 | !package dom96 |
16:37:18 | disbot | no packages match 😢 |
16:37:27 | dom96 | pff |
16:37:51 | disruptek | okay, it doesn't do substring matches or ego searches. |
16:37:59 | disruptek | !repos dom96/ |
16:38:00 | disbot | https://github.com/dom96/jester -- 11A sinatra-like web framework for Nim. 8 853⭐15 84🍴 |
16:38:00 | disbot | https://github.com/dom96/nimkernel -- 11A small kernel written in Nim 8 387⭐15 29🍴 |
16:38:00 | disbot | https://github.com/dom96/choosenim -- 11 8 207⭐ 20🍴 7& 27 more... |
16:38:13 | dom96 | I was curious to see which of my packages it would pick |
16:38:18 | dom96 | I wasn't doing an "ego search" |
16:38:52 | disruptek | !package https://github.com/dom96/jester |
16:38:52 | disbot | https://github.com/dom96/jester -- 9jester: 11A sinatra-like web framework for Nim. |
16:39:18 | disruptek | i will add an author search. why not. |
16:41:16 | clyybber | Araq: I'll rebase the refactor upon your arc devel branch |
16:43:21 | disruptek | 🎉0.0.25: ego searches for dom96 🧠 |
16:43:24 | disruptek | releases for everyone! |
16:45:17 | disruptek | !package picheta |
16:45:18 | disbot | no packages match 😢 |
16:45:29 | disruptek | disbot: stop breaking my balls. |
16:45:30 | disbot | on it. 👍 |
16:46:01 | * | Vladar quit (Quit: Leaving) |
16:48:20 | disruptek | lol there's no author field in the package file. 🙄 |
16:48:45 | disruptek | i'll parse it outta the url for ya, dom. |
16:51:24 | * | Trustable joined #nim |
16:52:55 | * | njoseph joined #nim |
16:53:55 | disruptek | !package dom96 |
16:53:55 | disbot | https://github.com/dom96/nim-opencv -- 9opencv: 11OpenCV wrapper |
17:08:14 | * | Perkol quit (Remote host closed the connection) |
17:10:06 | * | clyybber quit (Quit: WeeChat 2.6) |
17:11:09 | * | dddddd quit (*.net *.split) |
17:11:10 | * | lbart quit (*.net *.split) |
17:11:11 | * | pigmej quit (*.net *.split) |
17:11:12 | * | lqdev[m] quit (*.net *.split) |
17:11:12 | * | GitterIntegratio quit (*.net *.split) |
17:11:13 | * | oculux quit (*.net *.split) |
17:11:13 | * | vesper11 quit (*.net *.split) |
17:11:13 | * | tribly quit (*.net *.split) |
17:11:14 | * | Zevv quit (*.net *.split) |
17:11:14 | * | stefantalpalaru quit (*.net *.split) |
17:11:14 | * | JStoker quit (*.net *.split) |
17:11:14 | * | Cadey quit (*.net *.split) |
17:11:15 | * | LyndsySimon quit (*.net *.split) |
17:11:15 | * | zielmicha__ quit (*.net *.split) |
17:11:15 | * | msmorgan quit (*.net *.split) |
17:11:15 | * | nisstyre quit (*.net *.split) |
17:11:16 | * | qwertfisch quit (*.net *.split) |
17:11:16 | * | mahlon quit (*.net *.split) |
17:11:18 | * | deansher quit (*.net *.split) |
17:12:35 | * | dddddd joined #nim |
17:12:35 | * | lbart joined #nim |
17:12:35 | * | pigmej joined #nim |
17:12:35 | * | GitterIntegratio joined #nim |
17:12:35 | * | lqdev[m] joined #nim |
17:12:35 | * | oculux joined #nim |
17:12:35 | * | vesper11 joined #nim |
17:12:35 | * | tribly joined #nim |
17:12:35 | * | Zevv joined #nim |
17:12:35 | * | stefantalpalaru joined #nim |
17:12:35 | * | JStoker joined #nim |
17:12:35 | * | Cadey joined #nim |
17:12:35 | * | LyndsySimon joined #nim |
17:12:35 | * | zielmicha__ joined #nim |
17:12:35 | * | msmorgan joined #nim |
17:12:35 | * | nisstyre joined #nim |
17:12:35 | * | qwertfisch joined #nim |
17:12:35 | * | mahlon joined #nim |
17:12:35 | * | deansher joined #nim |
17:18:08 | Zevv | pfff, I shall from now on not publicize my AoC solutions on the day itself |
17:18:27 | disruptek | oh yeah? |
17:18:31 | Zevv | yeah! |
17:20:44 | FromDiscord_ | <Rika> okay sorry for being pretty dumb but |
17:21:13 | FromDiscord_ | <Rika> how do i set up github actions to build a library (nimble init then chose library) |
17:21:23 | FromDiscord_ | <Rika> i guess the decomposition of this question is more like |
17:21:31 | FromDiscord_ | <Rika> "how do i build a library" |
17:27:33 | * | narimiran quit (Ping timeout: 268 seconds) |
17:51:05 | * | nsf joined #nim |
18:47:14 | Araq | hmm does the raise statement consume its exception? |
18:47:19 | Araq | I guess it does... |
18:50:43 | FromDiscord_ | <Winton> if you are interested in creating emulator server write me Java => Nim |
18:50:58 | FromDiscord_ | <Winton> It is for a mmorpg game |
19:17:10 | * | nsf quit (Quit: WeeChat 2.6) |
19:30:37 | * | nif_ quit (Quit: ...) |
19:30:46 | * | nif joined #nim |
19:44:34 | FromGitter | <deech> domhttps://nim-lang.org/dhttps://nim-lang.org/download/dlls.ziphttps://nim-lang.org/download/dlls.zipownload/dlls.zip |
19:45:48 | FromGitter | <deech> Sorry, @dom96 `choosenim` docs say that OpenSSL is a requirement but doesn't link to the DLL but the `nim` home page has pre-packaged them. Should the setup script just grab those and add them to path on Windows? |
19:46:09 | FromGitter | <deech> The link to |
19:46:15 | FromGitter | <deech> the packaged DLLS: https://nim-lang.org/download/dlls.zip |
19:47:14 | * | narimiran joined #nim |
19:49:11 | * | nif quit (Quit: ...) |
19:49:20 | * | nif joined #nim |
19:50:21 | * | matic quit (Quit: Leaving) |
19:58:15 | * | dddddd quit (Ping timeout: 246 seconds) |
19:59:56 | FromDiscord_ | <treeform> @Winton you are making a jvm in Nim? |
20:03:13 | FromDiscord_ | <Winton> Emulator Server |
20:04:22 | FromDiscord_ | <Winton> The emulator is written in Java smartfoxserver. the idea is that it promises us a lot and is a readable and clean language transcribes the code to Java > nim |
20:05:10 | FromDiscord_ | <Winton> |
20:05:10 | FromDiscord_ | <Winton> https://cdn.discordapp.com/attachments/371759389889003532/650789502125604875/unknown.png |
20:07:10 | FromDiscord_ | <Generic> so you want to translate java to nim? |
20:07:15 | FromDiscord_ | <Winton> yes |
20:07:24 | FromDiscord_ | <Winton> code |
20:07:46 | FromDiscord_ | <Winton> I think the emulator would be faster |
20:08:07 | FromDiscord_ | <Generic> so the code won't need any manual fix up? |
20:08:13 | FromDiscord_ | <Winton> would be less line of code and faster |
20:08:32 | FromDiscord_ | <Winton> @Generic no |
20:08:38 | FromDiscord_ | <Generic> ah, ok |
20:09:02 | FromDiscord_ | <Winton> is just pass code to nim and if you can improve ps do it with the code see how it works |
20:09:12 | FromDiscord_ | <Generic> if yes I would have asked how you want to handle the std library |
20:09:38 | FromDiscord_ | <Winton> I think it would be an advance to know the potential and share with others so you can visualize what we can achieve with nim |
20:10:01 | FromDiscord_ | <Generic> you have to keep in mind |
20:10:28 | FromDiscord_ | <Generic> that the jvm is remarkably fast |
20:10:34 | FromDiscord_ | <Generic> the reason nim can be faster |
20:10:49 | FromDiscord_ | <Generic> often lies in the fact that nim e.g. allows value types |
20:11:13 | FromDiscord_ | <Winton> some friends built this in javascript and others in c # |
20:11:44 | FromDiscord_ | <Generic> and how were the results? |
20:12:17 | FromDiscord_ | <Winton> I think that nim as a new language can be given the opportunity for those who want to try and in the future the games can create their emulator server in nim since it offers better performance and rapid development |
20:12:43 | FromDiscord_ | <Winton> the result is that the programmer already depends on what I earn c # |
20:13:40 | FromDiscord_ | <Generic> is this about a specific game? |
20:13:54 | FromDiscord_ | <Winton> Yes |
20:13:54 | FromDiscord_ | <Generic> the only game I know which is written in Java is minecraft haha |
20:13:55 | FromDiscord_ | <Winton> bro |
20:33:20 | Zevv | I probably miss something obvious again, but why is this ambigous? http://ix.io/23k9 |
20:33:48 | disruptek | cannot dispatch on return type. |
20:34:44 | Zevv | sure, but it's potentially ambigious at call time, but not when these are defined: what if I wnated to call `parse[int]("42")` |
20:35:16 | * | clyybber joined #nim |
20:37:50 | Zevv | I have this thing with generics: 99% of the times I type the right thing and stuff just flows as it should go |
20:38:13 | disruptek | you're right, i use this pattern myself. |
20:38:30 | Zevv | and every now and then I just bump as a complete moron, and I just *can not* understand what I'm doing wrong |
20:38:52 | Zevv | bump into a wall, that is |
20:39:07 | disruptek | there are a lot of issues like that with inheritance because sometimes it just doesn't work, inexplicably. |
20:39:20 | disruptek | but this is the same as parseEnum afaict. |
20:39:24 | Zevv | yeah, I learned just not to use inheritence |
20:39:51 | Zevv | but I'm sure I used similar things like his before, so am I just doing something stupid here? |
20:40:13 | disruptek | see also this lil gem: https://github.com/disruptek/jsonconvert/blob/master/jsonconvert.nim |
20:40:34 | clyybber | look at sigmatch.nim, then you'll know why its a bit buggy at times |
20:41:05 | disruptek | then maybe it works for bool, too. |
20:41:30 | Zevv | what *part* of sigmatch.nim exactly? all of the 2718 lines? |
20:41:30 | disruptek | oh, i'm dumb. parseEnum doesn't overload. 🤣 |
20:41:59 | disruptek | anyway, use the pattern is jsonconvert. just don't, y'know, use jsonconvert. |
20:42:15 | disruptek | i mean, people will tell you you're dumb to use that pattern. |
20:42:27 | Zevv | yeah but no but yeah but |
20:42:32 | disruptek | yeah. |
20:42:36 | Zevv | Is my thing wrong, or is this hitting a buggy part of the compiler? |
20:42:52 | disruptek | yes. |
20:44:01 | Zevv | ah right, sure, that explains! That was stupid of me. thanks for pointing that out disruptek |
20:45:07 | clyybber | Zevv: paramTypesMatchAux modifies its input. Causing bugs like this: https://github.com/nim-lang/Nim/issues/12713 |
20:45:08 | disbot | ➥ A few bugs related to static parameters @11Clyybber; snippet at https://play.nim-lang.org/#ix=22E4 😏 |
20:46:06 | Zevv | sure, but my thingy is not explicitly static. So is this worth filing an issue for or is this already covered in one somewhere? |
20:47:12 | clyybber | Zevv: I think you should report it. |
20:47:16 | disruptek | we had a long discussion of this (which precipitated jsonconvert). |
20:47:48 | Zevv | ah, so you're on familair grounds |
20:48:04 | disruptek | well, the long and short was "don't do that; it's stupid" |
20:48:33 | Zevv | yeah, me being stupid is one of the options I suggested - but now clybber tells me it's worth filing an issue. |
20:48:39 | Zevv | if its worth filing an issue, it's not stupid |
20:48:51 | disruptek | i would say, file it. then we'll have "it's stupid" in writing. |
20:49:13 | Zevv | ah that will fit my reputation quite well |
20:49:18 | lqdev[m] | leorize: does nim.nvim have linting? |
20:53:39 | Zevv | https://github.com/nim-lang/Nim/issues/12787 |
20:53:41 | disbot | ➥ Error: overloaded 'X' leads to ambiguous calls @11zevv; snippet at https://play.nim-lang.org/#ix=23kj 😏 |
20:54:14 | Zevv | dang, I *do* love the playground integration |
20:54:45 | Zevv | Is the smirking face there for all issues, or only for ones I filed? |
20:54:55 | disruptek | just you, my bro. |
20:55:06 | Zevv | again you make me feel so special |
20:57:25 | * | Kaivo quit (Quit: WeeChat 2.6) |
21:12:29 | Araq | clyybber: https://play.nim-lang.org/#ix=23kq leaks memory with --gc:arc |
21:22:41 | * | dddddd joined #nim |
21:23:05 | clyybber | Araq: The exception doesn't get destroyed |
21:23:07 | clyybber | Right? |
21:27:59 | * | ng0 quit (Quit: Alexa, when is the end of world?) |
21:29:57 | * | narimiran quit (Ping timeout: 240 seconds) |
21:32:10 | Araq | right but it's not obvious why not, the generated code looks correct |
21:35:55 | clyybber | Hmm, can you send the generated code? My PC is currently busy cloning |
21:37:51 | disruptek | s'cuse me? |
21:38:27 | clyybber | cloning my drive containing my bootloader that is |
21:38:40 | clyybber | s/my/the |
21:43:16 | * | Hotbees joined #nim |
21:48:06 | * | tane quit (Quit: Leaving) |
21:54:54 | dom96 | deech: choosenim already checks for openssl dlls and downloads them if they don't exist. If that didn't happen for you then something went wrong. |
21:55:37 | * | ng0 joined #nim |
22:06:08 | dom96 | Why does this function exist? https://nim-lang.org/docs/io.html#readLines%2Cstring |
22:06:39 | dom96 | or rather why does it have a default `n` |
22:06:53 | * | Trustable quit (Remote host closed the connection) |
22:06:58 | dom96 | meh, I'm reporting this as an issue |
22:07:24 | disruptek | fair question. |
22:08:37 | dom96 | #12788 |
22:08:39 | disbot | https://github.com/nim-lang/Nim/issues/12788 -- 3Default value for `readLines` shouldn't be 1 @11dom96; snippet at 12https://play.nim-lang.org/#ix=23kD 😏 |
22:12:05 | federico3 | https://www.youtube.com/watch?v=5l54EUN3fds Nim for Python programmers video |
22:15:33 | Hotbees | That function also confused me doing the exact same thing |
22:15:51 | clyybber | dom96: Will you make a PR? |
22:16:21 | Araq | dom96: terrible, how did that get past our review... |
22:16:56 | disruptek | i believe it's fixed in nim-2.0. |
22:17:15 | Hotbees | I'm new to the language so I just assumed it had some reasoning to it and ended up using the lines iterator |
22:17:20 | Hotbees | Glad to see I was wrong |
22:19:21 | Araq | well "Available at compile time." is the key aspect for this proc |
22:19:34 | Araq | I think shashlick added it :P |
22:23:06 | shashlick | Didn't look familiar but that doesn't mean much these days |
22:23:36 | shashlick | #10819 |
22:23:38 | disbot | https://github.com/nim-lang/Nim/pull/10819 -- 6Compiler plugin for implementing incremental computation in user space @11cooldome |
22:24:34 | * | MightyJoe joined #nim |
22:25:39 | dom96 | Araq, don't assign blame without evidence :) |
22:26:08 | * | cyraxjoe quit (Ping timeout: 245 seconds) |
22:26:10 | dom96 | https://github.com/nim-lang/Nim/pull/10819/files#r267261859 |
22:26:11 | disbot | ➥ Compiler plugin for implementing incremental computation in user space @11cooldome |
22:26:33 | dom96 | You did catch it, but it seems cooldome resolved the comments on you and it was forgotten :( |
22:27:44 | Araq | interesting |
22:28:25 | * | couven92 joined #nim |
22:31:43 | Araq | clyybber: ah I found it |
22:32:08 | Araq | the exception handler itself is in a try block or something so the exception is pushed twice and popped once |
22:34:46 | dom96 | It's fun seeing everyone's solutions https://forum.nim-lang.org/t/5588 |
22:34:57 | clyybber | Araq: Ha nice! |
22:38:41 | Araq | and my patch doesn't work... time to sleep |
22:38:45 | lqdev[m] | dom96: you found the same bug, lmao |
22:38:53 | Araq | clyybber: what about the default fields? |
22:38:57 | lqdev[m] | but I didn't take the time to report it properly |
22:39:34 | dom96 | lqdev[m], nice. Report anything you find :) |
22:43:17 | * | solitudesf quit (Ping timeout: 240 seconds) |
23:07:37 | * | rockcavera joined #nim |
23:12:25 | FromGitter | <TensorTom> @dom96 possibility of integrating nimble to https://help.github.com/en/github/managing-packages-with-github-packages/about-github-packages ? |
23:12:48 | FromGitter | <TensorTom> would be cool |
23:13:18 | dom96 | Sure, would be nice. If you want to help out with that effort please do |
23:14:44 | FromGitter | <TensorTom> I think someone would have to contact github about it first |
23:15:55 | clyybber | Araq: Theres one thing left, that is to initialize all declared variables. The framework is there though, since we already do it for result |
23:17:16 | clyybber | And maybe the transformation should be done in injectdestructors rather than transf |
23:25:23 | FromDiscord_ | <exelotl> lol everyone's aoc solutions are so much fancier than mine |
23:26:38 | FromDiscord_ | <Generic> I currently can't attach destructor to a ref object (with newruntime) |
23:26:45 | FromDiscord_ | <Generic> is this intended behaviour? |
23:27:06 | dom96 | TensorTom: why can't that someone be you? We're a community driven project :) |
23:28:45 | clyybber | Generic: Yes it is. |
23:29:19 | FromDiscord_ | <Generic> ok, I wasn't sure because of https://github.com/nim-lang/Nim/blob/devel/doc/destructors.rst#owned-refs |
23:29:57 | clyybber | Generic: Yeah, its visualizes how they work internally |
23:29:58 | disruptek | you don't need to talk to github; just implement it. |
23:30:26 | clyybber | Generic: You can implement your own refs though if you want. Just use an object that wraps a pointer (and if you want a refcount) |
23:30:34 | FromDiscord_ | <Generic> I see, thanks for the answer |
23:31:45 | clyybber | np |
23:33:59 | * | krux02 joined #nim |
23:42:18 | * | ng0 quit (Quit: Alexa, when is the end of world?) |
23:44:59 | clyybber | gn8 |
23:45:01 | * | clyybber quit (Quit: WeeChat 2.6) |
23:53:09 | * | ng0 joined #nim |