<< 11-05-2018 >>

00:01:22*xkapastel quit (Quit: Connection closed for inactivity)
00:15:26*craigger quit (Quit: bye)
00:16:25*craigger joined #nim
00:18:00*xkapastel joined #nim
00:18:21*gokr quit (Ping timeout: 240 seconds)
00:20:37*jrbrt quit (Quit: jrbrt)
00:20:57*craigger quit (Ping timeout: 240 seconds)
00:23:51*arecaceae quit (Remote host closed the connection)
00:24:15*arecaceae joined #nim
00:24:45*craigger joined #nim
00:26:06*craigger quit (Client Quit)
00:29:03*craigger joined #nim
00:51:55*icebattl1 quit (Ping timeout: 268 seconds)
01:32:41FromGitter<gogolxdong> @PMunch Do you think it is possible to port protobuf-nim to js backend? If so ,how and I might want to help.
01:32:56FromGitter<gogolxdong> @shashlick How do you install nim with tcc?
01:41:26FromGitter<data-man> @gogolxdong: Something like this: ⏎ ⏎ ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=5af4f4c5a2d95136332ed74b]
01:43:14FromGitter<data-man> For dev version of tcc
01:44:18FromGitter<gogolxdong> @data-man yes, how to install nim using tcc? I have tcc 0.9.27 installed.
01:46:09FromGitter<gogolxdong> both windows10 and its subsystem
01:46:55FromGitter<data-man> @gogolxdong: how to install nim using gcc? Or clang? :) I can't understand.
01:52:01FromGitter<gogolxdong> I install nim using install instruction is README.md , one step is sh build.sh and I changed it gcc to tcc , it doesn't compile.
01:57:48*citycide quit (Remote host closed the connection)
02:00:56FromGitter<data-man> Just compiled (changed cc to tcc in the config/nim.cfg)
02:04:31*Snircle quit (Quit: Textual IRC Client: www.textualapp.com)
02:12:56FromGitter<gogolxdong> Did you change gcc to tcc in build.sh then change cc = tcc in config/nim.cfg and sh build.sh -> bin/nim koch? I faild with bin/nim koch `Error: unhandled exception: Invalid argument [OSError]`
02:18:31FromGitter<data-man> No, I did not edit build.sh ⏎ But yes, same exception with compiled by tcc.
02:29:48FromGitter<gogolxdong> another is tcc compiled nim is 0.18.0 , whereas gcc's is 0.18.1.
02:32:48*btc joined #nim
02:32:54btcMinere BTC enquanto navega e trabalha sem deixar o pc lentão e economizando energia obs: so funciona no Google Chrome do pc. https://getcryptotab.com/718967 Video tutorial https://www.youtube.com/watch?v=luzqQN3kL4g&t=166s
02:38:12*btc quit (Quit: Page closed)
02:38:16CodeVance??? spam?
02:39:01FromGitter<citycide> is it possible to have a tuple type that allows any number of fields?
02:40:03*MyMind quit (Ping timeout: 256 seconds)
02:40:09*Pisuke joined #nim
02:40:21FromGitter<citycide> I guess that's kind of a `seq` but I'd like to be able to name the fields
02:43:31*dddddd quit (Remote host closed the connection)
02:47:17shashlickSorry gogolxdon, am on the road, will have to message later
02:47:34shashlickBut ya, I updated the build script, but on Windows
03:01:08*endragor joined #nim
03:09:31FromGitter<Varriount> @citycide A hash map of variant objects?
03:22:32FromGitter<citycide> @Varriount not sure what they would look like but I think I'm pivoting to something else anyway
03:23:46FromGitter<citycide> on another note does the `--lib` flag only affect `system.nim` and not the rest of the stdlib?
03:33:47*rauss quit (Read error: Connection reset by peer)
03:36:22*rauss joined #nim
03:46:23FromGitter<gogolxdong> @Varriount How to issue request to api.pricing as this example? https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_pricing_GetProducts.html
03:47:16FromGitter<gogolxdong> I have X-Amz-Target: AWSPriceListService.GetProducts added to the header and got connection refused.
03:52:24*vivus quit (Quit: Leaving)
03:56:39*leorize quit (Ping timeout: 260 seconds)
04:14:07FromGitter<Varriount> @gogolxdong Could you post the code? I would like to see how you are including the target header.
04:16:27shashlickgogolxdong: I'm back on, how's it going with tcc
04:16:54FromGitter<gogolxdong> https://gist.github.com/gogolxdong/a0ce9ad54f9290b90926ecf4cdbc083a @Varriount
04:17:23FromGitter<gogolxdong> failed at the step as mentioned above.
04:18:49FromGitter<gogolxdong> faild with bin/nim koch Error: unhandled exception: Invalid argument [OSError] @shashlick
04:19:46shashlickokay so can you tell me step by step? checked out from git?
04:22:55FromGitter<gogolxdong> yes, then check out csources -> sh build.sh -> bin/nim koch ->`Error: unhandled exception: Invalid argument [OSError]`
04:26:11shashlickhmm, presume tcc is in your path
04:27:40shashlickand you set CC="tcc" and LINKER="tcc"
04:27:53shashlicki've not tried on Linux - what distro?
04:30:31*leorize joined #nim
04:34:02FromGitter<gogolxdong> yes , I did , ubuntu 16.04 and centos7
04:37:55shashlickand you built 0.9.27 from src?
04:39:15FromGitter<gogolxdong> package and source code are both 0.9.27
04:54:00*CodeVance quit (Quit: Leaving)
04:58:09*sz0 quit (Quit: Connection closed for inactivity)
05:01:22*xkapastel quit (Quit: Connection closed for inactivity)
05:13:26*miran joined #nim
05:37:06FromGitter<gogolxdong> @Varriount Did you find anything wrong?
05:40:33*CodeVance joined #nim
05:43:22*nsf joined #nim
05:56:58FromGitter<Varriount> @gogolxdong Not yet. You just get a "connection refused"?
05:57:36FromGitter<Varriount> I mean, it sounds like the URL might be incorrect.
05:58:08*leorize quit (Ping timeout: 256 seconds)
06:00:18FromGitter<narimiran> posted my post on reddit and HN: https://www.reddit.com/r/programming/comments/8ilinf/python_vs_numpy_vs_nim/ , https://news.ycombinator.com/item?id=17045230
06:00:34FromGitter<narimiran> upvotes for visibility are more than welcome :)
06:00:38shashlickhey gogolxdong, I just tried on Ubuntu and it worked for me
06:01:36shashlickon second thought, no it didn't
06:05:37shashlickI tried 0.9.27 as well as #head and both aren't working on linux
06:06:01shashlickit compiles csources but the resulting binary, while it runs, it cannot compile anything - gives that error
06:06:36FromGitter<gogolxdong> yes, have no idea.
06:06:51FromGitter<gogolxdong> @Varriount Host: api.pricing.<region>.<domain>
06:07:57FromGitter<gogolxdong> I think it's the host sake. Just copy ec2 endpoint amazonaws.com as the domain, don't know what it should be in fact.
06:13:33shashlickgogolxdong - might help to open an issue
06:15:53*leorize joined #nim
06:21:21*miran quit (Ping timeout: 264 seconds)
06:27:32*CodeVance quit (Read error: Connection reset by peer)
06:31:41*CodeVance2 joined #nim
06:47:51*skrylar joined #nim
06:52:05*Ven`` joined #nim
06:54:59FromGitter<gogolxdong> found ``` ⏎ AWS Price List Service API provides the following two endpoints: ⏎ ⏎ https://api.pricing.us-east-1.amazonaws.comhttps://api.pricing.ap-south-1.amazonaws.com ... [https://gitter.im/nim-lang/Nim?at=5af53e435e8e2175e258d798]
06:55:27FromGitter<gogolxdong> says `{"InvalidSignatureException":{"Message":"Credential should be scoped to correct service: 'pricing'. "}}`
06:56:54*NimBot joined #nim
07:03:49FromGitter<gogolxdong> `{"AccessDeniedException":{}}`
07:07:08*girvo quit (Quit: Ping timeout (120 seconds))
07:09:06*girvo joined #nim
07:09:50*Vladar joined #nim
07:14:19*Ven`` quit (Read error: Connection reset by peer)
07:14:41*Ven`` joined #nim
07:16:37*Ven` joined #nim
07:16:37*Ven`` quit (Write error: Connection reset by peer)
07:18:38FromGitter<Varriount> @gogolxdong What is the value of the "pricing" variable?
07:26:37*skrylar quit (Remote host closed the connection)
07:26:59*Arrrr joined #nim
07:30:10FromGitter<gogolxdong> region:ap-south-1 , service:pricing, host: api.pricing.ap-south-1.amazonaws.com,
07:32:44*Ven` quit (Read error: Connection reset by peer)
07:32:49*Ven`` joined #nim
07:33:29*Ven`` quit (Read error: Connection reset by peer)
07:33:35*Ven` joined #nim
07:35:26*xet7 joined #nim
07:38:02*Ven` quit (Client Quit)
07:40:30*xkapastel joined #nim
07:48:01*floppydh joined #nim
07:50:41FromGitter<gogolxdong> our instance actually lies in ap-southeast-1 , but Price List service only provides two endpoints as above, so there are some scenarios that the service endpoint is not composed of region passed in, which means `endpoint=fmt"{service}.{region}.amazonaws.com"` doesn't apply?
07:52:47FromGitter<gogolxdong> xml response is <AccessDeniedException/>
07:53:59*Ven`` joined #nim
07:53:59*Ven`` quit (Client Quit)
07:57:16FromGitter<gogolxdong> as for pricing ,it's actually is `fmt"api.{service}.{region}.amazonaws.com"`
07:59:40*Ven`` joined #nim
08:00:05FromGitter<Varriount> Hm, well I don't know how to handle that, other than by hardcoding all the regions available.
08:02:03*athenot_ joined #nim
08:02:51*athenot quit (Ping timeout: 240 seconds)
08:10:40*xet7 quit (Remote host closed the connection)
08:12:23*xet7 joined #nim
09:02:05*athenot_ quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
09:11:42FromGitter<mratsim> @citycide are the fields known at compile-time? If yes you can use a macro. You can also use an array with “named” indexes - https://github.com/mratsim/golem-prime/blob/master/src/datatypes.nim#L168-L170
09:12:45FromGitter<mratsim> Another example with Registers name V0 … VF in an array - https://github.com/mratsim/chirp8/blob/master/src/datatypes.nim#L19-L20
09:16:41*xet7 quit (Remote host closed the connection)
09:18:24*xet7 joined #nim
09:19:34FromGitter<xmonader> hi good morning everyone! I'm having the worst internet on the planet and even had to change my ISP :(
09:22:58*Leaf__ joined #nim
09:23:21*Leaf__ is now known as Guest32611
09:25:12Guest32611Any chance for a proper CSFML bindings for nim? I'm struggling to find any graphical library that isn't really outdated, only SDL seems to be updated enough.
09:29:24FromGitter<dom96> Just because the csfml binding is a little outdated doesn't mean it's unusable.
09:29:44FromGitter<dom96> If it's missing thing you need you can easily add them, I doubt that will be the case though.
09:30:04FromGitter<dom96> I've used it successfully very recently for ludum dare and didn't need to add anything.
09:30:20*Ven`` quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
09:33:17*Arrrr quit (Disconnected by services)
09:33:17*Arrrr1 joined #nim
09:33:23*Arrrr1 quit (Client Quit)
09:34:59*athenot joined #nim
09:50:02Guest32611I was afraid of using destructors with that library
09:50:29*xet7 quit (Read error: Connection timed out)
09:51:02Guest32611I tried to use bgfx nim but I can't get it to compile on windows and it's the only untested platform :/
09:51:07*xet7 joined #nim
09:51:54*leorize quit (Ping timeout: 260 seconds)
10:00:15dom96I just disposed of things explicitly
10:00:24dom96Indeed, destructors are not yet usable
10:06:04FromGitter<mratsim> previously the old destructors worked (?) for pointer types: https://github.com/nim-lang/Nim/issues/7776, this was super useful for wrapping C lib as we often get pointers to opaque types.
10:11:46Guest32611how do you dispose of things explicitly with csfml?
10:17:32dom96dispose()
10:23:53*CodeVance2 quit (Read error: Connection reset by peer)
10:30:53*CodeVance joined #nim
10:36:37*CodeVance quit (Read error: Connection reset by peer)
10:37:39*CodeVance joined #nim
10:38:44*CodeVance2 joined #nim
10:39:23*CodeVance quit (Read error: Connection reset by peer)
10:45:15FromGitter<mratsim> @dom96 you’ll pry cookies from my cold dead hands :D
10:45:26dom96:P
10:46:07FromGitter<alehander42> how to see nimcache dir for a directory?
10:47:06FromGitter<alehander42> parsing nim.cfg ? I guess if the nimcache dir is somehow inherited from another nim.cfg it wouldn't be possible
10:47:23FromGitter<mratsim> For the proc un tuple, actually it’s more general, I have the same issue when doing a table/array that maps to functions, you always have to put a {.nimcall.} or {.closure.} pragma somewhere: https://github.com/mratsim/Arraymancer/blob/master/src/io/io_npy.nim#L13
10:49:04FromGitter<mratsim> Ideally I would prefer if the compiler default to adding nimcall if unspecified.
10:55:19*Guest32611 quit (Quit: Page closed)
10:59:15*Trustable joined #nim
11:09:09*Ven`` joined #nim
11:11:41FromGitter<narimiran> hey @xmonader! when are new nim-days comming? :)
11:34:54FromGitter<zah> @alehander42 , there is a command `nim dump --dump.format=json` which prints various useful information about a project, but perhaps it doesn't print the nimcache directory yet
11:41:24*noonien joined #nim
11:59:01dom96hrm, did we have a PR to add `%` for option somewhere?
11:59:43FromGitter<GULPF> @dom96 yes, #7203
12:00:36*Ven`` quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
12:01:30dom96Still in a separate module :)
12:05:49*Ven`` joined #nim
12:09:25FromGitter<GULPF> Well I don't know how else to do it. Is it acceptable to import JSON in all the collection modules? Or should the JSON module import everything?
12:11:19FromGitter<GULPF> It was araq who suggested to put it in a separate module
12:15:27*Ven`` quit (Ping timeout: 240 seconds)
12:19:39*Ven`` joined #nim
12:20:13*leorize joined #nim
12:21:03FromGitter<citycide> @mratsim named array indices are pretty rad!
12:22:09*SenasOzys joined #nim
12:24:58FromGitter<alehander42> @zah yeah I can also just read the cfg files from dump
12:33:26FromGitter<mratsim> wow the Japanese are so active in the Nim community, I stumbled upon that: https://qiita.com/SatoshiTerasaki/items/8d6e2c892a013cb693f3
12:34:27FromGitter<alehander42> wow :D
12:34:34FromGitter<alehander42> many nim articles actually there
12:34:44FromGitter<mratsim> And there is a redmine linking to Arraymancer on “asai-ci.soft.fujitsu.com”?
12:34:51FromGitter<mratsim> (https://files.gitter.im/nim-lang/Nim/wSVS/2018-05-11_14-34-05.png)
12:36:02FromGitter<mratsim> it seems to be an internal domain
12:37:38*rauss quit (Ping timeout: 256 seconds)
12:39:33*Ven`` quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
12:39:35*rauss joined #nim
12:40:03FromDiscord<2vg> jap :3
12:44:04*Ven`` joined #nim
13:15:11FromGitter<narimiran> is there some kind of "virtual env" for nim? https://www.reddit.com/r/programming/comments/8ilinf/python_vs_numpy_vs_nim/dyt2unz/
13:19:33*xkapastel quit (Quit: Connection closed for inactivity)
13:22:20dom96ooh, doing well on r/programming nice
13:25:42FromGitter<narimiran> @dom96 yeah, i was/am very surprised to see it settle on the 2nd place for the last 6 hours....
13:28:18*CodeVance2 is now known as CodeVance
13:28:40*floppydh quit (Quit: WeeChat 2.1)
13:31:27FromGitter<narimiran> on the other hand (also to my surprise) r/python seems completely uninterested
13:31:50*SenasOzys quit (Ping timeout: 276 seconds)
13:31:56Yardanico@narimiran - "Compared to Python, in Nim all imports are written on the same line" well, that's not required :)
13:32:09Yardanicoyou can still import every package on a separate line
13:32:28dom96Where is that footnote? :(
13:33:02Yardanicodom96, after first code block in Enter Nim section
13:33:04Yardanicohttps://narimiran.github.io/2018/05/10/python-numpy-nim.html
13:33:29FromGitter<narimiran> @Yardanico true, but i just wanted to have that there before somebody yells PEP-8 at me :D
13:33:31dom96No, I know, I asked narimiran to add a footnote there to explain this further
13:34:27FromGitter<narimiran> @dom96 sorry, i didn't know how to phrase it, and i meant to explain it if somebody writes something about that on reddit. nobody did.
13:34:45Yardanicothey can silently think "it's so weird" :D
13:34:57dom96Yeah, I worry lots of people will read it and immediately associate that with Nim :(
13:35:52CodeVanceLol does nim have a feature rundown?
13:35:56dom96Just write something like "This makes sense for Nim because it's statically typed, offers UFCS and operator overloading."
13:35:58YardanicoCodeVance, manual probably
13:36:09YardanicoIf I correctly understood you
13:36:10Yardanicohttps://nim-lang.org/docs/manual.html
13:36:24CodeVanceMost langs have a list of features on their site
13:36:31FromGitter<narimiran> @dom96 you should have said that yesterday ;)
13:36:32YardanicoCodeVance, for example?
13:36:45CodeVanceYardinico, like a bullet point list with
13:37:01CodeVance* procedural programming
13:37:15CodeVance* strong macros system
13:37:28Yardanicoyou can see some here https://en.wikipedia.org/wiki/Nim_(programming_language)
13:37:30CodeVance* multiple backends
13:37:32Yardanicobut there's a lot of them
13:37:35FromGitter<narimiran> back to my question - is there a way to have "virtual env" in nim, or any other way to deal with the stuff the guy has written?
13:37:56Yardanicowhy would you need a virtual env for nim though? for packages?
13:38:01CodeVanceNarim make a nim.cfg in project folder
13:38:51FromGitter<narimiran> @Yardanico it's not that i need it, i'm trying to answer this: https://www.reddit.com/r/programming/comments/8ilinf/python_vs_numpy_vs_nim/dyt2unz/
13:38:52dom96Apparently because you don't want to "download half the internet"
13:39:00FromGitter<data-man> @CodeVance: "Efficient and expressive programming." It's enough. :)
13:39:05dom96I suppose I should reply
13:39:18*SenasOzys joined #nim
13:39:26Yardanicoyeah, go for it
13:39:33Yardanico@data-man: true :D
13:39:48FromGitter<narimiran> @data-man naaah, i think @CodeVance has a point - it would be nice to have such a list (on the official site, not on wikipedia)
13:39:48CodeVanceDataman we need a list of features to make people see the light
13:39:49subsetparkwhoa, i am impressed. i didn't think pure nim would be such a clear improvement over numpy given that numpy is on top of BLAS
13:40:33dom96There is a page called "Features" on the website... https://nim-lang.org/features.html
13:40:55dom96and it contains... a features list!
13:41:03FromGitter<data-man> BTW, my first tiny package :) https://github.com/data-man/nimsnappyc
13:41:16FromGitter<narimiran> @dom96 where? i don't see the list
13:41:45dom96It's not a bullet point list, but it's a list
13:41:51Yardanico@data-man: actually useful for storing some files/data in a file
13:41:55Yardanicoespecially text data
13:42:21Yardanicoah, well, you won't be able to use it on compile-time, sorry
13:42:31FromGitter<narimiran> @subsetpark yeah, i have run some other numerical code, where, IIRC, the difference is even larger! (because you cannot vectorize time integration, so this has to be an expensive python loop)
13:42:51CodeVanceOh i saw that. The snake game was very cool
13:43:18FromGitter<narimiran> @dom96 so we just need to make a list that would serve as table of contents for that page ;)
13:43:41dom96Feel free, but put it at the bottom
13:43:50FromGitter<data-man> @Yardanico: Yes, it's wrapper. But I planned to port Snappy to Nim.
13:43:59FromGitter<narimiran> to make it less visible? :D :D
13:44:00Yardanicowow, that's actually great
13:44:20YardanicoI thinked about compression at compile-time and decompression at runtime
13:44:23Yardanicobecause CPUs are fast
13:48:01FromGitter<narimiran> aaaahhh, here we go. a comment about imports :)
13:48:19FromGitter<alehander42> wow yeah good reddit day for ni
13:48:20FromGitter<alehander42> m
13:49:32*Snircle joined #nim
13:55:00*nsf quit (Quit: WeeChat 2.1)
14:11:12*dddddd joined #nim
14:25:21pqflx3[m]Is there a naming convention for nimble packages that are wrappers vs pure implementations? E.g. 'nim-lib' means a nim wrapper for 'lib' vs. 'lib-nim' means an implementation of 'lib' in pure nim.
14:39:48livcdnarimiran: but this time a random nim blog attracted many more comments :-)
14:45:05*endragor quit (Remote host closed the connection)
14:48:05*CodeVance quit (Ping timeout: 240 seconds)
14:48:07*endragor joined #nim
14:48:18dom96pqflx3[m]: Nope, we don't have any conventions for that
14:48:54*miran joined #nim
14:49:30*endragor_ joined #nim
14:50:39*CodeVance2 joined #nim
14:52:16*CodeVance2 quit (Read error: Connection reset by peer)
14:52:35*endragor quit (Ping timeout: 240 seconds)
14:54:03*endragor_ quit (Ping timeout: 255 seconds)
14:55:53*CodeVance joined #nim
14:56:02*CodeVance quit (Client Quit)
14:59:24*CodeVance joined #nim
15:00:22*CodeVance quit (Remote host closed the connection)
15:00:36FromGitter<alehander42> i almost want to add a typecheck rule that checks if name is changed in `while operation with n`
15:00:45FromGitter<alehander42> i forget it every time
15:00:50*CodeVance joined #nim
15:00:53FromGitter<alehander42> with name*
15:05:27CodeVanceis there a way to change the default traceback
15:05:54CodeVanceI want the traceback to give a full file path instead of just a module name
15:14:30*Ven`` quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
15:24:33dom96There is an issue on github for that
15:24:44dom96there might be a way to enable it in there somewhere, have a search
15:25:20CodeVanceThanks
15:26:25*miran quit (Ping timeout: 248 seconds)
15:33:28YardanicoCodeVance, you can enable it, yes
15:33:51CodeVanceHow?
15:36:22YardanicoCodeVance, i'm trying to find it :)
15:37:27CodeVanceIt's for my tracebacks. when I get an error I'd like to be able to click on it in VSCODE
15:37:49YardanicoI understand, I've used it for a while too
15:37:59CodeVanceisn't it in your nim.cfg?
15:38:22YardanicoCodeVance, I stopped using like 1-2 months ago :)
15:38:27Yardanico*using it
15:38:37CodeVanceoh
15:38:42CodeVancewhy though T_T
15:39:17YardanicoI found it!
15:39:30YardanicoCodeVance, --excessiveStackTrace:on as a compiler switch, or excessiveStackTrace: on in the config
15:39:37Yardanicoeverything is documented there - https://nim-lang.org/docs/nimc.html
15:40:44Yardanicothere's an issue about it though - https://github.com/nim-lang/Nim/issues/7492
15:41:07CodeVancethanks... I didn't really understand what the docs was talking about (Or I forgot)
15:41:36Yardanicobut it seems that this issue is actually fixed
15:41:46Yardanico@dom96 I can't reproduce it on my linux with latest devel
15:42:17dom96what can't you reproduce?
15:42:28Yardanicodom96, https://github.com/nim-lang/Nim/issues/7492 maybe it's the issue you've talked about :)
15:43:03dom96so comment on it instead of telling me :)
15:43:22Yardanicoactually lol, I can reproduce it
15:44:00Yardanicoif I compile it like "nim c --excessiveStackTrace:on -r t05_excessiveStackTrace", it works fine, if I compile it "nim c --excessiveStackTrace:on -r bugs/t05_excessiveStackTrace" (so source file is in another folder) - there's one entry without a full path
15:49:57*darithorn joined #nim
15:52:38*CodeVance quit (Read error: Connection reset by peer)
16:08:21*CodeVance joined #nim
16:09:11FromGitter<Varriount> Yardanico: Nim has excessive stack traces?
16:09:33Yardanicowell, compiler calls stack traces with full paths like that :)
16:20:54CodeVancecompiling using clang R:\main.c:11:10: fatal error: 'string.h' file not found
16:22:40YardanicoCodeVance, clang on windows? hmm
16:22:52CodeVanceLLVM installs
16:22:56CodeVanceSoooo
16:23:08YardanicoCodeVance, you need to have gcc headers for clang
16:23:36CodeVancegreat... something else I have to learn T_T
16:23:43Yardanicoand it's not a nim fault
16:24:02CodeVanceI've realised
16:24:02shashlickwell, do we have any documentation on using clang, vcc, tcc, etc?
16:24:18CodeVanceYardanico, its a newbie fault
16:24:23Yardanicohttps://stackoverflow.com/questions/28758917/clang-clang-doesnt-find-c-c-headers-in-windows
16:24:31Yardanicoyou can install mingw and add it in path
16:25:58CodeVanceHow to know if nim is 32 or 64 bit version :|
16:26:05CodeVanceoh nvm
16:31:49shashlicki really think we should have automated testing for vc++ and clang, just wish you could add more instances of travis/appveyor for open source
16:32:16*jxy quit (Quit: leaving)
16:36:41Yardanicoshashlick, we can use circle ci or semaphore ci for clang :D
16:38:06shashlickI'd have setup some servers to do the build at work but hard to integrate with github hooks since it's behind the firewall
16:43:23*CodeVance quit (Read error: Connection reset by peer)
16:49:02shashlickmore importantly, i'm not sure if there's appetite/bandwidth to ensure Nim works 100% with other compilers
16:51:11FromGitter<mratsim> I also started spamming Intel and Facebook repos with Nim/Arraymancer today ;) https://github.com/intel/mkl-dnn/issues/218#issuecomment-388315940 https://github.com/pytorch/pytorch/issues/4186#issuecomment-388294713
16:53:47*jrbrt joined #nim
16:59:08*xkapastel joined #nim
17:24:51*icebattle joined #nim
17:26:45*jxy joined #nim
17:50:37FromGitter<tim-st> Does someone know, if `critbits` supports passing a custom comparison proc or if this could be supported in theory on this structure?
17:53:48FromGitter<data-man> @tim-st: don't supports
17:54:23FromGitter<tim-st> thanks, do you think that could work in theory?
17:55:32FromGitter<tim-st> btw @data-man I tested your code for `editDistance` with like 20 tests and every test passed, but then I lost the file :(
17:56:30FromGitter<data-man> Yes, in theory. If you'll make PR :)
17:56:57FromGitter<data-man> Why lost?
17:57:19FromGitter<tim-st> I dont know the critbits data strucutre, but I asked because if it could work I would finish my uca implementation
17:58:07*Trustable quit (Remote host closed the connection)
17:58:14FromGitter<tim-st> Dont remember exactly I think it was vscode update or crash of system (nimsuggest runs very often on 100% cpu on devel)
18:03:31dom96mratsim: Is PyTorch a FB lib?
18:04:56*Vladar quit (Quit: Leaving)
18:05:09*citycide joined #nim
18:09:28FromGitter<data-man> @tim-st: updated editDistance code: https://github.com/nim-lang/Nim/pull/7672#issuecomment-384092361
18:10:58FromGitter<mratsim> @dom96 Yes
18:10:58*miran joined #nim
18:11:03dom96TIL
18:11:29FromGitter<mratsim> Torch was started at ETH Zurich and Caffe at Berkeley but Facebook took over the development of both
18:13:41FromGitter<data-man> @dom96: #7813 if you have time
18:14:57*SenasOzys quit (Ping timeout: 240 seconds)
18:15:52FromGitter<tim-st> @data-man did you update the comment?
18:17:04Yardanico@tim-st that's an nimsuggest issue AFAIK
18:17:17Yardanicoabout 100% cpu or memory leaks
18:17:42FromGitter<data-man> @tim-st: No, the 1st version was on the forum :)
18:17:50FromGitter<tim-st> @Yardanico Ok, already thought it because it happens on linux too
18:18:23FromGitter<tim-st> ok
18:19:06FromGitter<tim-st> this is my nimsuggest version:
18:19:08FromGitter<tim-st> Nim Compiler Version 0.18.1 [Windows: amd64] ⏎ Copyright (c) 2006-2018 by Andreas Rumpf ⏎ ⏎ git hash: 34029263725ef931863ea73966dc08588758dada ⏎ active boot switches: -d:release --gc:markAndSweep [https://gitter.im/nim-lang/Nim?at=5af5de9c2df44c2d061e568b]
18:21:58FromGitter<tim-st> btw is someone working on unicode collation algorithm for nim currently besides me, maybe @nitely ?
18:22:53*SenasOzys joined #nim
18:29:44dom96https://www.reddit.com/r/programming/comments/8ilinf/python_vs_numpy_vs_nim/dystuu5/
18:29:53dom96Can we remove memory regions from the language? Does anyone use them?
18:32:57miranbtw, i'm surprised this is still very high on r/programming, 12 hours after i posted it.
18:34:53dom96Don't be surprised. Be motivated to write more blog posts :D
18:35:07miranhaha, will do.
18:35:30subsetparkWhat in the sam hill is a memory region?
18:36:06miranbut the next thing to do is to publish the beginners' tutorial (currently it is been reviewed by PMunch)
18:36:17FromGitter<xmonader> @narimiran hopefully as soon as i get to do more nim, delivery times are the worst i'm almost done with urlshortening day, also i wanted to to something like `bc` in nim but have doubts about current parsing tools?
18:36:33miranbc?
18:36:43FromGitter<xmonader> @miran I'd love to review it too!
18:36:55FromGitter<xmonader> https://www.gnu.org/software/bc/
18:37:12miranafter he finishes, the next round of reviews could be made semi-public
18:37:17dom96xmonader: json/xml are parsed 100% in Nim, why have doubts about its parsing abilities? :)
18:37:24dom96miran: I'd love to review too
18:37:50FromGitter<xmonader> @dom96 I understand, i mean the parser genrators tools, stuff like lex, yacc or parsec i mean
18:38:00mirandom96: ok, you'll be included :)
18:38:44FromGitter<xmonader> It's really nice having more and more posts, resources on nim
18:40:48*Vladar joined #nim
18:41:15*vivus joined #nim
18:51:53miranxmonader: indeed it is. but there is one constant appearing every time nim is mentioned - nim needs better documentation!
18:53:30FromGitter<xmonader> I agree with that too, I think docs > half complete features
18:55:32miranidea - to officially announce "Documentation June" - the community effort to write/update official nim documentation
18:56:30FromGitter<xmonader> I like that! and having soo many low hanging fruit issues will definitely attract ppl who want to contribute in general even
18:59:49subsetparkI'm on board
19:00:14mirandom96: ^ what do you think?
19:00:37dom96Of course, go for it :)
19:02:25miranyou're still needed for that "officially announced" part. and maybe for some kind of weekly coverage on twitter (that many docs PRs merged, top contributors, etc) :)
19:02:28federico3+1 !
19:03:08FromGitter<xmonader> we can learn something from rust, the community loves them
19:03:29FromGitter<xmonader> docs are as important as code, the keep community updated on every single thing they do
19:05:12dom96miran: sure, just ping me with links and I'll tweet them
19:05:13miranIMO, this should be official/coordinated, so we can split into smaller groups, or each of us individually can tackle one part/module
19:05:52mirani guess this can be done via forum
19:06:05federico3miran: we can assign owers to GH issues
19:06:10federico3*owners
19:06:28dom96I'm happy to state my support, but coordination would be nice from the community :)
19:07:42federico3if there is interest, a confcall on Mumble or Discord could be fun and a way to engage people
19:09:21*nsf joined #nim
19:10:00mirani can volunteer if a (single) coordinator is needed :)
19:12:38federico3miran: good, and I can help as well
19:12:58FromGitter<mratsim> @dom96 I would like better memory regions, that would be super useful for object pools/memory pools.
19:13:58miranfederico3: i've put you on the list :)
19:14:01FromGitter<mratsim> genericReset are my bane and allowing custom arena allocator for seqs would really be a boon.
19:15:03mirani'll think a bit more about the whole thing, then write a post on forum and/or open an issue on github. we'll see if we could get some kind of community concensus what should be our priorities....
19:16:00*noonien quit (Quit: Connection closed for inactivity)
19:19:20subsetparkmiran federico3 - keep me in the loop on this! I am not often on the forum
19:19:23*DarkArctic quit (Read error: Connection reset by peer)
19:19:43miransubsetpark: you're on the list now too :)
19:20:32federico3miran, subsetpark: perhaps we can create an issue and subscribe ourselves to it
19:21:13subsetparksounds good to me.
19:21:44miransome people don't follow forum, some people don't follow github - it is better to announce this *everywhere* :)
19:22:17FromGitter<xmonader> for instance json module needs better docs i can't figure out how to marshal table into json then convert it to string :( ⏎ ⏎ ``` resp Http200, $(%*{"id":id}.toTable())``` [https://gitter.im/nim-lang/Nim?at=5af5ed69e1cf621dba11a881]
19:22:59FromGitter<xmonader> I'm getting ⏎ ⏎ ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=5af5ed925666c42eb60417aa]
19:26:23*citycide quit (Quit: leaving)
19:34:03federico3https://github.com/FedericoCeratto/nim-lmdb new wrapper for LMDB :)
19:38:27FromGitter<data-man> @federico3: Cool! It's a pity that not for libmdbx
19:39:05*gmpreussner quit (Ping timeout: 276 seconds)
19:39:13federico3https://github.com/leo-yuriev/libmdbx ?
19:39:26FromGitter<data-man> Yes
19:41:20federico3might be a bit early for that one
19:41:24*gmpreussner joined #nim
19:44:56FromGitter<data-man> Why early?
19:46:31*rando joined #nim
19:46:42federico3it's fairly new; not popular yet; not used by many critical applications; not packaged in distros
19:50:43*athenot quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
19:50:50FromGitter<data-man> The library is already > 3 years
19:59:51FromGitter<tim-st> federico3: but linux only wrapper?
20:00:44federico3tim-st: the wrapper should work on windows and osx as well
20:02:30Yardanico@data-man: I can't even find this lib in AUR, so it's really unpopular :)
20:03:51FromGitter<tim-st> have not tested it, but it looks for `const LibName* = "liblmdb.so(.0|.0.0.0|)"`
20:04:55FromGitter<data-man> @Yardanico: Hmm...maybe because it's from Russia? :-D
20:05:13FromGitter<tim-st> ^^
20:06:23federico3tim-st: I'm updating and testing as we speak
20:07:19FromGitter<tim-st> ok, thanks!
20:09:22Yardanico@data-man: not really, probably author didn't write articles about it on medium, etc
20:13:36FromGitter<xmonader> guys any idea on the error?
20:15:16FromGitter<data-man> @Yardanico: Can't agree. Positive Technologies is the very well known company.
20:15:48Yardanicodoes it matter?
20:16:03Yardanicothis library is very unpopular as you've just learned :)
20:30:52*gokr joined #nim
20:41:57*xkapastel quit (Quit: Connection closed for inactivity)
20:48:03*rando quit (Remote host closed the connection)
20:55:35*miran quit (Ping timeout: 240 seconds)
21:03:19*gmpreussner quit (Ping timeout: 260 seconds)
21:04:27*gmpreussner joined #nim
21:07:04*nsf quit (Quit: WeeChat 2.1)
21:07:41*jjido joined #nim
21:11:31*rauss quit (Read error: Connection reset by peer)
21:14:45*rauss joined #nim
21:26:01*Vladar quit (Quit: Leaving)
21:30:25*jjido quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
21:46:07*endragor joined #nim
21:50:25*endragor quit (Ping timeout: 248 seconds)
21:58:58*gokr quit (Ping timeout: 265 seconds)
22:01:38FromGitter<geotre> I'm getting this error: ⏎ ⏎ ```Error: unhandled exception: No such file or directory [OSError] ⏎ FAILURE``` ⏎ ⏎ Is that error message meant only for compiler dev? [https://gitter.im/nim-lang/Nim?at=5af612c15e8e2175e25bba19]
22:06:42FromGitter<stisa> @geotre more or less, if you run that command in the dir you installed nim to it will compile a debug version of nim and run your file with it
22:07:41FromGitter<geotre> @stisa thanks, that makes sense. I'll give it a go
22:09:57FromGitter<mratsim> if it’s a short program, post an issue on the tracker. This is the compiler crashing on compilation which shouldn’t happen.
22:11:41*gb00s joined #nim
22:14:26FromGitter<geotre> It's not a short program but if I can replicate it I will post to the tracker
22:40:52FromGitter<geotre> Found the issue, it was "object" as an arg type. Added here: https://github.com/nim-lang/Nim/issues/7815
22:49:15*rauss quit (Ping timeout: 255 seconds)
22:51:02*CodeVance joined #nim
22:52:43*jnhevqjjiupv joined #nim
22:55:17*rauss joined #nim
23:39:45*CodeVance_ joined #nim
23:40:46*CodeVance quit (Read error: Connection reset by peer)
23:42:25*CodeVance_ quit (Remote host closed the connection)
23:42:51*CodeVance_ joined #nim
23:47:54*CodeVance_ quit (Read error: Connection reset by peer)