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:41 | FromGitter | <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:56 | FromGitter | <gogolxdong> @shashlick How do you install nim with tcc? |
01:41:26 | FromGitter | <data-man> @gogolxdong: Something like this: ⏎ ⏎ ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=5af4f4c5a2d95136332ed74b] |
01:43:14 | FromGitter | <data-man> For dev version of tcc |
01:44:18 | FromGitter | <gogolxdong> @data-man yes, how to install nim using tcc? I have tcc 0.9.27 installed. |
01:46:09 | FromGitter | <gogolxdong> both windows10 and its subsystem |
01:46:55 | FromGitter | <data-man> @gogolxdong: how to install nim using gcc? Or clang? :) I can't understand. |
01:52:01 | FromGitter | <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:56 | FromGitter | <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:56 | FromGitter | <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:31 | FromGitter | <data-man> No, I did not edit build.sh ⏎ But yes, same exception with compiled by tcc. |
02:29:48 | FromGitter | <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:54 | btc | Minere 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:16 | CodeVance | ??? spam? |
02:39:01 | FromGitter | <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:21 | FromGitter | <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:17 | shashlick | Sorry gogolxdon, am on the road, will have to message later |
02:47:34 | shashlick | But ya, I updated the build script, but on Windows |
03:01:08 | * | endragor joined #nim |
03:09:31 | FromGitter | <Varriount> @citycide A hash map of variant objects? |
03:22:32 | FromGitter | <citycide> @Varriount not sure what they would look like but I think I'm pivoting to something else anyway |
03:23:46 | FromGitter | <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:23 | FromGitter | <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:16 | FromGitter | <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:07 | FromGitter | <Varriount> @gogolxdong Could you post the code? I would like to see how you are including the target header. |
04:16:27 | shashlick | gogolxdong: I'm back on, how's it going with tcc |
04:16:54 | FromGitter | <gogolxdong> https://gist.github.com/gogolxdong/a0ce9ad54f9290b90926ecf4cdbc083a @Varriount |
04:17:23 | FromGitter | <gogolxdong> failed at the step as mentioned above. |
04:18:49 | FromGitter | <gogolxdong> faild with bin/nim koch Error: unhandled exception: Invalid argument [OSError] @shashlick |
04:19:46 | shashlick | okay so can you tell me step by step? checked out from git? |
04:22:55 | FromGitter | <gogolxdong> yes, then check out csources -> sh build.sh -> bin/nim koch ->`Error: unhandled exception: Invalid argument [OSError]` |
04:26:11 | shashlick | hmm, presume tcc is in your path |
04:27:40 | shashlick | and you set CC="tcc" and LINKER="tcc" |
04:27:53 | shashlick | i've not tried on Linux - what distro? |
04:30:31 | * | leorize joined #nim |
04:34:02 | FromGitter | <gogolxdong> yes , I did , ubuntu 16.04 and centos7 |
04:37:55 | shashlick | and you built 0.9.27 from src? |
04:39:15 | FromGitter | <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:06 | FromGitter | <gogolxdong> @Varriount Did you find anything wrong? |
05:40:33 | * | CodeVance joined #nim |
05:43:22 | * | nsf joined #nim |
05:56:58 | FromGitter | <Varriount> @gogolxdong Not yet. You just get a "connection refused"? |
05:57:36 | FromGitter | <Varriount> I mean, it sounds like the URL might be incorrect. |
05:58:08 | * | leorize quit (Ping timeout: 256 seconds) |
06:00:18 | FromGitter | <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:34 | FromGitter | <narimiran> upvotes for visibility are more than welcome :) |
06:00:38 | shashlick | hey gogolxdong, I just tried on Ubuntu and it worked for me |
06:01:36 | shashlick | on second thought, no it didn't |
06:05:37 | shashlick | I tried 0.9.27 as well as #head and both aren't working on linux |
06:06:01 | shashlick | it compiles csources but the resulting binary, while it runs, it cannot compile anything - gives that error |
06:06:36 | FromGitter | <gogolxdong> yes, have no idea. |
06:06:51 | FromGitter | <gogolxdong> @Varriount Host: api.pricing.<region>.<domain> |
06:07:57 | FromGitter | <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:33 | shashlick | gogolxdong - 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:59 | FromGitter | <gogolxdong> found ``` ⏎ AWS Price List Service API provides the following two endpoints: ⏎ ⏎ https://api.pricing.us-east-1.amazonaws.com ⏎ https://api.pricing.ap-south-1.amazonaws.com ... [https://gitter.im/nim-lang/Nim?at=5af53e435e8e2175e258d798] |
06:55:27 | FromGitter | <gogolxdong> says `{"InvalidSignatureException":{"Message":"Credential should be scoped to correct service: 'pricing'. "}}` |
06:56:54 | * | NimBot joined #nim |
07:03:49 | FromGitter | <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:38 | FromGitter | <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:10 | FromGitter | <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:41 | FromGitter | <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:47 | FromGitter | <gogolxdong> xml response is <AccessDeniedException/> |
07:53:59 | * | Ven`` joined #nim |
07:53:59 | * | Ven`` quit (Client Quit) |
07:57:16 | FromGitter | <gogolxdong> as for pricing ,it's actually is `fmt"api.{service}.{region}.amazonaws.com"` |
07:59:40 | * | Ven`` joined #nim |
08:00:05 | FromGitter | <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:42 | FromGitter | <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:45 | FromGitter | <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:34 | FromGitter | <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:12 | Guest32611 | Any 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:24 | FromGitter | <dom96> Just because the csfml binding is a little outdated doesn't mean it's unusable. |
09:29:44 | FromGitter | <dom96> If it's missing thing you need you can easily add them, I doubt that will be the case though. |
09:30:04 | FromGitter | <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:02 | Guest32611 | I was afraid of using destructors with that library |
09:50:29 | * | xet7 quit (Read error: Connection timed out) |
09:51:02 | Guest32611 | I 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:15 | dom96 | I just disposed of things explicitly |
10:00:24 | dom96 | Indeed, destructors are not yet usable |
10:06:04 | FromGitter | <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:46 | Guest32611 | how do you dispose of things explicitly with csfml? |
10:17:32 | dom96 | dispose() |
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:15 | FromGitter | <mratsim> @dom96 you’ll pry cookies from my cold dead hands :D |
10:45:26 | dom96 | :P |
10:46:07 | FromGitter | <alehander42> how to see nimcache dir for a directory? |
10:47:06 | FromGitter | <alehander42> parsing nim.cfg ? I guess if the nimcache dir is somehow inherited from another nim.cfg it wouldn't be possible |
10:47:23 | FromGitter | <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:04 | FromGitter | <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:41 | FromGitter | <narimiran> hey @xmonader! when are new nim-days comming? :) |
11:34:54 | FromGitter | <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:01 | dom96 | hrm, did we have a PR to add `%` for option somewhere? |
11:59:43 | FromGitter | <GULPF> @dom96 yes, #7203 |
12:00:36 | * | Ven`` quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
12:01:30 | dom96 | Still in a separate module :) |
12:05:49 | * | Ven`` joined #nim |
12:09:25 | FromGitter | <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:19 | FromGitter | <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:03 | FromGitter | <citycide> @mratsim named array indices are pretty rad! |
12:22:09 | * | SenasOzys joined #nim |
12:24:58 | FromGitter | <alehander42> @zah yeah I can also just read the cfg files from dump |
12:33:26 | FromGitter | <mratsim> wow the Japanese are so active in the Nim community, I stumbled upon that: https://qiita.com/SatoshiTerasaki/items/8d6e2c892a013cb693f3 |
12:34:27 | FromGitter | <alehander42> wow :D |
12:34:34 | FromGitter | <alehander42> many nim articles actually there |
12:34:44 | FromGitter | <mratsim> And there is a redmine linking to Arraymancer on “asai-ci.soft.fujitsu.com”? |
12:34:51 | FromGitter | <mratsim> (https://files.gitter.im/nim-lang/Nim/wSVS/2018-05-11_14-34-05.png) |
12:36:02 | FromGitter | <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:03 | FromDiscord | <2vg> jap :3 |
12:44:04 | * | Ven`` joined #nim |
13:15:11 | FromGitter | <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:20 | dom96 | ooh, doing well on r/programming nice |
13:25:42 | FromGitter | <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:27 | FromGitter | <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:56 | Yardanico | @narimiran - "Compared to Python, in Nim all imports are written on the same line" well, that's not required :) |
13:32:09 | Yardanico | you can still import every package on a separate line |
13:32:28 | dom96 | Where is that footnote? :( |
13:33:02 | Yardanico | dom96, after first code block in Enter Nim section |
13:33:04 | Yardanico | https://narimiran.github.io/2018/05/10/python-numpy-nim.html |
13:33:29 | FromGitter | <narimiran> @Yardanico true, but i just wanted to have that there before somebody yells PEP-8 at me :D |
13:33:31 | dom96 | No, I know, I asked narimiran to add a footnote there to explain this further |
13:34:27 | FromGitter | <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:45 | Yardanico | they can silently think "it's so weird" :D |
13:34:57 | dom96 | Yeah, I worry lots of people will read it and immediately associate that with Nim :( |
13:35:52 | CodeVance | Lol does nim have a feature rundown? |
13:35:56 | dom96 | Just write something like "This makes sense for Nim because it's statically typed, offers UFCS and operator overloading." |
13:35:58 | Yardanico | CodeVance, manual probably |
13:36:09 | Yardanico | If I correctly understood you |
13:36:10 | Yardanico | https://nim-lang.org/docs/manual.html |
13:36:24 | CodeVance | Most langs have a list of features on their site |
13:36:31 | FromGitter | <narimiran> @dom96 you should have said that yesterday ;) |
13:36:32 | Yardanico | CodeVance, for example? |
13:36:45 | CodeVance | Yardinico, like a bullet point list with |
13:37:01 | CodeVance | * procedural programming |
13:37:15 | CodeVance | * strong macros system |
13:37:28 | Yardanico | you can see some here https://en.wikipedia.org/wiki/Nim_(programming_language) |
13:37:30 | CodeVance | * multiple backends |
13:37:32 | Yardanico | but there's a lot of them |
13:37:35 | FromGitter | <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:56 | Yardanico | why would you need a virtual env for nim though? for packages? |
13:38:01 | CodeVance | Narim make a nim.cfg in project folder |
13:38:51 | FromGitter | <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:52 | dom96 | Apparently because you don't want to "download half the internet" |
13:39:00 | FromGitter | <data-man> @CodeVance: "Efficient and expressive programming." It's enough. :) |
13:39:05 | dom96 | I suppose I should reply |
13:39:18 | * | SenasOzys joined #nim |
13:39:26 | Yardanico | yeah, go for it |
13:39:33 | Yardanico | @data-man: true :D |
13:39:48 | FromGitter | <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:48 | CodeVance | Dataman we need a list of features to make people see the light |
13:39:49 | subsetpark | whoa, 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:33 | dom96 | There is a page called "Features" on the website... https://nim-lang.org/features.html |
13:40:55 | dom96 | and it contains... a features list! |
13:41:03 | FromGitter | <data-man> BTW, my first tiny package :) https://github.com/data-man/nimsnappyc |
13:41:16 | FromGitter | <narimiran> @dom96 where? i don't see the list |
13:41:45 | dom96 | It's not a bullet point list, but it's a list |
13:41:51 | Yardanico | @data-man: actually useful for storing some files/data in a file |
13:41:55 | Yardanico | especially text data |
13:42:21 | Yardanico | ah, well, you won't be able to use it on compile-time, sorry |
13:42:31 | FromGitter | <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:51 | CodeVance | Oh i saw that. The snake game was very cool |
13:43:18 | FromGitter | <narimiran> @dom96 so we just need to make a list that would serve as table of contents for that page ;) |
13:43:41 | dom96 | Feel free, but put it at the bottom |
13:43:50 | FromGitter | <data-man> @Yardanico: Yes, it's wrapper. But I planned to port Snappy to Nim. |
13:43:59 | FromGitter | <narimiran> to make it less visible? :D :D |
13:44:00 | Yardanico | wow, that's actually great |
13:44:20 | Yardanico | I thinked about compression at compile-time and decompression at runtime |
13:44:23 | Yardanico | because CPUs are fast |
13:48:01 | FromGitter | <narimiran> aaaahhh, here we go. a comment about imports :) |
13:48:19 | FromGitter | <alehander42> wow yeah good reddit day for ni |
13:48:20 | FromGitter | <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:21 | pqflx3[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:48 | livcd | narimiran: 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:18 | dom96 | pqflx3[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:36 | FromGitter | <alehander42> i almost want to add a typecheck rule that checks if name is changed in `while operation with n` |
15:00:45 | FromGitter | <alehander42> i forget it every time |
15:00:50 | * | CodeVance joined #nim |
15:00:53 | FromGitter | <alehander42> with name* |
15:05:27 | CodeVance | is there a way to change the default traceback |
15:05:54 | CodeVance | I 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:33 | dom96 | There is an issue on github for that |
15:24:44 | dom96 | there might be a way to enable it in there somewhere, have a search |
15:25:20 | CodeVance | Thanks |
15:26:25 | * | miran quit (Ping timeout: 248 seconds) |
15:33:28 | Yardanico | CodeVance, you can enable it, yes |
15:33:51 | CodeVance | How? |
15:36:22 | Yardanico | CodeVance, i'm trying to find it :) |
15:37:27 | CodeVance | It's for my tracebacks. when I get an error I'd like to be able to click on it in VSCODE |
15:37:49 | Yardanico | I understand, I've used it for a while too |
15:37:59 | CodeVance | isn't it in your nim.cfg? |
15:38:22 | Yardanico | CodeVance, I stopped using like 1-2 months ago :) |
15:38:27 | Yardanico | *using it |
15:38:37 | CodeVance | oh |
15:38:42 | CodeVance | why though T_T |
15:39:17 | Yardanico | I found it! |
15:39:30 | Yardanico | CodeVance, --excessiveStackTrace:on as a compiler switch, or excessiveStackTrace: on in the config |
15:39:37 | Yardanico | everything is documented there - https://nim-lang.org/docs/nimc.html |
15:40:44 | Yardanico | there's an issue about it though - https://github.com/nim-lang/Nim/issues/7492 |
15:41:07 | CodeVance | thanks... I didn't really understand what the docs was talking about (Or I forgot) |
15:41:36 | Yardanico | but it seems that this issue is actually fixed |
15:41:46 | Yardanico | @dom96 I can't reproduce it on my linux with latest devel |
15:42:17 | dom96 | what can't you reproduce? |
15:42:28 | Yardanico | dom96, https://github.com/nim-lang/Nim/issues/7492 maybe it's the issue you've talked about :) |
15:43:03 | dom96 | so comment on it instead of telling me :) |
15:43:22 | Yardanico | actually lol, I can reproduce it |
15:44:00 | Yardanico | if 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:11 | FromGitter | <Varriount> Yardanico: Nim has excessive stack traces? |
16:09:33 | Yardanico | well, compiler calls stack traces with full paths like that :) |
16:20:54 | CodeVance | compiling using clang R:\main.c:11:10: fatal error: 'string.h' file not found |
16:22:40 | Yardanico | CodeVance, clang on windows? hmm |
16:22:52 | CodeVance | LLVM installs |
16:22:56 | CodeVance | Soooo |
16:23:08 | Yardanico | CodeVance, you need to have gcc headers for clang |
16:23:36 | CodeVance | great... something else I have to learn T_T |
16:23:43 | Yardanico | and it's not a nim fault |
16:24:02 | CodeVance | I've realised |
16:24:02 | shashlick | well, do we have any documentation on using clang, vcc, tcc, etc? |
16:24:18 | CodeVance | Yardanico, its a newbie fault |
16:24:23 | Yardanico | https://stackoverflow.com/questions/28758917/clang-clang-doesnt-find-c-c-headers-in-windows |
16:24:31 | Yardanico | you can install mingw and add it in path |
16:25:58 | CodeVance | How to know if nim is 32 or 64 bit version :| |
16:26:05 | CodeVance | oh nvm |
16:31:49 | shashlick | i 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:41 | Yardanico | shashlick, we can use circle ci or semaphore ci for clang :D |
16:38:06 | shashlick | I'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:02 | shashlick | more importantly, i'm not sure if there's appetite/bandwidth to ensure Nim works 100% with other compilers |
16:51:11 | FromGitter | <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:37 | FromGitter | <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:48 | FromGitter | <data-man> @tim-st: don't supports |
17:54:23 | FromGitter | <tim-st> thanks, do you think that could work in theory? |
17:55:32 | FromGitter | <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:30 | FromGitter | <data-man> Yes, in theory. If you'll make PR :) |
17:56:57 | FromGitter | <data-man> Why lost? |
17:57:19 | FromGitter | <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:14 | FromGitter | <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:31 | dom96 | mratsim: Is PyTorch a FB lib? |
18:04:56 | * | Vladar quit (Quit: Leaving) |
18:05:09 | * | citycide joined #nim |
18:09:28 | FromGitter | <data-man> @tim-st: updated editDistance code: https://github.com/nim-lang/Nim/pull/7672#issuecomment-384092361 |
18:10:58 | FromGitter | <mratsim> @dom96 Yes |
18:10:58 | * | miran joined #nim |
18:11:03 | dom96 | TIL |
18:11:29 | FromGitter | <mratsim> Torch was started at ETH Zurich and Caffe at Berkeley but Facebook took over the development of both |
18:13:41 | FromGitter | <data-man> @dom96: #7813 if you have time |
18:14:57 | * | SenasOzys quit (Ping timeout: 240 seconds) |
18:15:52 | FromGitter | <tim-st> @data-man did you update the comment? |
18:17:04 | Yardanico | @tim-st that's an nimsuggest issue AFAIK |
18:17:17 | Yardanico | about 100% cpu or memory leaks |
18:17:42 | FromGitter | <data-man> @tim-st: No, the 1st version was on the forum :) |
18:17:50 | FromGitter | <tim-st> @Yardanico Ok, already thought it because it happens on linux too |
18:18:23 | FromGitter | <tim-st> ok |
18:19:06 | FromGitter | <tim-st> this is my nimsuggest version: |
18:19:08 | FromGitter | <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:58 | FromGitter | <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:44 | dom96 | https://www.reddit.com/r/programming/comments/8ilinf/python_vs_numpy_vs_nim/dystuu5/ |
18:29:53 | dom96 | Can we remove memory regions from the language? Does anyone use them? |
18:32:57 | miran | btw, i'm surprised this is still very high on r/programming, 12 hours after i posted it. |
18:34:53 | dom96 | Don't be surprised. Be motivated to write more blog posts :D |
18:35:07 | miran | haha, will do. |
18:35:30 | subsetpark | What in the sam hill is a memory region? |
18:36:06 | miran | but the next thing to do is to publish the beginners' tutorial (currently it is been reviewed by PMunch) |
18:36:17 | FromGitter | <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:33 | miran | bc? |
18:36:43 | FromGitter | <xmonader> @miran I'd love to review it too! |
18:36:55 | FromGitter | <xmonader> https://www.gnu.org/software/bc/ |
18:37:12 | miran | after he finishes, the next round of reviews could be made semi-public |
18:37:17 | dom96 | xmonader: json/xml are parsed 100% in Nim, why have doubts about its parsing abilities? :) |
18:37:24 | dom96 | miran: I'd love to review too |
18:37:50 | FromGitter | <xmonader> @dom96 I understand, i mean the parser genrators tools, stuff like lex, yacc or parsec i mean |
18:38:00 | miran | dom96: ok, you'll be included :) |
18:38:44 | FromGitter | <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:53 | miran | xmonader: indeed it is. but there is one constant appearing every time nim is mentioned - nim needs better documentation! |
18:53:30 | FromGitter | <xmonader> I agree with that too, I think docs > half complete features |
18:55:32 | miran | idea - to officially announce "Documentation June" - the community effort to write/update official nim documentation |
18:56:30 | FromGitter | <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:49 | subsetpark | I'm on board |
19:00:14 | miran | dom96: ^ what do you think? |
19:00:37 | dom96 | Of course, go for it :) |
19:02:25 | miran | you'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:28 | federico3 | +1 ! |
19:03:08 | FromGitter | <xmonader> we can learn something from rust, the community loves them |
19:03:29 | FromGitter | <xmonader> docs are as important as code, the keep community updated on every single thing they do |
19:05:12 | dom96 | miran: sure, just ping me with links and I'll tweet them |
19:05:13 | miran | IMO, this should be official/coordinated, so we can split into smaller groups, or each of us individually can tackle one part/module |
19:05:52 | miran | i guess this can be done via forum |
19:06:05 | federico3 | miran: we can assign owers to GH issues |
19:06:10 | federico3 | *owners |
19:06:28 | dom96 | I'm happy to state my support, but coordination would be nice from the community :) |
19:07:42 | federico3 | if 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:00 | miran | i can volunteer if a (single) coordinator is needed :) |
19:12:38 | federico3 | miran: good, and I can help as well |
19:12:58 | FromGitter | <mratsim> @dom96 I would like better memory regions, that would be super useful for object pools/memory pools. |
19:13:58 | miran | federico3: i've put you on the list :) |
19:14:01 | FromGitter | <mratsim> genericReset are my bane and allowing custom arena allocator for seqs would really be a boon. |
19:15:03 | miran | i'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:20 | subsetpark | miran 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:43 | miran | subsetpark: you're on the list now too :) |
19:20:32 | federico3 | miran, subsetpark: perhaps we can create an issue and subscribe ourselves to it |
19:21:13 | subsetpark | sounds good to me. |
19:21:44 | miran | some people don't follow forum, some people don't follow github - it is better to announce this *everywhere* :) |
19:22:17 | FromGitter | <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:59 | FromGitter | <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:03 | federico3 | https://github.com/FedericoCeratto/nim-lmdb new wrapper for LMDB :) |
19:38:27 | FromGitter | <data-man> @federico3: Cool! It's a pity that not for libmdbx |
19:39:05 | * | gmpreussner quit (Ping timeout: 276 seconds) |
19:39:13 | federico3 | https://github.com/leo-yuriev/libmdbx ? |
19:39:26 | FromGitter | <data-man> Yes |
19:41:20 | federico3 | might be a bit early for that one |
19:41:24 | * | gmpreussner joined #nim |
19:44:56 | FromGitter | <data-man> Why early? |
19:46:31 | * | rando joined #nim |
19:46:42 | federico3 | it'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:50 | FromGitter | <data-man> The library is already > 3 years |
19:59:51 | FromGitter | <tim-st> federico3: but linux only wrapper? |
20:00:44 | federico3 | tim-st: the wrapper should work on windows and osx as well |
20:02:30 | Yardanico | @data-man: I can't even find this lib in AUR, so it's really unpopular :) |
20:03:51 | FromGitter | <tim-st> have not tested it, but it looks for `const LibName* = "liblmdb.so(.0|.0.0.0|)"` |
20:04:55 | FromGitter | <data-man> @Yardanico: Hmm...maybe because it's from Russia? :-D |
20:05:13 | FromGitter | <tim-st> ^^ |
20:06:23 | federico3 | tim-st: I'm updating and testing as we speak |
20:07:19 | FromGitter | <tim-st> ok, thanks! |
20:09:22 | Yardanico | @data-man: not really, probably author didn't write articles about it on medium, etc |
20:13:36 | FromGitter | <xmonader> guys any idea on the error? |
20:15:16 | FromGitter | <data-man> @Yardanico: Can't agree. Positive Technologies is the very well known company. |
20:15:48 | Yardanico | does it matter? |
20:16:03 | Yardanico | this 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:38 | FromGitter | <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:42 | FromGitter | <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:41 | FromGitter | <geotre> @stisa thanks, that makes sense. I'll give it a go |
22:09:57 | FromGitter | <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:26 | FromGitter | <geotre> It's not a short program but if I can replicate it I will post to the tracker |
22:40:52 | FromGitter | <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) |