<< 02-09-2018 >>

00:15:44*xet7 quit (Quit: Leaving)
00:19:01FromGitter<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:24zachcarterhow can I make a new operator that consists of two characters and accepts a cstring?
00:29:48zachcarterI'm trying to define an operator that allows me to create template literals in JS
00:29:56zachcarterin JS the syntax is - `text`
00:30:08zachcarterI'd like to create an operator that works like %text% or something similar
00:30:18zachcarterI have proc `%%`(s: cstring): cstring {.importcpp: "eval('`' + # + '`')".}
00:30:22zachcarterbut that doesn't seem to be working
00:30:23FromGitter<kayabaNerve> ```proc `*%%`(cstr: cstring): int = ⏎ echo cstr ⏎ result = 0``` [https://gitter.im/nim-lang/Nim?at=5b8b2f1fac25fd11b5c9641f]
00:31:14zachcarterhrm - yeah that's what I tried
00:31:26FromGitter<kayabaNerve> I don't think you can do infix ops
00:31:28FromGitter<kayabaNerve> It's ambiguous
00:31:34zachcarterah okay
00:32:07zachcarterthanks
00:32:10FromGitter<kayabaNerve> ```code paste, see link```
00:32:13FromGitter<kayabaNerve> From the manuyal
00:32:36FromGitter<kayabaNerve> There's no postfix; a single argument is prefix
00:32:49zachcartergotcha
00:33:14FromGitter<kayabaNerve> I mean, it parses as ⏎ % op ⏎ thingy ⏎ % op [https://gitter.im/nim-lang/Nim?at=5b8b2fc911227d711d00a5b7]
00:33:20FromGitter<kayabaNerve> Not %% op
00:33:26zachcarterright
00:33:41FromGitter<bung87> @ephja thanks ! works
00:35:16zachcarterI 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:23zachcarterthis ticks the counter every second
00:35:37zachcarterand interpolates the value in the h2
00:35:51zachcarterand it's using flyx's emerald library (with modifications) for the DSL that produces html
00:36:11zachcarternow I have to implement selective updates
00:36:58zachcarterand then we'll have our own hyperHTML for Nim :)
00:46:20zachcarterbetter gist showing the console log - https://gist.github.com/zacharycarter/b68aded56439c77ebdf6022a729c61e8
00:49:38zachcarterhoping to use this library in the embedded widget we have to write at work - going to be using web components.
00:51:18zachcarterI 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:12zachcarterAraq: 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:31zachcarterIt could be an alternative set of functionality to the dom diffing / vdom implementation karax currently features
00:53:07krux02zachcarter, how is your multiplayer rogue going?
00:53:35zachcarterkrux02: 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:43zachcarterI got the greenlight to use Nim at work - so I need to author this library
00:53:58zachcarterso we have more reason to use Nim
00:54:46zachcarterhttps://viperhtml.js.org/hyperhtml/documentation/ - is what I'm porting essentially
00:55:05krux02I am recently playing a lot of brogue
00:55:13zachcarterthat's a great game :)
00:55:24krux02after recommending it to you, I got addicted again
00:55:30krux02I once got to detph 23
00:55:47zachcarterpretty damn good!
00:56:01krux02I had a troll resqued and the first thing I did was to duplicate him
00:56:08krux02they are great in self heating
00:56:21zachcarteryeah
00:56:24krux02and today I had a run where I leveled the staff of conjurance
00:56:44krux02it hat 6 charges creating 12 spectral blades on each shot
00:56:59zachcartermaking me want to play brogue now lol
00:57:09krux02I died because I was out of charges and never identified my charm of teleportation
00:57:17krux02if I did I could have just teleported away
00:58:07krux02my mace had a rune that made it creta a spectral mace with my strength
00:58:28zachcarterlol
00:58:42krux02I also onece had a cursed weapon with a rune that had a chance of healing the enemy
00:58:58zachcarterlmao
00:59:13zachcarteryeah - I love those kinds of things
00:59:33zachcarterpgc is awesome :D
01:00:07FromGitter<bung87> ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=5b8b3616e5b40332ab2f79d7]
01:00:33krux02today 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:40krux02pgc?
01:00:55zachcarter`newSeq[0]` ? - that doesn't look right
01:01:00zachcarterprocedurally generated content
01:02:24FromGitter<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:10zachcarterbung87: what are you asking about?
01:03:14krux02zachcarter, 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:26FromGitter<bung87> there `echo 1 # does not loop anymore?`
01:03:32krux02So whenever there is a wand of empowerment I use it on my ally and put it back
01:03:56zachcarterhaha that's awesome
01:03:58krux02Bung: what is that supposed to mean?
01:04:41krux02I have the feeling that the recommended age for playing roguelikes is 30
01:05:14zachcarterwell - they're definitely not appealing to younger generations
01:05:17zachcarterbased on their popularity
01:05:21FromGitter<bung87> there are two iterate but only the first actully iterate
01:05:21zachcarterat least traditional RL's anyway
01:05:31krux02well I think they are, but only when they get older :P
01:05:57zachcarterhaha good point
01:06:21krux02I 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:27zachcarterhaha - interesting, I wonder why - maybe it's a really old verison
01:07:27krux02but I think the controls are unplayable.
01:07:30zachcarterah
01:07:53krux02vim keys plus some diagonals placed at positions that doen't make sense at all.
01:08:59krux02both nethack and rogue have similar but similar horrible controls
01:09:10krux02for example the inventory just tells you the letters for the items
01:09:16krux02but you can't do anything with them
01:09:26krux02you have to quit the inventory first
01:09:53krux02then select an action by typing the correct charactor and then the item character that you want to use that action with
01:09:59krux02super weird
01:10:08zachcarteryeah
01:10:18zachcarternot very user friendly at all
01:11:10krux02and then there are 1000 actions
01:11:26krux02to use a potion, I really had struggle with it
01:11:38krux02I thought, maybe eat
01:11:41krux02no doesn't work
01:12:01krux02the I looked for "drink" in the available commands, nope not there
01:12:10krux02it is "quaff"
01:12:10krux02wtf
01:12:19krux02I never heared that word before
01:12:24krux02I am not a native speaker
01:12:45zachcarterhahaha - neither have I so don't worry
01:13:22zachcarterhttps://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:28zachcarterapparently its coming back!
01:14:19krux02probably because of nethack
01:15:00zachcarterlol
01:19:47*S1tiSchu joined #nim
01:20:47FromGitter<ephja> @bung87 are you sure that `self.f`2?
01:21:52FromGitter<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:04FromGitter<bung87> I move it outside ,it's `{.inline.}` now, when it's `{.closure.}` it acts like that
01:28:14krux02good night people
01:28:39*cspar_ joined #nim
01:29:03FromGitter<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:43zachcarterhe's in EU -I think Germany
01:31:51zachcarterso it's like 2:30 am there
01:33:02FromGitter<bung87> seems many people here in Europe
01:35:50*dddddd quit (Remote host closed the connection)
01:39:48zachcarterwell - Nim's author is based there
01:39:58zachcarterwhere are you from if you don't mind me asking?
01:40:36FromGitter<bung87> I'm from China Mainland
01:41:11zachcarterah cool! we have another very active Nim community member from China (I think anyway)
01:41:41FromGitter<gogolxdong> which one?
01:42:37zachcartergogolxdong
01:42:48zachcartersorry - had to search for his name in the irclogs because it's not very memorable
01:43:03zachcarteralthough - now that I read it in my head it is :)
01:43:23zachcarterhttps://github.com/gogolxdong
01:44:28FromGitter<kayabaNerve> So we have @bung87 and @gogolxdong . Right here.
01:44:54FromGitter<kayabaNerve> zachcarter Why did you tell Gogol he was the other community member lol
01:45:21zachcarterhuh?
01:45:40*gogolxdong joined #nim
01:45:47FromGitter<kayabaNerve> https://ibb.co/bXRn9e
01:46:09zachcarteroh weird
01:46:25FromGitter<kayabaNerve> I just think its hilarious; I'm sure its something to do with the Bridge
01:46:38FromGitter<kayabaNerve> Not trying to cast shade; just laughing a ton
01:46:45FromGitter<gogolxdong> wonder what the log looks like in IRC
01:46:46zachcarterlmao - my bad - I had thought bung87 asked `which one`
01:46:55zachcarterno - it's just an honest mistake of not reading
01:47:04FromGitter<kayabaNerve> There is IRC logs
01:47:13FromGitter<kayabaNerve> https://irclogs.nim-lang.org/
01:47:21FromGitter<kayabaNerve> Because IRC is for peasants
01:47:38FromGitter<bung87> :)
01:48:11zachcarterI need to read before I type :P
01:48:20FromGitter<kayabaNerve> I don't believe in that
01:48:23zachcarterhahaha
01:48:35FromGitter<gogolxdong> It's where everything begins.
01:49:06FromGitter<kayabaNerve> I used to use IRC every day for hours
01:49:22FromGitter<kayabaNerve> I have this nick registered on freenode
01:49:23zachcarteranyways - 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:36FromGitter<kayabaNerve> Good luck. I'm going to start using my Events lib
01:49:52zachcarterthank 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:31FromGitter<bung87> done my night work, thank you guys! https://github.com/bung87/simhash-nim/blob/master/src/simhash_nim.nim
02:56:15FromGitter<gogolxdong> we have set up a Nim in China community on Discord https://discord.gg/sMcQUDJ, welcome to discuss.
02:56:40zachcarter:D
02:57:10zachcarterSomeone needs to write a translate bot :P
02:59:30zachcarterhttps://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:56FromGitter<gogolxdong> I think it uses google NLP API or something similar.
03:21:00FromGitter<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:18FromGitter<kayabaNerve> I tried renaming it; it did nothing. No, I do not have `objects` and `Objects`
03:21:51FromGitter<kayabaNerve> But I had a path like that?
03:22:04FromGitter<kayabaNerve> Is Nim supposed to have case insensitive imports?
03:22:30FromGitter<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:50zachcarterdoes anyone know where the escape backtick is defined in the nim code?
06:59:56zachcarterI'm trying to see how it is implemented
07:00:49FromGitter<Araq> the node is called `nkAccQuoted`
07:00:53FromGitter<Araq> iirc
07:01:28FromGitter<Araq> `lookups.considerQuotedIdent` does most of the hard work
07:01:44zachcarterthank you
07:11:05*kapil___ joined #nim
07:16:40*TheLemonMan joined #nim
07:46:28zachcarterhrmmm - 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:13FromGitter<ephja> aren't they the same thing now?
09:21:35*cspar_ joined #nim
09:22:35TheLemonManunder 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:35FromGitter<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:25zachcarterdo you have example code codem4ster?
10:12:35*rockcavera quit (Remote host closed the connection)
10:25:09FromGitter<codem4ster> https://pastebin.com/s7Mnhcik
10:26:22FromGitter<codem4ster> this code works as proxy between firefox and my personal server at 80.211.47.241
10:27:52FromGitter<codem4ster> it apply some basic encoding to data before sending it and decodes right after getting it
10:29:41FromGitter<codem4ster> Firefox opens so many connection at the same time so I'm trying to accomplish this with threads
10:34:39FromGitter<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:26TheLemonManprinting + threads is a recipe for disaster :)
10:40:54*Vladar quit (Remote host closed the connection)
10:42:00FromGitter<codem4ster> I just trying to debug :)
10:43:12TheLemonManyour output is probably stuck in the buffer or something like that
10:47:50FromGitter<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:59FromGitter<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:27Serenitorjust updated nim and am getting `random is deprecated` now
10:54:37Serenitorwhat's the new std rng?
10:59:58*his joined #nim
11:00:08PMunchrand 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:51copygirl> Error: attempting to call undeclared routine: 'set'
11:04:53copygirlhttps://gist.github.com/copygirl/36ed6849abc3e920d378b126332f5b02
11:05:48copygirl... I don't understand the error. modelviewLoc is a Uniform which *does* have a set proc defined.
11:06:39copygirlOh, there's a typo there ... though it doesn't matter
11:06:46Serenitorah, the module is still called random but the procs been renamed to rand
11:06:51Serenitorthanks PMunch
11:09:13PMunchYeah, not entirely sure why they did that. It's a bit confusing :P
11:09:23zachcarterhmm
11:09:28zachcarterdo js var parameters work?
11:10:11zachcarteras 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:31PMunchcopygirl, missing an import perhaps?
11:11:04PMunchHard to tell without knowing what either modelView or modelViewLoc are
11:11:38copygirlCustom type in another module, but it's there, and imported.
11:11:50copygirlEven VS Code intellisense recognizes it.
11:15:02PMunchTry to mark you template with the {.dirty.} pragma
11:16:28FromGitter<zah> Did you guys notice? Go will be gaining generics and concepts o.O
11:16:29FromGitter<zah> https://go.googlesource.com/proposal/+/master/design/go2draft-contracts.md
11:17:11zachcarterzah: yes I read the draft for go - I still feel like the spec needs a long way to go / more fleshing out
11:17:13copygirl> Error: undeclared identifier: 'modelview'
11:17:21*rockcavera joined #nim
11:17:21copygirlHmm, new error. Same confusion.
11:17:38copygirl> Hint: 'modelview' is declared but not used [XDeclaredButNotUsed]
11:17:47zachcarteralso - 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:16copygirlCan non-exported values not be used in templates?
11:23:57PMunchProbably not
11:24:03*grumble13 joined #nim
11:24:31PMunchOr wait, can't you use non-exported values in macros?
11:25:07FromGitter<bung87> https://nim-lang.org/docs/manual.html#templates-symbol-binding-in-templates
11:26:42FromGitter<bung87> see if helps
11:28:50*grumble13 quit (Remote host closed the connection)
11:28:54*Perkol quit (Quit: Leaving)
11:31:10copygirlPMunch: The odd thing is, I was able to use procs that weren't exported.
11:32:20PMunchMaybe you're allowed to call internal procs but not change internal global variables?
11:32:28PMunchSeems like a strange limitation
11:32:51PMunchTry to add a simple wrapper proc that just changes the internal variable and use that instead of accessing the variable directly
11:33:02PMunchJust to see if that works
11:33:20FromGitter<zetashift> @bung87 on your simhash you wrote " defualtReg " instead of `defaultReg`
11:33:22copygirlYeah I had that before. I should probably try seeing if exporting the variables works, first.
11:34:09zachcarterugh - I can't get apply to work right with var parameters
11:34:22FromGitter<bung87> @zetashift ah , thank you ! typo
11:34:22copygirlMhhhn.. nope!
11:35:33FromGitter<zetashift> np I found it too petty to create an issue lol\
11:36:04zachcarternm figured out my issue
11:36:44FromGitter<bung87> actually there is a `defualtF` before :)
11:37:45copygirlBut yeah, wrapping the setting of the modelview in a proc works.
11:38:52FromGitter<bung87> the last thing is having multi initialize proc with less code ,the simple way I may have 5 initialize proc..
11:40:52FromGitter<bung87> https://github.com/bung87/simhash-nim/blob/master/src/simhash_nim.nim#L84
11:50:03FromGitter<zetashift> you can use `or` when supplying the type? TIL
11:52:51FromGitter<bung87> nope , just assuming that .
11:58:02PMunchBash must have one of the strangest case syntaxes I've ever seen
11:59:08FromGitter<xmonader> Anyone wants to review? https://github.com/xmonader/nim-resp
12:04:01FromGitter<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:46FromGitter<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:00FromGitter<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:06halircHello. 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:30halirchttps://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:24FromGitter<bung87> using regex github url
13:02:58FromGitter<bung87> it's not stdlib so it dont know where to get it
13:17:14halircI see. So it should work if I replace the package name with the github url?
13:24:30halircThat does not seem to be it. I think there might be a step missing from the Tracis build? Some nimble install step
13:28:39FromGitter<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:16FromGitter<Vindaar> instead of using `nimble test` it runs the `test/test.nim` file directly
13:30:25FromGitter<Vindaar> Replacing that line with `nimble test` should work (the `test` task is defined in the .nimble file already)
13:32:05FromGitter<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:45FromGitter<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:26halircVindaar, 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:21halircOn 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:35FromGitter<Araq> our .travis file contains nimble commands fwiw
14:07:02zachcarterhrm - I'm having a tough time getting a value of `'"'` assigned to a variable w/ the JS backend
14:07:34zachcarterthe double quote seems to always get escaped in the resulting JS
14:16:49FromGitter<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:27halircAraq, 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:12halircI 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:18FromGitter<Vindaar> Hm, unfortunately I'm not too knowledgeable about travis either :/
15:12:54*xet7 joined #nim
15:13:22halircThis 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:11FromGitter<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:01FromGitter<data-man> My vote go to pegs as PCRE's replacement :)
15:24:10*NimBot joined #nim
15:24:56FromGitter<Araq> halirc: check the travis file of Nim
15:26:17TheLemonMandoes it support all the PCRE syntax? if not you can't really call it a replacement
15:28:42halircdata-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:24FromGitter<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:19FromGitter<ephja> I was told that it was spawning one nimsuggest process per module
16:31:01FromGitter<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:42FromGitter<ephja> nvim-nim also indents incorrectly. apparently it's a difficult problem to solve :p
16:33:57FromGitter<ephja> wait. nvim-nim kind of does the right thing, except each indent is about 8 spaces
16:38:11TheLemonManagain what's the the switch that dumps the gcc invocation?
16:40:40PMunchTheLemonMan, --listCmd ?
16:40:55PMunchYou can find the switches by calling "nim --advanced"
16:42:26TheLemonManhmm, it only spits out the command for the linking phase
16:43:39TheLemonManscrew that, I'm blind
16:45:39FromGitter<ephja> I dunno but the command line is shown in a comment in each output file
16:48:47FromGitter<tim-st> is there a proc that swap only the first rune of a string?
16:50:14krux02tim-st: there is no "swapping" the first rune of a string
16:50:49FromGitter<bung87> @tim-st hold on I will drop a patached vscode-nim for you
16:50:50FromGitter<tim-st> swap the case of first rune
16:50:59FromGitter<ephja> --verbosity:2 ?
16:51:13krux02swapping 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:15FromGitter<tim-st> @bung87 do you have a version that works good?
16:51:40krux02tim-st: nim is not emacs
16:52:00FromGitter<tim-st> krux02: is there a rune that has a different bytelen when swapped?
16:52:12FromGitter<bung87> yeah works fine on my mac you can see changes here https://github.com/bung87/vscode-nim/commits/master
16:52:23krux02tim-st maybe ß ẞ
16:52:33FromGitter<tim-st> @bung87 thanks, will have a look
16:54:17FromGitter<tim-st> krux02: ß can never be a first letter, but I get the point^^
16:54:54krux02tim-st: in the message you just posted ß is the first letter
16:55:21FromGitter<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:48krux02also "toggle case" is a thing that only very few characters can do at all
16:55:52FromGitter<tim-st> and also if one would have this rare case it could easily copy
16:56:07FromGitter<codem4ster> what is the different between `createThread` and `spawn`
16:56:11krux02CJK for example can't do it, and there are many other languages that can't
16:57:14FromGitter<tim-st> @bung87 how can I "build" the extension?
16:57:44FromGitter<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:58FromGitter<tim-st> thanks!
16:58:37FromGitter<bung87> wow gitter support file upload .so I drop here
16:58:38FromGitter<bung87> (https://files.gitter.im/nim-lang/Nim/QmZI/Screen-Shot-2018-09-03-at-12.58.12-AM.png)
16:59:03FromGitter<tim-st> nice, thanks
16:59:42FromGitter<bung87> you're welcome, if you have any problem , tell me I will try to fix
17:00:18FromGitter<tim-st> thanks
17:13:25FromGitter<tim-st> @bung87 suggestions dont work anymore and I get a "AggregateError" info message
17:13:59FromGitter<tim-st> I meant go to definition
17:16:34FromGitter<bung87> other feature works?
17:17:55FromGitter<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:01FromGitter<bung87> where the error come from it's not like a js error
17:23:18FromGitter<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:56FromGitter<bung87> if it successfully found the nimsuggest there a status bar
17:27:52FromGitter<bung87> I know where it raise now.
17:28:16FromGitter<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:17FromGitter<bung87> `{ ⏎ ⏎ ```"nim.nimsuggest": ""``` ⏎ ⏎ }` provide nisuggest path for now. [https://gitter.im/nim-lang/Nim?at=5b8c229cf86b741b05fbd813]
17:53:07FromGitter<tim-st> I reinstalled vscode I have the old version back, I will try it later, thanks
17:54:15FromGitter<kayabaNerve> Anyone here know about the atom Nim plugin? :P it keeps checking for
17:54:54FromGitter<kayabaNerve> *for errors via my Windows Nim compiler, but it's the one on my Linux subsystem that matters...
17:57:29FromDiscord<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:06Serenitorterminal.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:18FromGitter<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:27FromGitter<Araq> it's not obscure, it's VSCode bug, @Serenitor
19:09:05Serenitorfigured as much, which is why I called it obscure
19:09:48Serenitorespecially since it only happens occasionally
19:13:43federico3any hint about this? Error: usage of 'isNil' is a user-defined error
19:14:35FromGitter<ephja> the overload in question has been annotated with the 'error' pragma I think
19:14:42TheLemonManisNil is deprecated
19:18:29FromGitter<ephja> I see that now, but should it result in an error?
19:19:10*dorelix quit (Remote host closed the connection)
19:21:04TheLemonManyes, that's the hard-deprecation path
19:23:18*crayfishx26 joined #nim
19:24:00*crayfishx26 quit (Remote host closed the connection)
19:25:35FromGitter<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:40FromGitter<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:43FromGitter<bung87> https://github.com/andymccurdy/redis-py/blob/master/redis/client.py#L462 like this
20:17:01halircdom96, 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:07halircdom96, sorry the line was not correct for some reason, its 864, https://travis-ci.org/docopt/docopt.nim/jobs/423692128#L864
20:18:45dom96hmmm
20:18:57dom96Seems I introduced a bug into Nimble
20:26:19FromGitter<tim-st> @bung87 thanks!
20:26:33FromGitter<zetashift> https://github.com/fragcolor-xyz/nimtorch ooh this is nice
20:29:38dom96And I cannot reproduce it :(
20:29:46dom96halirc: Can you reproduce this locally?
20:34:40halircdom96, 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:19FromGitter<xmonader> Why BSD3 isn't allowed in Nimble? https://github.com/nim-lang/nimble/blob/d606867da636e3377cb5c8d55e9653388e1121cb/src/nimble.nim#L767
21:29:28dom96because that list isn't full
21:33:01*halirc quit (Quit: Leaving)
21:38:06FromGitter<xmonader> I see, did you have the time to check the Redis parser? I just added the pipelining @dom96
21:45:32FromGitter<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:25vivusI 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:43vivusactual error: https://www.zerobin.net/?dda8a7cae0930c4f#lq7rGo7+w9gkBzkdzuc0d74MJDacSguapEanRLJi2QY=
22:54:49FromGitter<bung87> try pass a absolute path
22:57:54vivusI fixed it using this: https://rosettacode.org/wiki/Read_a_file_line_by_line#Nim
22:59:12FromGitter<bung87> hmm seems like the file no exist
23:00:09vivushmmm. so when I add the file like this: var myfile: string = readFile("file.txt"), it outputs that error above.
23:00:41vivusI think it's cause the lines iterator is for files and here I have a string now
23:01:17vivusis there a cleaner way of writing this: for line in lines "file.txt" ?
23:02:29FromGitter<bung87> ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=5b8c6c054be56c5918d1f7f8]
23:03:08FromGitter<bung87> ``` splitLines(content): ``````
23:04:57FromGitter<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:36vivusI 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:43FromGitter<xDotDash> Is there an expression version of the case statement?