00:15:44 | * | xet7 quit (Quit: Leaving) |
00:19:01 | FromGitter | <ephja> @bung87 https://nim-lang.org/docs/strutils.html#parseHexInt,string |
00:27:48 | * | zachcarter quit (Quit: Lost terminal) |
00:27:57 | * | zachcarter joined #nim |
00:29:24 | zachcarter | how can I make a new operator that consists of two characters and accepts a cstring? |
00:29:48 | zachcarter | I'm trying to define an operator that allows me to create template literals in JS |
00:29:56 | zachcarter | in JS the syntax is - `text` |
00:30:08 | zachcarter | I'd like to create an operator that works like %text% or something similar |
00:30:18 | zachcarter | I have proc `%%`(s: cstring): cstring {.importcpp: "eval('`' + # + '`')".} |
00:30:22 | zachcarter | but that doesn't seem to be working |
00:30:23 | FromGitter | <kayabaNerve> ```proc `*%%`(cstr: cstring): int = ⏎ echo cstr ⏎ result = 0``` [https://gitter.im/nim-lang/Nim?at=5b8b2f1fac25fd11b5c9641f] |
00:31:14 | zachcarter | hrm - yeah that's what I tried |
00:31:26 | FromGitter | <kayabaNerve> I don't think you can do infix ops |
00:31:28 | FromGitter | <kayabaNerve> It's ambiguous |
00:31:34 | zachcarter | ah okay |
00:32:07 | zachcarter | thanks |
00:32:10 | FromGitter | <kayabaNerve> ```code paste, see link``` |
00:32:13 | FromGitter | <kayabaNerve> From the manuyal |
00:32:36 | FromGitter | <kayabaNerve> There's no postfix; a single argument is prefix |
00:32:49 | zachcarter | gotcha |
00:33:14 | FromGitter | <kayabaNerve> I mean, it parses as ⏎ % op ⏎ thingy ⏎ % op [https://gitter.im/nim-lang/Nim?at=5b8b2fc911227d711d00a5b7] |
00:33:20 | FromGitter | <kayabaNerve> Not %% op |
00:33:26 | zachcarter | right |
00:33:41 | FromGitter | <bung87> @ephja thanks ! works |
00:35:16 | zachcarter | I do have something pretty cool in the works - https://gist.github.com/zacharycarter/b68aded56439c77ebdf6022a729c61e8 |
00:35:22 | * | PMunch quit (Remote host closed the connection) |
00:35:23 | zachcarter | this ticks the counter every second |
00:35:37 | zachcarter | and interpolates the value in the h2 |
00:35:51 | zachcarter | and it's using flyx's emerald library (with modifications) for the DSL that produces html |
00:36:11 | zachcarter | now I have to implement selective updates |
00:36:58 | zachcarter | and then we'll have our own hyperHTML for Nim :) |
00:46:20 | zachcarter | better gist showing the console log - https://gist.github.com/zacharycarter/b68aded56439c77ebdf6022a729c61e8 |
00:49:38 | zachcarter | hoping to use this library in the embedded widget we have to write at work - going to be using web components. |
00:51:18 | zachcarter | I think a library like this + web components is going to be the next hotness for web dev and replace the VDOM | Dom diffing libs (react, vue, marko, etc...) that are the current goto for web devs |
00:52:12 | zachcarter | Araq: would you have any interest (once I'm done with the last few things I need to do here) - in possibly considering working this functionality into karax? |
00:52:31 | zachcarter | It could be an alternative set of functionality to the dom diffing / vdom implementation karax currently features |
00:53:07 | krux02 | zachcarter, how is your multiplayer rogue going? |
00:53:35 | zachcarter | krux02: I haven't started on it yet - I'm working on getting this web library out and then hopefully will have time to refocus on gaming |
00:53:43 | zachcarter | I got the greenlight to use Nim at work - so I need to author this library |
00:53:58 | zachcarter | so we have more reason to use Nim |
00:54:46 | zachcarter | https://viperhtml.js.org/hyperhtml/documentation/ - is what I'm porting essentially |
00:55:05 | krux02 | I am recently playing a lot of brogue |
00:55:13 | zachcarter | that's a great game :) |
00:55:24 | krux02 | after recommending it to you, I got addicted again |
00:55:30 | krux02 | I once got to detph 23 |
00:55:47 | zachcarter | pretty damn good! |
00:56:01 | krux02 | I had a troll resqued and the first thing I did was to duplicate him |
00:56:08 | krux02 | they are great in self heating |
00:56:21 | zachcarter | yeah |
00:56:24 | krux02 | and today I had a run where I leveled the staff of conjurance |
00:56:44 | krux02 | it hat 6 charges creating 12 spectral blades on each shot |
00:56:59 | zachcarter | making me want to play brogue now lol |
00:57:09 | krux02 | I died because I was out of charges and never identified my charm of teleportation |
00:57:17 | krux02 | if I did I could have just teleported away |
00:58:07 | krux02 | my mace had a rune that made it creta a spectral mace with my strength |
00:58:28 | zachcarter | lol |
00:58:42 | krux02 | I also onece had a cursed weapon with a rune that had a chance of healing the enemy |
00:58:58 | zachcarter | lmao |
00:59:13 | zachcarter | yeah - I love those kinds of things |
00:59:33 | zachcarter | pgc is awesome :D |
01:00:07 | FromGitter | <bung87> ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=5b8b3616e5b40332ab2f79d7] |
01:00:33 | krux02 | today I learned the the purple gas stays much longer in closed rooms and when there are pits the wind blows it away quite quickly |
01:00:40 | krux02 | pgc? |
01:00:55 | zachcarter | `newSeq[0]` ? - that doesn't look right |
01:01:00 | zachcarter | procedurally generated content |
01:02:24 | FromGitter | <bung87> ```@[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]``` |
01:03:10 | zachcarter | bung87: what are you asking about? |
01:03:14 | krux02 | zachcarter, in brogue there are these rooms where you have pick one item but you have to leave the rest. But you can bring an item back if you don't like it. Even used. |
01:03:26 | FromGitter | <bung87> there `echo 1 # does not loop anymore?` |
01:03:32 | krux02 | So whenever there is a wand of empowerment I use it on my ally and put it back |
01:03:56 | zachcarter | haha that's awesome |
01:03:58 | krux02 | Bung: what is that supposed to mean? |
01:04:41 | krux02 | I have the feeling that the recommended age for playing roguelikes is 30 |
01:05:14 | zachcarter | well - they're definitely not appealing to younger generations |
01:05:17 | zachcarter | based on their popularity |
01:05:21 | FromGitter | <bung87> there are two iterate but only the first actully iterate |
01:05:21 | zachcarter | at least traditional RL's anyway |
01:05:31 | krux02 | well I think they are, but only when they get older :P |
01:05:57 | zachcarter | haha good point |
01:06:21 | krux02 | I also fonud out that my linux distro has the original rogue as a package. For some reason it doesn't even start on a terminal emulator. I havo to be on a tty |
01:07:27 | zachcarter | haha - interesting, I wonder why - maybe it's a really old verison |
01:07:27 | krux02 | but I think the controls are unplayable. |
01:07:30 | zachcarter | ah |
01:07:53 | krux02 | vim keys plus some diagonals placed at positions that doen't make sense at all. |
01:08:59 | krux02 | both nethack and rogue have similar but similar horrible controls |
01:09:10 | krux02 | for example the inventory just tells you the letters for the items |
01:09:16 | krux02 | but you can't do anything with them |
01:09:26 | krux02 | you have to quit the inventory first |
01:09:53 | krux02 | then select an action by typing the correct charactor and then the item character that you want to use that action with |
01:09:59 | krux02 | super weird |
01:10:08 | zachcarter | yeah |
01:10:18 | zachcarter | not very user friendly at all |
01:11:10 | krux02 | and then there are 1000 actions |
01:11:26 | krux02 | to use a potion, I really had struggle with it |
01:11:38 | krux02 | I thought, maybe eat |
01:11:41 | krux02 | no doesn't work |
01:12:01 | krux02 | the I looked for "drink" in the available commands, nope not there |
01:12:10 | krux02 | it is "quaff" |
01:12:10 | krux02 | wtf |
01:12:19 | krux02 | I never heared that word before |
01:12:24 | krux02 | I am not a native speaker |
01:12:45 | zachcarter | hahaha - neither have I so don't worry |
01:13:22 | zachcarter | https://books.google.com/ngrams/graph?year_start=1800&year_end=2008&corpus=15&smoothing=7&case_insensitive=on&content=quaff&direct_url=t4%3B%2Cquaff%3B%2Cc0%3B%2Cs0%3B%3Bquaff%3B%2Cc0%3B%3BQuaff%3B%2Cc0 |
01:13:28 | zachcarter | apparently its coming back! |
01:14:19 | krux02 | probably because of nethack |
01:15:00 | zachcarter | lol |
01:19:47 | * | S1tiSchu joined #nim |
01:20:47 | FromGitter | <ephja> @bung87 are you sure that `self.f`2? |
01:21:52 | FromGitter | <bung87> hmm I try copy paste it to it2 it works , looks like it bound a state recording finished. |
01:23:15 | * | SitiSchu quit (Ping timeout: 250 seconds) |
01:27:04 | FromGitter | <bung87> I move it outside ,it's `{.inline.}` now, when it's `{.closure.}` it acts like that |
01:28:14 | krux02 | good night people |
01:28:39 | * | cspar_ joined #nim |
01:29:03 | FromGitter | <bung87> 9:28 am ha |
01:29:04 | * | krux02 quit (Remote host closed the connection) |
01:31:34 | * | cspar quit (Ping timeout: 240 seconds) |
01:31:43 | zachcarter | he's in EU -I think Germany |
01:31:51 | zachcarter | so it's like 2:30 am there |
01:33:02 | FromGitter | <bung87> seems many people here in Europe |
01:35:50 | * | dddddd quit (Remote host closed the connection) |
01:39:48 | zachcarter | well - Nim's author is based there |
01:39:58 | zachcarter | where are you from if you don't mind me asking? |
01:40:36 | FromGitter | <bung87> I'm from China Mainland |
01:41:11 | zachcarter | ah cool! we have another very active Nim community member from China (I think anyway) |
01:41:41 | FromGitter | <gogolxdong> which one? |
01:42:37 | zachcarter | gogolxdong |
01:42:48 | zachcarter | sorry - had to search for his name in the irclogs because it's not very memorable |
01:43:03 | zachcarter | although - now that I read it in my head it is :) |
01:43:23 | zachcarter | https://github.com/gogolxdong |
01:44:28 | FromGitter | <kayabaNerve> So we have @bung87 and @gogolxdong . Right here. |
01:44:54 | FromGitter | <kayabaNerve> zachcarter Why did you tell Gogol he was the other community member lol |
01:45:21 | zachcarter | huh? |
01:45:40 | * | gogolxdong joined #nim |
01:45:47 | FromGitter | <kayabaNerve> https://ibb.co/bXRn9e |
01:46:09 | zachcarter | oh weird |
01:46:25 | FromGitter | <kayabaNerve> I just think its hilarious; I'm sure its something to do with the Bridge |
01:46:38 | FromGitter | <kayabaNerve> Not trying to cast shade; just laughing a ton |
01:46:45 | FromGitter | <gogolxdong> wonder what the log looks like in IRC |
01:46:46 | zachcarter | lmao - my bad - I had thought bung87 asked `which one` |
01:46:55 | zachcarter | no - it's just an honest mistake of not reading |
01:47:04 | FromGitter | <kayabaNerve> There is IRC logs |
01:47:13 | FromGitter | <kayabaNerve> https://irclogs.nim-lang.org/ |
01:47:21 | FromGitter | <kayabaNerve> Because IRC is for peasants |
01:47:38 | FromGitter | <bung87> :) |
01:48:11 | zachcarter | I need to read before I type :P |
01:48:20 | FromGitter | <kayabaNerve> I don't believe in that |
01:48:23 | zachcarter | hahaha |
01:48:35 | FromGitter | <gogolxdong> It's where everything begins. |
01:49:06 | FromGitter | <kayabaNerve> I used to use IRC every day for hours |
01:49:22 | FromGitter | <kayabaNerve> I have this nick registered on freenode |
01:49:23 | zachcarter | anyways - back to work on the tagged template literal lib - I want to walk into work on Tuesday like a boss and show everyone how much faster this is than react |
01:49:36 | FromGitter | <kayabaNerve> Good luck. I'm going to start using my Events lib |
01:49:52 | zachcarter | thank you! and likewise! |
01:50:53 | * | nesthib16 joined #nim |
01:51:39 | * | nesthib16 quit (Remote host closed the connection) |
02:20:47 | * | arecaceae quit (Remote host closed the connection) |
02:21:06 | * | arecaceae joined #nim |
02:31:31 | FromGitter | <bung87> done my night work, thank you guys! https://github.com/bung87/simhash-nim/blob/master/src/simhash_nim.nim |
02:56:15 | FromGitter | <gogolxdong> we have set up a Nim in China community on Discord https://discord.gg/sMcQUDJ, welcome to discuss. |
02:56:40 | zachcarter | :D |
02:57:10 | zachcarter | Someone needs to write a translate bot :P |
02:59:30 | zachcarter | https://nvu.io/bots/discord-translator/ |
03:08:48 | * | leorize quit (Ping timeout: 245 seconds) |
03:10:35 | * | orliesaurus20 joined #nim |
03:10:51 | * | leorize joined #nim |
03:11:15 | * | orliesaurus20 quit (Remote host closed the connection) |
03:15:56 | FromGitter | <gogolxdong> I think it uses google NLP API or something similar. |
03:21:00 | FromGitter | <kayabaNerve> src/Network/Sockets/objects/MessageObj2.nim(1, 2) Error: module names need to be unique per Nimble package; module clashes with src/Network/Sockets/Objects/MessageObj2.nim |
03:21:18 | FromGitter | <kayabaNerve> I tried renaming it; it did nothing. No, I do not have `objects` and `Objects` |
03:21:51 | FromGitter | <kayabaNerve> But I had a path like that? |
03:22:04 | FromGitter | <kayabaNerve> Is Nim supposed to have case insensitive imports? |
03:22:30 | FromGitter | <kayabaNerve> If yes, this shouldn't have failed. If no, then it's a missing file error, not a module name clashing error. |
03:24:23 | * | sneakyness23 joined #nim |
03:29:22 | * | sneakyness23 quit (Remote host closed the connection) |
03:34:07 | * | leorize quit (Ping timeout: 250 seconds) |
04:09:24 | * | arecaceae quit (Remote host closed the connection) |
04:09:42 | * | arecaceae joined #nim |
04:29:58 | * | leorize joined #nim |
05:20:25 | * | skrylar quit (Remote host closed the connection) |
05:39:11 | * | miran joined #nim |
05:54:54 | * | captainkraft quit (Ping timeout: 250 seconds) |
05:55:29 | * | captainkraft joined #nim |
06:17:00 | * | Trustable joined #nim |
06:33:28 | * | Trustable quit (Remote host closed the connection) |
06:59:50 | zachcarter | does anyone know where the escape backtick is defined in the nim code? |
06:59:56 | zachcarter | I'm trying to see how it is implemented |
07:00:49 | FromGitter | <Araq> the node is called `nkAccQuoted` |
07:00:53 | FromGitter | <Araq> iirc |
07:01:28 | FromGitter | <Araq> `lookups.considerQuotedIdent` does most of the hard work |
07:01:44 | zachcarter | thank you |
07:11:05 | * | kapil___ joined #nim |
07:16:40 | * | TheLemonMan joined #nim |
07:46:28 | zachcarter | hrmmm - should tables.getOrDefault w/ a string key return nil or an empty string? currently it returns nil |
07:49:34 | * | miran quit (Ping timeout: 240 seconds) |
07:55:55 | * | nsf joined #nim |
08:03:47 | * | gmpreussner_ joined #nim |
08:04:52 | * | gmpreussner quit (Ping timeout: 252 seconds) |
08:07:40 | * | arecaceae quit (Remote host closed the connection) |
08:07:58 | * | arecaceae joined #nim |
08:28:18 | * | stefanos82 joined #nim |
08:59:05 | * | Vladar joined #nim |
09:10:47 | * | cspar_ quit (Ping timeout: 240 seconds) |
09:21:13 | FromGitter | <ephja> aren't they the same thing now? |
09:21:35 | * | cspar_ joined #nim |
09:22:35 | TheLemonMan | under the hood they are |
09:27:40 | * | cyrn joined #nim |
09:28:20 | * | cyrn quit (Remote host closed the connection) |
10:02:57 | * | Perkol joined #nim |
10:05:35 | FromGitter | <codem4ster> hi all, when I spawn a proc, stdout is not printing data which I echo inside that proc? Is this a known issue? |
10:09:25 | zachcarter | do you have example code codem4ster? |
10:12:35 | * | rockcavera quit (Remote host closed the connection) |
10:25:09 | FromGitter | <codem4ster> https://pastebin.com/s7Mnhcik |
10:26:22 | FromGitter | <codem4ster> this code works as proxy between firefox and my personal server at 80.211.47.241 |
10:27:52 | FromGitter | <codem4ster> it apply some basic encoding to data before sending it and decodes right after getting it |
10:29:41 | FromGitter | <codem4ster> Firefox opens so many connection at the same time so I'm trying to accomplish this with threads |
10:34:39 | FromGitter | <codem4ster> I don't want to use async, I'm trying to learn nim threading capabilities with this example |
10:39:10 | * | PMunch joined #nim |
10:39:26 | TheLemonMan | printing + threads is a recipe for disaster :) |
10:40:54 | * | Vladar quit (Remote host closed the connection) |
10:42:00 | FromGitter | <codem4ster> I just trying to debug :) |
10:43:12 | TheLemonMan | your output is probably stuck in the buffer or something like that |
10:47:50 | FromGitter | <codem4ster> I'm trying to read from a socket in 'while true:' and this blocks the thread. After every read I suppose it echo the read data. I have multiple threads like this. |
10:48:59 | FromGitter | <codem4ster> But I think it must not block main program and echo read data from sockets in threads. |
10:52:05 | * | Serenitor joined #nim |
10:52:31 | * | Serenitor quit (Client Quit) |
10:52:47 | * | flyx joined #nim |
10:53:14 | * | Trustable joined #nim |
10:53:30 | * | Serenitor joined #nim |
10:54:27 | Serenitor | just updated nim and am getting `random is deprecated` now |
10:54:37 | Serenitor | what's the new std rng? |
10:59:58 | * | his joined #nim |
11:00:08 | PMunch | rand I think |
11:04:04 | * | TheLemonMan quit (Quit: "It's now safe to turn off your computer.") |
11:04:31 | * | his quit (Remote host closed the connection) |
11:04:51 | copygirl | > Error: attempting to call undeclared routine: 'set' |
11:04:53 | copygirl | https://gist.github.com/copygirl/36ed6849abc3e920d378b126332f5b02 |
11:05:48 | copygirl | ... I don't understand the error. modelviewLoc is a Uniform which *does* have a set proc defined. |
11:06:39 | copygirl | Oh, there's a typo there ... though it doesn't matter |
11:06:46 | Serenitor | ah, the module is still called random but the procs been renamed to rand |
11:06:51 | Serenitor | thanks PMunch |
11:09:13 | PMunch | Yeah, not entirely sure why they did that. It's a bit confusing :P |
11:09:23 | zachcarter | hmm |
11:09:28 | zachcarter | do js var parameters work? |
11:10:11 | zachcarter | as soon as I change the first parameter of one of my procedures from `cstring` to `var cstring` it becomes undefined when printed to the console |
11:10:31 | PMunch | copygirl, missing an import perhaps? |
11:11:04 | PMunch | Hard to tell without knowing what either modelView or modelViewLoc are |
11:11:38 | copygirl | Custom type in another module, but it's there, and imported. |
11:11:50 | copygirl | Even VS Code intellisense recognizes it. |
11:15:02 | PMunch | Try to mark you template with the {.dirty.} pragma |
11:16:28 | FromGitter | <zah> Did you guys notice? Go will be gaining generics and concepts o.O |
11:16:29 | FromGitter | <zah> https://go.googlesource.com/proposal/+/master/design/go2draft-contracts.md |
11:17:11 | zachcarter | zah: yes I read the draft for go - I still feel like the spec needs a long way to go / more fleshing out |
11:17:13 | copygirl | > Error: undeclared identifier: 'modelview' |
11:17:21 | * | rockcavera joined #nim |
11:17:21 | copygirl | Hmm, new error. Same confusion. |
11:17:38 | copygirl | > Hint: 'modelview' is declared but not used [XDeclaredButNotUsed] |
11:17:47 | zachcarter | also - I'm starting to get the feeling that Go 1/2 is going to have the some of the same issues Python 2/3 did |
11:18:10 | * | Vladar joined #nim |
11:21:27 | * | dddddd joined #nim |
11:22:16 | copygirl | Can non-exported values not be used in templates? |
11:23:57 | PMunch | Probably not |
11:24:03 | * | grumble13 joined #nim |
11:24:31 | PMunch | Or wait, can't you use non-exported values in macros? |
11:25:07 | FromGitter | <bung87> https://nim-lang.org/docs/manual.html#templates-symbol-binding-in-templates |
11:26:42 | FromGitter | <bung87> see if helps |
11:28:50 | * | grumble13 quit (Remote host closed the connection) |
11:28:54 | * | Perkol quit (Quit: Leaving) |
11:31:10 | copygirl | PMunch: The odd thing is, I was able to use procs that weren't exported. |
11:32:20 | PMunch | Maybe you're allowed to call internal procs but not change internal global variables? |
11:32:28 | PMunch | Seems like a strange limitation |
11:32:51 | PMunch | Try to add a simple wrapper proc that just changes the internal variable and use that instead of accessing the variable directly |
11:33:02 | PMunch | Just to see if that works |
11:33:20 | FromGitter | <zetashift> @bung87 on your simhash you wrote " defualtReg " instead of `defaultReg` |
11:33:22 | copygirl | Yeah I had that before. I should probably try seeing if exporting the variables works, first. |
11:34:09 | zachcarter | ugh - I can't get apply to work right with var parameters |
11:34:22 | FromGitter | <bung87> @zetashift ah , thank you ! typo |
11:34:22 | copygirl | Mhhhn.. nope! |
11:35:33 | FromGitter | <zetashift> np I found it too petty to create an issue lol\ |
11:36:04 | zachcarter | nm figured out my issue |
11:36:44 | FromGitter | <bung87> actually there is a `defualtF` before :) |
11:37:45 | copygirl | But yeah, wrapping the setting of the modelview in a proc works. |
11:38:52 | FromGitter | <bung87> the last thing is having multi initialize proc with less code ,the simple way I may have 5 initialize proc.. |
11:40:52 | FromGitter | <bung87> https://github.com/bung87/simhash-nim/blob/master/src/simhash_nim.nim#L84 |
11:50:03 | FromGitter | <zetashift> you can use `or` when supplying the type? TIL |
11:52:51 | FromGitter | <bung87> nope , just assuming that . |
11:58:02 | PMunch | Bash must have one of the strangest case syntaxes I've ever seen |
11:59:08 | FromGitter | <xmonader> Anyone wants to review? https://github.com/xmonader/nim-resp |
12:04:01 | FromGitter | <bung87> I have an advice, support url `proc open*(host = "localhost", port = 6379.Port): Redis =` |
12:05:54 | * | Entropic quit (Ping timeout: 264 seconds) |
12:06:40 | * | miran joined #nim |
12:07:18 | * | miran quit (Client Quit) |
12:12:47 | * | krux02 joined #nim |
12:17:06 | * | halirc joined #nim |
12:32:19 | * | wildlander joined #nim |
12:36:46 | FromGitter | <xmonader> @bung87 sorry not following? host is passed as address param to socket.connect no? |
12:50:43 | * | SenasOzys quit (Ping timeout: 246 seconds) |
12:51:00 | FromGitter | <bung87> maybe implements in a wrap proc |
12:55:31 | * | unclechu[m] left #nim ("Kicked by @appservice-irc:matrix.org : issued !quit command") |
12:57:06 | halirc | Hello. How are packages from a .nimble file usually installed? I'm trying to make a pull request and I added a "requires" line to the .nimble file but that projects Travis build fails because the package is not installed. |
12:57:30 | halirc | https://github.com/docopt/docopt.nim/pull/42/files https://travis-ci.org/docopt/docopt.nim/jobs/423599505 |
12:59:17 | * | SenasOzys joined #nim |
13:02:24 | FromGitter | <bung87> using regex github url |
13:02:58 | FromGitter | <bung87> it's not stdlib so it dont know where to get it |
13:17:14 | halirc | I see. So it should work if I replace the package name with the github url? |
13:24:30 | halirc | That does not seem to be it. I think there might be a step missing from the Tracis build? Some nimble install step |
13:28:39 | FromGitter | <Vindaar> halirc: Yes, I think the issue stems from how travis is set up: https://github.com/docopt/docopt.nim/blob/master/.travis.yml#L33 |
13:29:16 | FromGitter | <Vindaar> instead of using `nimble test` it runs the `test/test.nim` file directly |
13:30:25 | FromGitter | <Vindaar> Replacing that line with `nimble test` should work (the `test` task is defined in the .nimble file already) |
13:32:05 | FromGitter | <Vindaar> Not sure whether `nimble` is available in that travis setup though, maybe you need to add a line after https://github.com/docopt/docopt.nim/blob/master/.travis.yml#L20 `./koch tools` |
13:32:45 | FromGitter | <Vindaar> Or better just `./koch nimble`. No need to waste time |
13:34:51 | * | Jesin quit (Quit: Leaving) |
13:48:00 | * | nsf quit (Quit: WeeChat 2.2) |
13:53:26 | halirc | Vindaar, thank you. Do you mind having another look? I changed the .travis.yml https://github.com/docopt/docopt.nim/pull/42/commits/d119bb08276786677671b71df75c03270c3510aa sucessfully it seems. But the package "regex" I would like to install is still missing. |
14:00:21 | halirc | On my local machine I just ran "nimble refresh" and "nimble install regex" but I'm looking for a way to get the packages from the .nimble files requires lines installed. Or should I just add the command to install the deps manually to the travis build? |
14:01:35 | FromGitter | <Araq> our .travis file contains nimble commands fwiw |
14:07:02 | zachcarter | hrm - I'm having a tough time getting a value of `'"'` assigned to a variable w/ the JS backend |
14:07:34 | zachcarter | the double quote seems to always get escaped in the resulting JS |
14:16:49 | FromGitter | <Vindaar> halirc: sorry, was afk. Good point, you probably need to add a line `nimble install -y` before the call to `nimble test` |
14:20:27 | halirc | Araq, Vindaar, thanks! I added the nimble install commands to the .travis.yml. Now nimble does not find the standard library but I am a step further. |
14:37:12 | halirc | I tried both with and without setting the NIM_LIB_PREFIX environment variable but the standard library is not found by nimble. I added an "ls -l $NIM_LIB_PREFIX" to the travis build and that shows some files, including system.nim. I don't know what I'm doing wrong. |
14:38:50 | * | suspiciouswombat joined #nim |
14:44:28 | * | gb00s quit (Quit: Ping timeout (120 seconds)) |
14:45:06 | * | gb00s joined #nim |
14:45:16 | * | hendi quit (Ping timeout: 252 seconds) |
14:49:47 | * | hendi joined #nim |
14:50:18 | FromGitter | <Vindaar> Hm, unfortunately I'm not too knowledgeable about travis either :/ |
15:12:54 | * | xet7 joined #nim |
15:13:22 | halirc | This is the first time I'm doing anything with travis but it looks like it's just executing commands like in a shell. I don't think it's a travis specific issue. The directory is there and the files too, nimble does not find it though. https://travis-ci.org/docopt/docopt.nim/jobs/423628576 |
15:15:11 | FromGitter | <Vindaar> that's what it does, yes. I personally find it just really annoying to debug, since you can't have like an "interactive travis shell" where you can try to set everything up |
15:17:37 | * | TheLemonMan joined #nim |
15:21:01 | FromGitter | <data-man> My vote go to pegs as PCRE's replacement :) |
15:24:10 | * | NimBot joined #nim |
15:24:56 | FromGitter | <Araq> halirc: check the travis file of Nim |
15:26:17 | TheLemonMan | does it support all the PCRE syntax? if not you can't really call it a replacement |
15:28:42 | halirc | data-man, I did not know about pegs until you mentioned it. It looks to me like it would require quite the rewrite of docopt, which is at least beyond what I can do. Putting nim-regex was only a 3 line change, if I ever get it to compile to show to people ;) |
15:40:02 | * | edcragg quit (Quit: ZNC - http://znc.in) |
15:40:07 | * | cspar_ quit (Ping timeout: 240 seconds) |
15:40:25 | * | edcragg joined #nim |
16:01:19 | * | cspar_ joined #nim |
16:15:09 | * | ofelas joined #nim |
16:17:33 | * | edcragg quit (Ping timeout: 245 seconds) |
16:17:55 | * | federico3 quit (Read error: Connection reset by peer) |
16:18:24 | * | edcragg joined #nim |
16:19:44 | * | federico3 joined #nim |
16:20:34 | * | nsf joined #nim |
16:24:24 | FromGitter | <tim-st> I just noticed that nimsuggest works really good in vscode if I open the file as a single file, but when I open a folder in vscode it doesnt work good :\ |
16:30:19 | FromGitter | <ephja> I was told that it was spawning one nimsuggest process per module |
16:31:01 | FromGitter | <ephja> I recall being able to look up symbols in files that are included too when opening the correct folder, but I dunno maybe the biggest issue is accelerated memory leaking in that case |
16:31:42 | FromGitter | <ephja> nvim-nim also indents incorrectly. apparently it's a difficult problem to solve :p |
16:33:57 | FromGitter | <ephja> wait. nvim-nim kind of does the right thing, except each indent is about 8 spaces |
16:38:11 | TheLemonMan | again what's the the switch that dumps the gcc invocation? |
16:40:40 | PMunch | TheLemonMan, --listCmd ? |
16:40:55 | PMunch | You can find the switches by calling "nim --advanced" |
16:42:26 | TheLemonMan | hmm, it only spits out the command for the linking phase |
16:43:39 | TheLemonMan | screw that, I'm blind |
16:45:39 | FromGitter | <ephja> I dunno but the command line is shown in a comment in each output file |
16:48:47 | FromGitter | <tim-st> is there a proc that swap only the first rune of a string? |
16:50:14 | krux02 | tim-st: there is no "swapping" the first rune of a string |
16:50:49 | FromGitter | <bung87> @tim-st hold on I will drop a patached vscode-nim for you |
16:50:50 | FromGitter | <tim-st> swap the case of first rune |
16:50:59 | FromGitter | <ephja> --verbosity:2 ? |
16:51:13 | krux02 | swapping implies that it is a cheap operation, but replacing the first rune of a string can require to move all bytes in the string |
16:51:15 | FromGitter | <tim-st> @bung87 do you have a version that works good? |
16:51:40 | krux02 | tim-st: nim is not emacs |
16:52:00 | FromGitter | <tim-st> krux02: is there a rune that has a different bytelen when swapped? |
16:52:12 | FromGitter | <bung87> yeah works fine on my mac you can see changes here https://github.com/bung87/vscode-nim/commits/master |
16:52:23 | krux02 | tim-st maybe ß ẞ |
16:52:33 | FromGitter | <tim-st> @bung87 thanks, will have a look |
16:54:17 | FromGitter | <tim-st> krux02: ß can never be a first letter, but I get the point^^ |
16:54:54 | krux02 | tim-st: in the message you just posted ß is the first letter |
16:55:21 | FromGitter | <tim-st> yes, but I use the proc in a list of known entries |
16:55:42 | * | captainkraft quit (Ping timeout: 252 seconds) |
16:55:48 | krux02 | also "toggle case" is a thing that only very few characters can do at all |
16:55:52 | FromGitter | <tim-st> and also if one would have this rare case it could easily copy |
16:56:07 | FromGitter | <codem4ster> what is the different between `createThread` and `spawn` |
16:56:11 | krux02 | CJK for example can't do it, and there are many other languages that can't |
16:57:14 | FromGitter | <tim-st> @bung87 how can I "build" the extension? |
16:57:44 | FromGitter | <bung87> nim-0.5.30.vsix.zip (https://files.gitter.im/nim-lang/Nim/Lzn1/nim-0.5.30.vsix.zip) |
16:57:50 | * | captainkraft joined #nim |
16:57:58 | FromGitter | <tim-st> thanks! |
16:58:37 | FromGitter | <bung87> wow gitter support file upload .so I drop here |
16:58:38 | FromGitter | <bung87> (https://files.gitter.im/nim-lang/Nim/QmZI/Screen-Shot-2018-09-03-at-12.58.12-AM.png) |
16:59:03 | FromGitter | <tim-st> nice, thanks |
16:59:42 | FromGitter | <bung87> you're welcome, if you have any problem , tell me I will try to fix |
17:00:18 | FromGitter | <tim-st> thanks |
17:13:25 | FromGitter | <tim-st> @bung87 suggestions dont work anymore and I get a "AggregateError" info message |
17:13:59 | FromGitter | <tim-st> I meant go to definition |
17:16:34 | FromGitter | <bung87> other feature works? |
17:17:55 | FromGitter | <tim-st> these are the only features I use, the error also appears when clicking crtl+s |
17:18:30 | * | Turner92 joined #nim |
17:21:01 | FromGitter | <bung87> where the error come from it's not like a js error |
17:23:18 | FromGitter | <bung87> (https://files.gitter.im/nim-lang/Nim/sqsj/Screen-Shot-2018-09-03-at-1.22.48-AM.png) |
17:23:20 | * | Turner92 quit (Remote host closed the connection) |
17:23:56 | FromGitter | <bung87> if it successfully found the nimsuggest there a status bar |
17:27:52 | FromGitter | <bung87> I know where it raise now. |
17:28:16 | FromGitter | <tim-st> I dont know, all bars are gone and I dont know how to get them back... |
17:29:00 | * | sz0 quit (Quit: Connection closed for inactivity) |
17:33:31 | * | cspar_ quit (Ping timeout: 246 seconds) |
17:49:17 | FromGitter | <bung87> `{ ⏎ ⏎ ```"nim.nimsuggest": ""``` ⏎ ⏎ }` provide nisuggest path for now. [https://gitter.im/nim-lang/Nim?at=5b8c229cf86b741b05fbd813] |
17:53:07 | FromGitter | <tim-st> I reinstalled vscode I have the old version back, I will try it later, thanks |
17:54:15 | FromGitter | <kayabaNerve> Anyone here know about the atom Nim plugin? :P it keeps checking for |
17:54:54 | FromGitter | <kayabaNerve> *for errors via my Windows Nim compiler, but it's the one on my Linux subsystem that matters... |
17:57:29 | FromDiscord | <emekoi> codem4syet, `createThread` creates a new thread, but `spawn` adds a task to a threadpool created by the threadpool package. |
18:30:06 | * | kapil___ quit (Quit: Connection closed for inactivity) |
18:35:20 | * | wildlander quit (Quit: Konversation terminated!) |
18:45:05 | * | Jesin joined #nim |
18:46:06 | Serenitor | terminal.styledWriteLine occasionally raises an Unknown IO Error for me when printing to the console embedded in VSCode... I'm sure such an obscure bug doesn't ring any bells in here? |
18:50:18 | FromGitter | <bung87> @tim-st try this one https://github.com/bung87/vscode-nim/releases/download/v0.5.30/nim-0.5.30.vsix.2.zip |
18:54:40 | * | SenasOzys quit (Ping timeout: 272 seconds) |
19:03:08 | * | kapil___ joined #nim |
19:03:20 | * | dorelix joined #nim |
19:06:09 | * | SenasOzys joined #nim |
19:08:27 | FromGitter | <Araq> it's not obscure, it's VSCode bug, @Serenitor |
19:09:05 | Serenitor | figured as much, which is why I called it obscure |
19:09:48 | Serenitor | especially since it only happens occasionally |
19:13:43 | federico3 | any hint about this? Error: usage of 'isNil' is a user-defined error |
19:14:35 | FromGitter | <ephja> the overload in question has been annotated with the 'error' pragma I think |
19:14:42 | TheLemonMan | isNil is deprecated |
19:18:29 | FromGitter | <ephja> I see that now, but should it result in an error? |
19:19:10 | * | dorelix quit (Remote host closed the connection) |
19:21:04 | TheLemonMan | yes, that's the hard-deprecation path |
19:23:18 | * | crayfishx26 joined #nim |
19:24:00 | * | crayfishx26 quit (Remote host closed the connection) |
19:25:35 | FromGitter | <ephja> ok |
19:39:25 | * | xet7 quit (Quit: Leaving) |
19:42:34 | * | nathanj quit (Ping timeout: 250 seconds) |
19:44:33 | * | TheLemonMan quit (Quit: "It's now safe to turn off your computer.") |
20:05:58 | * | nathanj joined #nim |
20:12:40 | FromGitter | <xmonader> Long day. @bung87 What did you mean by implement in wrap proc? |
20:12:58 | * | rockcavera quit (Ping timeout: 245 seconds) |
20:16:30 | * | Trustable quit (Remote host closed the connection) |
20:16:43 | FromGitter | <bung87> https://github.com/andymccurdy/redis-py/blob/master/redis/client.py#L462 like this |
20:17:01 | halirc | dom96, thank you for your help on the docopt PR. Package install works but I ran into another issue, nimble (I think) outputs: SIGSEGV: Illegal storage access. (Attempt to read from nil?) https://travis-ci.org/docopt/docopt.nim/jobs/423692128#L727 |
20:18:07 | halirc | dom96, sorry the line was not correct for some reason, its 864, https://travis-ci.org/docopt/docopt.nim/jobs/423692128#L864 |
20:18:45 | dom96 | hmmm |
20:18:57 | dom96 | Seems I introduced a bug into Nimble |
20:26:19 | FromGitter | <tim-st> @bung87 thanks! |
20:26:33 | FromGitter | <zetashift> https://github.com/fragcolor-xyz/nimtorch ooh this is nice |
20:29:38 | dom96 | And I cannot reproduce it :( |
20:29:46 | dom96 | halirc: Can you reproduce this locally? |
20:34:40 | halirc | dom96, no, I can not. Not by just running the test task with "nimble test" at least. Works fine for me locally. I have not tried to do all the exact same steps as are in the .travis.yml file though. |
20:44:50 | * | rockcavera joined #nim |
20:48:40 | * | suspiciouswombat quit (Ping timeout: 272 seconds) |
20:49:07 | * | suspiciouswombat joined #nim |
20:50:27 | * | Vladar quit (Remote host closed the connection) |
21:07:43 | * | PMunch quit (Quit: Leaving) |
21:15:33 | * | S1tiSchu quit (Read error: Connection reset by peer) |
21:18:19 | FromGitter | <xmonader> Why BSD3 isn't allowed in Nimble? https://github.com/nim-lang/nimble/blob/d606867da636e3377cb5c8d55e9653388e1121cb/src/nimble.nim#L767 |
21:29:28 | dom96 | because that list isn't full |
21:33:01 | * | halirc quit (Quit: Leaving) |
21:38:06 | FromGitter | <xmonader> I see, did you have the time to check the Redis parser? I just added the pipelining @dom96 |
21:45:32 | FromGitter | <dom96> No. Sorry. |
21:49:11 | * | vivus joined #nim |
21:50:26 | * | nsf quit (Quit: WeeChat 2.2) |
22:20:27 | * | stefanos82 quit (Quit: Quitting for now...) |
22:43:14 | * | DanPin3 joined #nim |
22:48:15 | * | DanPin3 quit (Ping timeout: 252 seconds) |
22:52:25 | vivus | I get a strange IO error when trying to make a file output its contents to the terminal, im using this example: https://nim-lang.org/docs/system.html#lines.i,string |
22:53:43 | vivus | actual error: https://www.zerobin.net/?dda8a7cae0930c4f#lq7rGo7+w9gkBzkdzuc0d74MJDacSguapEanRLJi2QY= |
22:54:49 | FromGitter | <bung87> try pass a absolute path |
22:57:54 | vivus | I fixed it using this: https://rosettacode.org/wiki/Read_a_file_line_by_line#Nim |
22:59:12 | FromGitter | <bung87> hmm seems like the file no exist |
23:00:09 | vivus | hmmm. so when I add the file like this: var myfile: string = readFile("file.txt"), it outputs that error above. |
23:00:41 | vivus | I think it's cause the lines iterator is for files and here I have a string now |
23:01:17 | vivus | is there a cleaner way of writing this: for line in lines "file.txt" ? |
23:02:29 | FromGitter | <bung87> ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=5b8c6c054be56c5918d1f7f8] |
23:03:08 | FromGitter | <bung87> ``` splitLines(content): `````` |
23:04:57 | FromGitter | <bung87> I got two version, one for read line by line ,one for read whole file, haven't try that two sugar you're using |
23:08:48 | * | Serenitor quit (Read error: Connection reset by peer) |
23:12:30 | * | Serenitor joined #nim |
23:15:36 | vivus | I think I have an idea, I will just make the filename a string and pass it to every area where I need it |
23:40:08 | * | kapil___ quit (Quit: Connection closed for inactivity) |
23:50:50 | * | regtools_ joined #nim |
23:51:36 | * | koppeh joined #nim |
23:54:20 | * | regtools quit (Ping timeout: 260 seconds) |
23:54:20 | * | copygirl quit (Ping timeout: 260 seconds) |
23:59:43 | FromGitter | <xDotDash> Is there an expression version of the case statement? |