00:00:56 | * | kapil___ quit (Quit: Connection closed for inactivity) |
00:01:16 | * | Alforz20 quit (Remote host closed the connection) |
00:08:48 | * | adulteratedjedi5 joined #nim |
00:08:57 | * | adulteratedjedi5 quit (Remote host closed the connection) |
00:10:26 | * | banym1 joined #nim |
00:12:08 | * | banym1 quit (Remote host closed the connection) |
00:13:57 | * | bus7d joined #nim |
00:17:05 | * | skellock quit (Quit: WeeChat 1.9.1) |
00:18:24 | * | bus7d quit (Read error: Connection reset by peer) |
00:20:51 | * | csaunders21 joined #nim |
00:21:41 | * | lstdgtfp_ joined #nim |
00:22:26 | * | csaunders21 quit (Remote host closed the connection) |
00:25:07 | * | lstdgtfp_ quit (Remote host closed the connection) |
00:28:11 | * | hays_ joined #nim |
00:29:29 | * | hays_ quit (Read error: Connection reset by peer) |
00:38:10 | * | bews16 joined #nim |
00:41:42 | * | gtonello_ joined #nim |
00:42:50 | * | gtonello_ quit (Remote host closed the connection) |
00:42:55 | * | bews16 quit (Remote host closed the connection) |
00:45:13 | * | bviktor joined #nim |
00:49:58 | * | bviktor quit (Remote host closed the connection) |
00:50:49 | * | optiz0r28 joined #nim |
00:51:05 | * | optiz0r28 quit (Remote host closed the connection) |
00:53:16 | AlexMax | shashlick_: *nod* |
00:53:49 | AlexMax | I feel like my nimnuklear work isn't done, but I kinda wanna upstream what I have anyway |
00:54:26 | AlexMax | without my changes, it doesn't even work |
00:54:35 | AlexMax | with my changes, it works, but there are some annoying type problems to work out |
01:03:46 | * | noonien quit (Quit: Connection closed for inactivity) |
01:05:29 | shashlick_ | Ya sure please do |
01:12:31 | * | vivus quit (Remote host closed the connection) |
01:15:20 | * | zeus21 joined #nim |
01:20:12 | * | zeus21 quit (Remote host closed the connection) |
01:20:49 | AlexMax | shashlick_: https://github.com/genotrance/nimnuklear/pull/2 |
01:26:23 | * | jya2 joined #nim |
01:27:27 | * | ChrisWarrick24 joined #nim |
01:29:15 | * | jya2 quit (Remote host closed the connection) |
01:29:36 | * | ChrisWarrick24 quit (Remote host closed the connection) |
01:30:01 | * | dave492515 joined #nim |
01:30:40 | * | phry8 joined #nim |
01:33:10 | * | dave492515 quit (Remote host closed the connection) |
01:33:22 | * | drale2k13 joined #nim |
01:34:18 | * | phry8 quit (Remote host closed the connection) |
01:34:37 | * | drale2k13 quit (Remote host closed the connection) |
01:35:24 | FromGitter | <gogolxdong> why don't you just work on https://github.com/zacharycarter/nuklear-nim |
01:37:33 | FromGitter | <gogolxdong> Example works with some changes, also got some issues on editString of our own testing. |
01:44:47 | * | asilenkov13 joined #nim |
01:45:36 | * | asilenkov13 quit (Remote host closed the connection) |
01:46:43 | * | Taneb20 joined #nim |
01:50:43 | * | Taneb20 quit (Remote host closed the connection) |
01:53:15 | * | vquicksilver10 joined #nim |
01:54:36 | * | noctavian28 joined #nim |
01:55:23 | * | noctavian28 quit (Read error: Connection reset by peer) |
01:57:16 | * | vquicksilver10 quit (Remote host closed the connection) |
01:59:18 | shashlick_ | @gogolxdong: this was with zachcarter's blessings |
01:59:30 | shashlick_ | There were lots of changes upstream |
01:59:58 | shashlick_ | Now using nimgen to automate the wrapper generation |
02:10:40 | shashlick_ | @AlexMax: merged |
02:11:00 | shashlick_ | You need to join the nimgen gitter channel |
02:11:36 | shashlick_ | https://gitter.im/nimgen/Lobby |
02:16:20 | * | ironus19 joined #nim |
02:16:24 | * | ironus19 quit (Remote host closed the connection) |
02:29:06 | AlexMax | @gogolxdong We were actually in communication with zacharycarter already. He has had to turn his attention away from his bindings due to other obligations, and nimgen actually makes the hard first step of properly exporting the C library much easier |
02:30:17 | c15ade4 | vs code golang module support |
02:30:17 | FromGitter | <gogolxdong> that's to say, you take over nuklear atm. |
02:31:29 | AlexMax | I don't actually want to take over the nuklear nim bindings. But zach's current nim bindings seemed incomplete and didn't keep up with a years worth of changes to the upstream nuklear library itself |
02:32:28 | AlexMax | I think zach's intention is to, when he gets time, use the nimgenned binding as an implementation detail to help further expand the scope of his library |
02:32:53 | AlexMax | It's a lot of binding code generated that he doesn't have to write by hand. |
02:33:29 | FromGitter | <gogolxdong> exactly. |
02:34:30 | AlexMax | And all I was doing was helping the nimgenned binding stuff actually work out of the box |
02:36:32 | AlexMax | that helps me (because I wanted to use nuklear), that helps zach (since it gets rid of a bunch of work he has to do) and it helps shashlick (since it's yet another successfully nimgenn'ed library) |
02:36:39 | AlexMax | hooray for open source! |
02:36:41 | AlexMax | everybody wins! |
02:36:56 | FromGitter | <gogolxdong> brilliant. |
02:38:09 | AlexMax | 🎶 all we do is win win win 🎶 |
02:39:43 | FromGitter | <gogolxdong> lol |
02:56:54 | * | ftsf joined #nim |
03:12:35 | * | mutin-s joined #nim |
03:13:14 | * | mutin-s quit (Remote host closed the connection) |
03:20:58 | * | lorenzh12 joined #nim |
03:22:01 | * | lorenzh12 quit (Remote host closed the connection) |
03:22:56 | * | Spydar00725 joined #nim |
03:23:56 | * | Spydar00725 quit (Remote host closed the connection) |
03:34:06 | * | rimd2r9 joined #nim |
03:34:07 | * | rrva13 joined #nim |
03:35:21 | * | rimd2r9 quit (Read error: Connection reset by peer) |
03:36:36 | * | rrva13 quit (Remote host closed the connection) |
04:12:06 | * | kapil___ joined #nim |
04:50:08 | * | Sembei joined #nim |
04:52:58 | * | Pisuke quit (Ping timeout: 245 seconds) |
05:00:22 | * | darithorn quit (Quit: Konversation terminated!) |
05:02:03 | * | jmarion joined #nim |
05:06:45 | * | jmarion quit (Remote host closed the connection) |
05:11:02 | * | aptanet13 joined #nim |
05:12:49 | * | mu5 joined #nim |
05:14:28 | * | aptanet13 quit (Remote host closed the connection) |
05:15:47 | * | mu5 quit (Remote host closed the connection) |
05:23:55 | * | nsf joined #nim |
05:24:03 | * | leorize quit (Ping timeout: 252 seconds) |
05:24:54 | * | DTZUZO joined #nim |
05:25:23 | * | DTZUZO quit (Read error: Connection reset by peer) |
05:28:51 | FromGitter | <retsyo> @Vindaar thanks. Currently I am using numpy/scipy which runs some slow, so some calculation is replaced by numba's cfunc in fact. It seems that numpy/scipy-like package is not in nim world currently and a long time is need to evolve. |
05:32:17 | * | AxForest12 joined #nim |
05:34:31 | * | KiNgMaR29 joined #nim |
05:35:22 | * | KiNgMaR29 quit (Remote host closed the connection) |
05:37:12 | * | AxForest12 quit (Read error: Connection reset by peer) |
05:52:01 | * | mongy joined #nim |
05:52:04 | * | ldiamond8 joined #nim |
05:52:23 | * | ldiamond8 quit (Remote host closed the connection) |
05:52:41 | * | mongy quit (Remote host closed the connection) |
05:55:55 | * | leorize joined #nim |
06:04:31 | * | Guest50053 joined #nim |
06:06:09 | * | Guest50053 quit (Remote host closed the connection) |
06:19:08 | * | Skainet joined #nim |
06:21:28 | * | Skainet quit (Remote host closed the connection) |
06:22:48 | * | twiddern18 joined #nim |
06:23:08 | * | ghormoon21 joined #nim |
06:25:42 | * | grahamg joined #nim |
06:26:30 | * | ghormoon21 quit (Remote host closed the connection) |
06:27:07 | FromGitter | <narimiran> @retsyo for some simple linear algebra you can use Neo. if you want to just to rewrite some slow parts in Nim and call that from Python (like you would do with Cython), take a look at Nimpy |
06:27:08 | * | twiddern18 quit (Remote host closed the connection) |
06:27:18 | grahamg | Hi. I just started looking at nim today. I notice that the exception message produced with an IOError doesn't relay specific information that reflects C's errno. E.g. EACCESS or ENOENT. It just gives "cannot open". |
06:27:41 | grahamg | (ie. the open() proc) |
06:27:43 | * | Vermont18 joined #nim |
06:28:18 | * | Vermont18 quit (Remote host closed the connection) |
06:28:37 | * | wililupy28 joined #nim |
06:29:02 | * | wililupy28 quit (Remote host closed the connection) |
06:29:10 | grahamg | Is there a canonical way to open files that does provide useful error messages? |
06:31:14 | FromGitter | <gogolxdong> someone familiar with IPFS? |
06:33:39 | * | MatrixBot715 joined #nim |
06:34:32 | * | namho joined #nim |
06:35:05 | FromGitter | <Bennyelg> Morning |
06:36:27 | * | georgemp15 joined #nim |
06:36:44 | * | namho quit (Remote host closed the connection) |
06:36:50 | * | MatrixBot715 quit (Remote host closed the connection) |
06:38:51 | FromGitter | <gogolxdong> @mratsim does Status develops all in Nim? |
06:39:56 | * | georgemp15 quit (Remote host closed the connection) |
06:45:42 | * | z01d joined #nim |
06:46:50 | * | z01d quit (Remote host closed the connection) |
06:50:57 | * | da2ce74 joined #nim |
06:55:17 | * | da2ce74 quit (Remote host closed the connection) |
06:58:45 | * | Guest46016 joined #nim |
06:59:41 | * | zkms21 joined #nim |
07:00:48 | * | Guest46016 quit (Remote host closed the connection) |
07:00:54 | * | leru joined #nim |
07:00:56 | * | zkms21 quit (Read error: Connection reset by peer) |
07:03:43 | * | NegativeFlare10 joined #nim |
07:04:11 | * | grummund13 joined #nim |
07:05:46 | * | grummund13 quit (Remote host closed the connection) |
07:05:59 | * | NegativeFlare10 quit (Remote host closed the connection) |
07:17:54 | FromGitter | <mratsim> @gogolxdong Ethereum 2.0 will be all Nim for the backend |
07:18:10 | FromGitter | <mratsim> otherwise Ethereum 1.0 is backend in Go, FrontEnd in ClojureScript. |
07:19:27 | FromGitter | <gogolxdong> How many devs do you have ? |
07:20:07 | FromGitter | <mratsim> 6 Nim devs at the moment |
07:20:50 | FromGitter | <mratsim> Maybe half of the company are devs, 40~50 people otherwise? Not sure |
07:23:45 | * | mihait13 joined #nim |
07:24:40 | * | terrorjack17 joined #nim |
07:24:41 | * | mihait13 quit (Remote host closed the connection) |
07:26:46 | * | terrorjack17 quit (Remote host closed the connection) |
07:29:40 | * | Tanger quit (Quit: Leaving) |
07:37:53 | FromGitter | <gogolxdong> all work on Ethereum? |
07:41:03 | * | ToeSnacks_20 joined #nim |
07:44:25 | * | ToeSnacks_20 quit (Remote host closed the connection) |
07:48:40 | * | noonien joined #nim |
07:50:11 | FromGitter | <mratsim> All dev are on Ethereum yes |
07:50:50 | FromGitter | <gogolxdong> I cannot believe it. Ethereum 2.0 will be all Nim for the backend, how do you persuade Vitalik Buterin? |
07:51:05 | FromGitter | <mratsim> But Ethereum means a lot of things: P2P networking, Cryptography (and Ellptic curve math), Virtual machines |
07:52:04 | FromGitter | <mratsim> The goal of the foundation is to have many clients when Ethereum 2.0 is released, so that consensus issues are detected (today if there is an issue on Geth, since everyone is running Geth we might get a problem) |
07:52:24 | FromGitter | <mratsim> foundation == Ethereum Foundation |
07:52:47 | FromGitter | <gogolxdong> means Status got funding by Ethereum Foundation? |
07:53:47 | FromGitter | <mratsim> We applied but we started without funding (besides Status ICO) |
07:53:59 | FromGitter | <mratsim> Here is the funding detail: https://blog.ethereum.org/2018/01/02/ethereum-scalability-research-development-subsidy-programs/ |
07:55:01 | FromGitter | <gogolxdong> got it , know a little how Foundation works. |
07:57:45 | * | clog21 joined #nim |
08:00:03 | * | clog21 quit (Read error: Connection reset by peer) |
08:01:17 | FromGitter | <gogolxdong> to be precise, didn't know how foundation works until now. |
08:03:11 | * | gmpreussner quit (Quit: kthxbye) |
08:03:29 | * | gmpreussner joined #nim |
08:04:25 | FromGitter | <gogolxdong> There was such a thought flashed through my head when I looked at the smart contract for the first time, don't believe it come true. Ethereum in Nim. |
08:04:49 | FromGitter | <mratsim> You need an underdog field to adopt an underdog language ;) |
08:05:14 | FromGitter | <mratsim> By the way you’re working at Tencent right? Congrats on the Starcraft 2 AI bot! |
08:05:25 | FromGitter | <mratsim> THat’s one thing I want to do with Arraymancer |
08:05:32 | * | NobodyCam15 joined #nim |
08:06:26 | FromGitter | <mratsim> @narimiran didn’t you say 0.19.0 was for yesterday? |
08:06:45 | FromGitter | <narimiran> @mratsim it seemed so |
08:06:49 | FromGitter | <gogolxdong> thanks, and I'm not. :) , we deal with Tencent Cloud only. |
08:06:58 | FromGitter | <mratsim> ah ok |
08:07:00 | FromGitter | <narimiran> https://github.com/nim-lang/Nim/commit/c240806756579c3375b1a79e1e65c40087a52ac5 |
08:07:34 | * | shanth16 joined #nim |
08:08:16 | * | NobodyCam15 quit (Remote host closed the connection) |
08:08:28 | * | Liskni_si24 joined #nim |
08:09:42 | FromGitter | <gogolxdong> Arraymancer is a matrix operation library, not the algorithm , do you know what kind of neural network they used? |
08:10:13 | FromGitter | <mratsim> Paper is here: https://arxiv.org/abs/1809.07193 |
08:10:50 | * | shanth16 quit (Remote host closed the connection) |
08:10:55 | * | xniega9 joined #nim |
08:11:16 | FromGitter | <gogolxdong> Arraymancer GPU backend is still WIP , is that hard? |
08:11:37 | FromGitter | <mratsim> it’s easier than CPU backend actually |
08:11:43 | * | Liskni_si24 quit (Remote host closed the connection) |
08:11:47 | FromGitter | <mratsim> at least for Cuda/CuDNN |
08:11:58 | FromGitter | <mratsim> OpenCL is no-man’s land |
08:12:41 | FromGitter | <mratsim> It seems like contrary to Alpha Go, for SC2 they encoded some human expertise in the bot according to the paper “165 macro actions" |
08:12:45 | * | Freebien24 joined #nim |
08:13:05 | FromGitter | <mratsim> and they used a variant of Deep Q-Learning |
08:13:17 | * | xniega9 quit (Read error: Connection reset by peer) |
08:13:25 | FromGitter | <gogolxdong> not pure AI. |
08:13:33 | * | Freebien24 quit (Remote host closed the connection) |
08:13:55 | FromGitter | <mratsim> not sure what “Distributed Rollout Infrastructure” is but I suppose it’s Monte-Carlo Tree Search |
08:14:09 | * | poljar joined #nim |
08:14:10 | FromGitter | <mratsim> to get a distribution of outcomes probability after each action |
08:16:22 | FromGitter | <gogolxdong> better AI lies in theory and research breakthrough of paper, neural network works as a blackbox atm. |
08:16:25 | * | poljar quit (Remote host closed the connection) |
08:18:52 | FromGitter | <mratsim> not true anymore |
08:19:37 | FromGitter | <mratsim> Copy-pasting myself from a data science slack: ⏎ ⏎ > SHAP (SHapley Additive exPlanations) is a unified approach to explain the output of any machine learning model. SHAP connects game theory with local explanations, uniting several previous methods [1-7] and representing the only possible consistent and locally accurate additive feature attribution method based on expectations ⏎ ⏎ 1) |
08:19:37 | FromGitter | ... https://github.com/slundberg/shap ... [https://gitter.im/nim-lang/Nim?at=5bab4119fe37781110fc4f7a] |
08:25:26 | * | chemist69 joined #nim |
08:31:48 | * | Mahjong4 joined #nim |
08:34:24 | * | Mahjong4 quit (Remote host closed the connection) |
08:36:45 | * | ftsf quit (Remote host closed the connection) |
08:37:06 | * | ftsf joined #nim |
08:37:57 | FromGitter | <Vindaar> @retsyo see my response here: https://gist.github.com/Vindaar/aab2926425400fc57274b521e80398dd |
08:38:07 | * | inaki24 joined #nim |
08:39:29 | federico3 | https://hackaday.com/2018/09/25/nim-writes-c-code-and-more-for-you/ |
08:40:18 | * | skellock joined #nim |
08:42:03 | * | inaki24 quit (Remote host closed the connection) |
08:42:11 | * | skule9 joined #nim |
08:42:31 | * | PMunch joined #nim |
08:43:31 | * | dmorris joined #nim |
08:43:58 | * | skule9 quit (Remote host closed the connection) |
08:46:09 | * | joestewart9 joined #nim |
08:47:39 | * | joestewart9 quit (Remote host closed the connection) |
08:48:16 | * | f8l0 joined #nim |
08:49:19 | * | linduxed7 joined #nim |
08:49:53 | * | dmorris quit (Ping timeout: 252 seconds) |
08:51:13 | * | f8l0 quit (Remote host closed the connection) |
08:51:29 | * | chemist69 quit (Quit: WeeChat 1.9.1) |
08:52:09 | * | chemist69 joined #nim |
08:53:18 | * | dograt6 joined #nim |
08:53:53 | * | linduxed7 quit (Remote host closed the connection) |
08:57:33 | * | eofs2 joined #nim |
08:57:34 | * | ftsf quit (Read error: Connection reset by peer) |
08:57:57 | * | dograt6 quit (Remote host closed the connection) |
09:00:15 | * | eofs2 quit (Remote host closed the connection) |
09:01:43 | * | OS-7153_18 joined #nim |
09:01:56 | * | leorize quit (Ping timeout: 252 seconds) |
09:02:04 | * | OS-7153_18 quit (Remote host closed the connection) |
09:02:40 | * | outofbounds5 joined #nim |
09:04:05 | * | outofbounds5 quit (Remote host closed the connection) |
09:04:47 | * | hk6 joined #nim |
09:04:50 | * | hk6 quit (Remote host closed the connection) |
09:07:56 | * | ghavil joined #nim |
09:08:01 | * | ghavil is now known as Guest58840 |
09:08:05 | * | altendky15 joined #nim |
09:11:34 | * | altendky15 quit (Read error: Connection reset by peer) |
09:11:46 | * | lerc7 joined #nim |
09:12:23 | * | Guest58840 quit (Remote host closed the connection) |
09:14:12 | * | krux02 joined #nim |
09:15:05 | * | lerc7 quit (Remote host closed the connection) |
09:18:25 | * | skule5 joined #nim |
09:21:02 | * | skule5 quit (Remote host closed the connection) |
09:23:04 | * | p_l12 joined #nim |
09:26:12 | * | couven92 quit (Quit: Client disconnecting) |
09:27:52 | * | p_l12 quit (Remote host closed the connection) |
09:34:52 | * | quaddle joined #nim |
09:36:51 | * | quaddle quit (Client Quit) |
09:39:26 | * | Mikail3 joined #nim |
09:43:10 | * | Mikail3 quit (Read error: Connection reset by peer) |
09:43:15 | * | onu3 joined #nim |
09:47:26 | * | onu3 quit (Remote host closed the connection) |
09:51:08 | * | arkblitz joined #nim |
09:52:19 | * | arkblitz quit (Remote host closed the connection) |
09:52:37 | * | tomoyat113 joined #nim |
09:55:56 | * | tomoyat113 quit (Remote host closed the connection) |
10:03:15 | * | ObsidianX joined #nim |
10:03:41 | * | ventures26 joined #nim |
10:04:43 | * | ObsidianX quit (Remote host closed the connection) |
10:04:58 | * | stefanos82 joined #nim |
10:05:01 | * | ventures26 quit (Read error: Connection reset by peer) |
10:07:27 | * | UTAN_dev10 joined #nim |
10:08:34 | * | thrillgore17 joined #nim |
10:08:54 | FromGitter | <narimiran> @Vindaar that might be a nice blog post! |
10:09:00 | * | UTAN_dev10 quit (Remote host closed the connection) |
10:09:37 | * | habibilus22 joined #nim |
10:11:25 | * | thrillgore17 quit (Remote host closed the connection) |
10:11:50 | * | habibilus22 quit (Remote host closed the connection) |
10:21:00 | * | Vladar joined #nim |
10:21:56 | * | tzui joined #nim |
10:22:11 | * | WillMoogle_ joined #nim |
10:24:35 | * | WillMoogle_ quit (Remote host closed the connection) |
10:27:41 | * | zzattack1 joined #nim |
10:28:45 | * | tzui quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
10:29:16 | * | zzattack1 quit (Read error: Connection reset by peer) |
10:32:05 | * | shiranaihito joined #nim |
10:35:27 | * | tzui joined #nim |
10:36:49 | * | shiranaihito quit (Remote host closed the connection) |
10:36:59 | * | Gerrymandered10 joined #nim |
10:38:49 | * | Gerrymandered10 quit (Read error: Connection reset by peer) |
10:38:53 | * | DoctorDick22 joined #nim |
10:39:20 | * | DoctorDick22 quit (Read error: Connection reset by peer) |
10:42:27 | * | TheRealNoob4 joined #nim |
10:43:01 | * | TheRealNoob4 quit (Remote host closed the connection) |
10:43:21 | * | experienceRCOS joined #nim |
10:51:51 | * | experienceRCOS quit (Ping timeout: 252 seconds) |
11:05:36 | * | XXCoder3 joined #nim |
11:05:44 | * | npope7 joined #nim |
11:05:59 | * | XXCoder3 quit (Remote host closed the connection) |
11:07:17 | * | npope7 quit (Remote host closed the connection) |
11:08:36 | * | amunak joined #nim |
11:10:06 | * | amunak quit (Read error: Connection reset by peer) |
11:10:14 | * | halirc joined #nim |
11:10:51 | * | lakonig_ joined #nim |
11:13:52 | * | lakonig_ quit (Remote host closed the connection) |
11:19:26 | * | stnutt joined #nim |
11:20:10 | * | tobberydberg15 joined #nim |
11:21:26 | * | pugfantus10 joined #nim |
11:21:54 | FromGitter | <zacharycarter> that's true |
11:22:31 | FromGitter | <zacharycarter> it's a good conversation starter - not something to form a persuasive argument around |
11:23:57 | * | pugfantus10 quit (Remote host closed the connection) |
11:24:10 | * | stnutt quit (Remote host closed the connection) |
11:28:14 | FromGitter | <Vindaar> @narimiran yeah, that idea is what made me right this up in more than a few lines here, haha. Will try to fix that up a little in the next few days and turn it into one :) |
11:28:15 | * | tobberydberg15 quit (Ping timeout: 250 seconds) |
11:30:22 | FromGitter | <zacharycarter> that hackaday article is on my google news feed :O |
11:32:17 | FromGitter | <narimiran> @Vindaar thumbs up! :) |
11:33:22 | PMunch | Speaking of articles and such, did anyone ever do something with the FOSDEM lightning talk idea? |
11:36:01 | * | exos27 joined #nim |
11:37:30 | * | exos27 quit (Remote host closed the connection) |
11:38:25 | * | kungtotte quit (Remote host closed the connection) |
11:39:34 | * | leorize joined #nim |
11:41:30 | * | dlech1 joined #nim |
11:43:05 | * | dlech1 quit (Remote host closed the connection) |
11:58:46 | * | ZeroFlame00719 joined #nim |
12:01:06 | * | EmmyNoether24 joined #nim |
12:03:03 | * | EmmyNoether24 quit (Read error: Connection reset by peer) |
12:03:29 | * | ZeroFlame00719 quit (Remote host closed the connection) |
12:06:50 | * | Krenair12 joined #nim |
12:07:19 | * | Krenair12 quit (Remote host closed the connection) |
12:08:34 | * | xet7 joined #nim |
12:11:05 | federico3 | PMunch: I started a deck of slides that can be used for any talk https://github.com/FedericoCeratto/nim-slides |
12:11:42 | * | tzui quit (Ping timeout: 244 seconds) |
12:15:21 | PMunch | Oh cool |
12:16:25 | PMunch | A bit long for a lightning talk though |
12:17:13 | PMunch | I was thinking of writing a set on Nim macros, and the power they bring to the language |
12:17:24 | PMunch | I think that could be a cool 5-minute talk |
12:18:05 | * | SenasOzys quit (Ping timeout: 250 seconds) |
12:22:34 | * | wmann joined #nim |
12:24:41 | FromGitter | <narimiran> federico3: that is a nice template for some general 'intro to nim' presentations! |
12:25:00 | * | wmann quit (Remote host closed the connection) |
12:25:01 | FromGitter | <narimiran> PMunch: is it possible to show (off) macros in 5 minutes? |
12:25:54 | PMunch | Well, I think you could talk a little bit about what they can be used for, then maybe show an example or two |
12:26:00 | federico3 | thanks - contributions are welcome. There could be longer and shorter decks on the same repo |
12:27:12 | federico3 | PMunch: lightning talks at FOSDEM are short. Getting into macros would need a regular talk |
12:28:37 | PMunch | Well they're not that short, I'm not talking about explaining how they work or anything. Just give people a teaser on their power |
12:32:15 | * | flacko18 joined #nim |
12:33:47 | * | riidom quit (Ping timeout: 240 seconds) |
12:35:32 | * | flacko18 quit (Remote host closed the connection) |
12:35:50 | * | swatarianess23 joined #nim |
12:36:07 | * | leru quit (Ping timeout: 240 seconds) |
12:38:29 | * | swatarianess23 quit (Remote host closed the connection) |
12:39:08 | federico3 | PMunch: keep in mind that most people in the crowd know nothing about Nim |
12:41:09 | FromGitter | <deech> Does the asyncdispatch mechanism launch a separate OS thread for each process? |
12:43:04 | PMunch | federico3, yeah I know. The idea wasn't to teach them much about Nim either, just to leave them with a desire to do so .) |
12:43:37 | PMunch | No one is going to check out a language if you just pitch the basic facts about it |
12:45:44 | * | egon102418 joined #nim |
12:46:00 | * | egon102418 quit (Remote host closed the connection) |
12:47:32 | * | Loshki5 joined #nim |
12:48:11 | FromDiscord | <Shield> @deech no, it just automatically converts your procedures into iterator closures, everything runs on single thread |
12:48:51 | FromGitter | <narimiran> PMunch: i wouldn't check out a language if you just pitch "macros are cool" ;) |
12:50:07 | * | Loshki5 quit (Remote host closed the connection) |
12:51:26 | * | dddddd joined #nim |
12:51:52 | federico3 | same here |
12:52:28 | PMunch | narimiran, well it wouldn't be "macros are cool" but rather "this is cool, and made possible by macros" |
12:53:16 | * | klntsky26 joined #nim |
12:55:17 | * | Dmitrii-Sh4 joined #nim |
12:57:40 | * | Dmitrii-Sh4 quit (Remote host closed the connection) |
12:58:03 | halirc | Hello. I'm using the & operator from strformat like this &"{parseFloat(stringVarWithFloat):.4f}" and I get the result I'm looking for most of the time but sometimes I see resulting strings like this -5.722e-006. How can I prevent that? Am I doing something wrong? |
13:01:42 | halirc | Generally my question would be: If I have a number with decimal places, read in as a string, how can I round it to 4 decimal places consistently and have the result be a string again. |
13:01:43 | * | tay_ joined #nim |
13:01:44 | * | klntsky26 quit (Ping timeout: 252 seconds) |
13:01:47 | * | Astro746724 joined #nim |
13:02:44 | halirc | If I just use round I saw things like 8.000000000001 |
13:02:52 | PMunch | floatString[0..floatString.find('.')+4] |
13:02:58 | PMunch | Should work I think |
13:03:16 | * | mikky6 joined #nim |
13:03:37 | PMunch | !eval let floatString = "123.45612121212"; echo floatString[0..floatString.find('.')+4] |
13:03:40 | NimBot | 123.4561 |
13:04:14 | PMunch | It requires the float string to be formatted as number.number though |
13:04:19 | PMunch | No e notation |
13:04:32 | FromGitter | <Vindaar> @PMunch but this would just truncate the decimal places, no? |
13:04:42 | PMunch | Vindaar, ah good point |
13:05:03 | PMunch | It would indeed just take the first n characters of the decimal, no rounding |
13:05:43 | * | Astro746724 quit (Remote host closed the connection) |
13:07:52 | * | dexta15 joined #nim |
13:07:56 | halirc | I will always be in the number.number format but yes, it has to be rounded, too. |
13:08:00 | FromGitter | <Vindaar> Hm, so according to https://nim-lang.org/docs/strformat.html#standard-format-specifier-for-strings-integers-and-floats I understand it such that it should always print it as a fixed point number. `g` is the notation which automatically switches to exponent notation |
13:08:01 | FromGitter | <narimiran> halirc: the problem with `-5.722e-006` when you try to make it a string with four decimal places is that that number is much smaller than 0.0001 |
13:08:06 | * | mikky6 quit (Read error: Connection reset by peer) |
13:08:36 | FromGitter | <narimiran> this is 0.0000057. how do you print that with only 4 decimal places? |
13:09:26 | FromGitter | <Vindaar> well, it should just print 0 or round up the last digit to 1? |
13:09:30 | halirc | It's fine if it would get rounded to 0, I just don't want any e notation in my output string |
13:09:40 | halirc | yes, 0 or 0.0001 all ok |
13:09:47 | * | dexta15 quit (Read error: Connection reset by peer) |
13:11:02 | FromGitter | <Vindaar> weird, @halirc it works fine for me |
13:11:42 | FromGitter | <Vindaar> !eval import strformat; let a = 0.00000000057342; echo &"{a:4f}" |
13:11:46 | NimBot | 0.000000 |
13:12:01 | * | JinnX27 joined #nim |
13:12:33 | PMunch | !eval import strformat; let a = "0.00000000057342"; echo &"{parseFloat(a):4f}" |
13:12:35 | NimBot | Compile failed: lib/core/macros.nim(377, 1) Error: undeclared identifier: 'parseFloat' |
13:13:00 | PMunch | !eval import strformat, strutils; let a = "0.00000000057342"; echo &"{parseFloat(a):4f}" |
13:13:04 | NimBot | 0.000000 |
13:13:06 | FromGitter | <narimiran> i really wouldn't like for something two orders of a magnitude smaller to be rounded/shown as 0.0001 ;) |
13:13:15 | FromGitter | <Vindaar> haha, agreed |
13:13:33 | PMunch | !eval import strformat, strutils; let a = "0.0000057"; echo &"{parseFloat(a):4f}" |
13:13:37 | FromGitter | <Vindaar> shouldn't it only echo 4 places though? |
13:13:37 | NimBot | 0.000006 |
13:13:59 | PMunch | Yeah that's strange |
13:14:07 | FromGitter | <Vindaar> oh, need to do: |
13:14:08 | PMunch | !eval import strformat, strutils; let a = "12,34567"; echo &"{parseFloat(a):4f}" |
13:14:08 | FromGitter | <narimiran> Pmunch: use `:.4f` |
13:14:11 | NimBot | <no output> |
13:14:13 | FromGitter | <Vindaar> yep |
13:14:15 | halirc | -5.722e-006 is the putput I get from &"{float:4f}", I don't actually know at this time what the input is, it would be a bit annoying to dig that out, but I could |
13:14:16 | PMunch | !eval import strformat, strutils; let a = "12.34567"; echo &"{parseFloat(a):.4f}" |
13:14:20 | NimBot | 12.3457 |
13:14:38 | PMunch | !eval import strformat, strutils; let a = "0.0000057"; echo &"{parseFloat(a):.4f}" |
13:14:41 | NimBot | 0.0000 |
13:14:46 | halirc | I just was surpised it made any e notation output |
13:14:54 | FromGitter | <Vindaar> rightly so |
13:15:05 | * | JinnX27 quit (Remote host closed the connection) |
13:15:12 | * | tay_ quit (Remote host closed the connection) |
13:15:12 | PMunch | halirc, which Nim version are you using? |
13:15:35 | halirc | Nim Compiler Version 0.18.0 [Windows: amd64] |
13:15:38 | * | tay_ joined #nim |
13:17:39 | * | mpan19 joined #nim |
13:17:43 | FromGitter | <narimiran> i've tried and in both v0.18 and v0.18.1 i get 0.0000 |
13:17:50 | * | mpan19 quit (Read error: Connection reset by peer) |
13:18:06 | FromGitter | <Bennyelg> @Vindaar https://gist.github.com/Vindaar/aab2926425400fc57274b521e80398dd Fantastic boost. |
13:18:12 | halirc | I'll find out the input that generates this |
13:18:17 | PMunch | It's probably only some floating point numbers that cause this |
13:19:20 | FromGitter | <narimiran> https://forum.nim-lang.org/t/4243 who left? |
13:21:08 | * | kapil___ quit (Quit: Connection closed for inactivity) |
13:21:09 | Araq | I don't know :-) |
13:22:26 | FromGitter | <Vindaar> @Bennyelg I agree, it's pretty nice. :) Although I guess for something like this other Python tools probably achieve similar speed ups (so it won't be able to convince a python user to try Nim by itself) |
13:23:41 | FromGitter | <Bennyelg> Yea |
13:23:41 | pqflx3[m] | This? https://irclogs.nim-lang.org/24-09-2018.html#02:35:49 |
13:23:45 | FromGitter | <Vindaar> Back when I did this I actually wrote the integrand in C and called it with ctypes. That was quite a little more cumbersome though |
13:24:31 | PMunch | http://ix.io/1nBg/Nim gives no output |
13:24:57 | PMunch | So I'm not able to repeat the output you get halirc |
13:25:07 | FromGitter | <narimiran> @Vindaar @Bennyelg well, you can use cython. which is sometimes quite simple with huge benefits. but sometimes it isn't. ;) btw, here is what i have written on the same topic: https://narimiran.github.io/2018/05/10/python-numpy-nim.html |
13:25:44 | FromGitter | <narimiran> numba is much simpler than cython. and *when* it works, it is very nice |
13:25:59 | * | YoY joined #nim |
13:26:40 | * | MrAxilus[m] joined #nim |
13:28:03 | FromGitter | <Vindaar> Yep, I remember reading that post. I tried cython in the past (related to this actually) but wasn't a fan. And we use numba currently in a readout software. It does work, but to me it feels weird. |
13:29:09 | FromGitter | <Vindaar> It's probably different if you actually spend time to learn numba well, but to me it feels like "let's @jit it and hope this is faster than before". I like certainty :) |
13:29:12 | * | YoY quit (Remote host closed the connection) |
13:29:27 | FromGitter | <Vindaar> but well, I guess everyone /here/ will agree with me anyways :D |
13:30:22 | FromGitter | <narimiran> yeah, that's how i use numba too :D |
13:34:42 | halirc | I turns out my input is not always in the number.number format, as I really thought it was. So the regex to find these numbers did not catch that one with the e in it and it was never processed by &. So it is all good with the & .4f formatting. |
13:34:56 | halirc | Sorry about wasting your time with this and the false alarm. |
13:35:28 | halirc | At least it got me to find the error. That's what I get when I assume the input is all correctly or consistently formatted |
13:37:28 | FromGitter | <Vindaar> glad you found the issue :) |
13:39:55 | * | Gohla5 joined #nim |
13:40:55 | FromGitter | <kaushalmodi> @narimiran The docopt package dev has left as I learned from @zacharycarter and @dom96 |
13:41:50 | * | zampano21 joined #nim |
13:41:54 | Araq | that was years ago. He is kind enough to keep maintaining his packages though, afaict |
13:43:37 | FromGitter | <kaushalmodi> I think that's it then I believe. You can mention (will be more official) in that forum thread to prevent any panic :) |
13:44:03 | * | zampano21 quit (Remote host closed the connection) |
13:44:13 | Araq | I replied |
13:44:34 | * | Gohla5 quit (Remote host closed the connection) |
13:47:47 | * | junland quit (Ping timeout: 240 seconds) |
13:48:58 | Araq | https://docs.python.org/3/c-api/memory.html |
13:49:17 | FromDiscord | <Shield> whenever I ask people about Nim they always complain about the lack/outdated libraries and bindings, the last one complained about the GTK3 bindings and the lack of destructors |
13:50:06 | Araq | there is always a good reason for not using something |
13:50:33 | Araq | GTK3 is written in C. C lacks destructors. |
13:52:49 | * | madnight joined #nim |
13:52:55 | FromDiscord | <Shield> I too have a problem with it, the SFML bindings are really outdated, but I just went with it because Nim is too good, at least openGl and SDL are covered for gamedev |
13:53:42 | * | madnight quit (Remote host closed the connection) |
13:54:10 | Araq | the destructors are getting into shape, but most languages live fine without them |
13:55:14 | FromDiscord | <Shield> yeah I don't get the deal behind destructors, you can invoke the free/destroy function on your own |
13:55:43 | Araq | often it's also pushed into a finalizer and you don't have to call free |
13:55:50 | FromGitter | <arnetheduck> about forum thread - indeed, outdated libraries is a symptom of people leaving nim, and that was what the conversation was about |
13:56:45 | Araq | outdated libraries are everywhere though. there is a constant stream of newly developed libs too |
13:57:26 | FromGitter | <Bennyelg> people always seeking how and where to complain. |
13:57:43 | FromGitter | <Bennyelg> I don't take them seriously if they leaving because library is outdated. |
13:57:48 | FromGitter | <timotheecour> araq since you’re here, I’m really curious about how to integrate existing react components in karax? (and vice versa) - Nim forum (https://forum.nim-lang.org/t/4241) |
13:58:10 | Araq | in open source development, maintenance almost always leaves a lot to be desired |
13:58:51 | Araq | and of course, Nim has problems with stability. the macro system is Nim's key unique feature |
13:59:16 | Araq | so people are happy to explore the macro system, only to notice that the next version changed the AST slightly and their macros break |
13:59:40 | FromGitter | <arnetheduck> @Bennyelg the other way around - I'm not curious about people complaining that libraries are outdated - I'm curious about why people make the effort to write a library, publish it, and then stop using nim (ie stop maintaining the library - if the authers were using it / using nim, it would get maintenance) |
13:59:54 | FromDiscord | <Shield> This is also a confusing time, some libraries already require 0.18.1 (found one with 0.19 for some reason) when 0.18.0 is still the official version, so the libraries are split even more |
14:00:08 | Araq | (even though the AST is part of the spec...) |
14:00:36 | * | Perkol joined #nim |
14:01:14 | Araq | timotheecour: I don't know aobut react components. |
14:01:20 | FromGitter | <Bennyelg> @arnetheduck Agree but I can give you a bunch of libraries in python which not updated anymore. ⏎ + ⏎ remember that nim is not yet version 1.* so everything is under work. |
14:01:52 | FromDiscord | <Shield> @arnetheduck, exactly, nim's bindings for SFML are outdated while the author kept the crystal bindings updated, it's kinda unfair |
14:02:56 | FromGitter | <timotheecour> does that mean we can’t reuse any of the components (eg youtube, google maps, tree nav etc) written for react in karax? or there could be a way but it’s not trivial? |
14:03:23 | * | KAT joined #nim |
14:03:47 | * | Qiming10 joined #nim |
14:03:50 | Araq | there is experiments/echartstest.nim |
14:04:42 | Araq | you use setForeignNodeId "echartSection" to make karax aware of a subsection of the DOM not under its control |
14:04:43 | * | Qiming10 quit (Remote host closed the connection) |
14:05:43 | * | KAT quit (Remote host closed the connection) |
14:06:04 | Araq | I also wanted to add 'nativeNode' virtual DOM node kind for even better interop but never got to do it. PRs welcome, it's not hard. |
14:06:41 | Araq | the idea is that the virtual DOM -> DOM transformation keeps 'nativeNodes' as they are |
14:07:12 | FromGitter | <timotheecour> cool, i was really afraid of a completely separate ecosystem, ok will look at it |
14:09:39 | FromGitter | <timotheecour> for some reason `nim js echartstest.nim && open echartstest.html` doesn’t do much (clicking on Products doesn’t do anything) but maybe i’m doing smthg wrong (other simple karax stuff works) |
14:10:29 | FromDiscord | <hotdog> Does anyone have an example of "--hotCodeReloading:on" working with browserSync/Livereload? |
14:14:56 | * | digitalgrease3 joined #nim |
14:15:26 | * | tay_ quit (Ping timeout: 252 seconds) |
14:19:21 | * | tay_ joined #nim |
14:19:33 | * | digitalgrease3 quit (Remote host closed the connection) |
14:22:56 | * | mooasaurus7 joined #nim |
14:22:56 | * | mooasaurus7 quit (Remote host closed the connection) |
14:25:00 | * | PMunch quit (Quit: Leaving) |
14:27:38 | * | enthus1ast joined #nim |
14:28:31 | enthus1ast | folks have a look at this tui library: https://github.com/nais314/stui/ |
14:28:52 | enthus1ast | he has just fixed id for devel |
14:28:54 | enthus1ast | it |
14:29:12 | Araq | that's what I've been waiting for |
14:29:13 | enthus1ast | build all the ssh guis |
14:29:15 | enthus1ast | :D |
14:29:26 | enthus1ast | me to |
14:32:27 | FromGitter | <kaushalmodi> enthus1ast: woh! good find! |
14:33:06 | * | Samian9 joined #nim |
14:35:26 | * | Jbain_ joined #nim |
14:36:12 | * | Perkol quit (Quit: Leaving) |
14:37:59 | * | Samian9 quit (Remote host closed the connection) |
14:38:37 | * | lukexj21 joined #nim |
14:38:55 | * | Jbain_ quit (Remote host closed the connection) |
14:38:58 | * | ephemer0l23 joined #nim |
14:40:15 | * | lukexj21 quit (K-Lined) |
14:40:34 | * | Perkol joined #nim |
14:41:21 | federico3 | shameless plug https://github.com/FedericoCeratto/nim-dashing |
14:41:52 | * | abm joined #nim |
14:42:24 | * | abm left #nim (#nim) |
14:42:42 | * | ephemer0l23 quit (Remote host closed the connection) |
14:46:36 | * | mr_noob1 joined #nim |
14:47:41 | * | Guest41066 joined #nim |
14:48:06 | * | Guest41066 quit (Remote host closed the connection) |
14:54:15 | FromGitter | <gogolxdong> @nais314 |
14:54:34 | FromGitter | <gogolxdong> invisible |
14:56:33 | * | BadHorsie joined #nim |
14:58:55 | * | BadHorsie quit (Read error: Connection reset by peer) |
15:00:33 | FromGitter | <gogolxdong> Error: 'spawn' takes a GC safe call expression |
15:01:32 | * | dietricha_ joined #nim |
15:02:42 | FromGitter | <gogolxdong> on branch nim019 `Error: 'tb2test' is not GC-safe as it calls 'setCursorPos'` |
15:03:06 | * | dietricha_ quit (Remote host closed the connection) |
15:05:02 | FromGitter | <tim-st> why is `newSeqUninitialized` only available for number types? |
15:05:31 | FromGitter | <tim-st> I tried for enum and didnt work |
15:05:58 | Araq | gogolxdong: you can enforce gc-safety via |
15:05:59 | FromDiscord | <Shield> @federico3 windows did not like that demo |
15:06:06 | Araq | {.gcsafe.}: |
15:06:12 | Araq | echo "my dangerous code here" |
15:06:53 | * | amiconn13 joined #nim |
15:07:47 | FromGitter | <tim-st> ok, I have a better idea, I cast the string direct instead of using `newSeqUninitialized` |
15:07:53 | enthus1ast | gogolxdong the stui_test1.nims build the test for me |
15:09:14 | * | television18 joined #nim |
15:09:20 | * | amiconn13 quit (Read error: Connection reset by peer) |
15:10:49 | FromGitter | <gogolxdong> It builds for me too on dev enviroment, but not on WLS. many frontend devs uses windows, sigh. |
15:10:54 | * | tay_ quit (Ping timeout: 252 seconds) |
15:11:22 | FromGitter | <gogolxdong> use |
15:11:43 | * | television18 quit (Remote host closed the connection) |
15:11:59 | * | user_5117 joined #nim |
15:12:54 | * | dau13 joined #nim |
15:13:25 | federico3 | Shield: never tested on windows. I'll try to enable appveyor. PRs are welcome |
15:14:04 | FromGitter | <gogolxdong> a lame linux system. |
15:14:11 | * | user_5117 quit (Remote host closed the connection) |
15:14:41 | * | notbrent19 joined #nim |
15:14:59 | * | dau13 quit (Remote host closed the connection) |
15:15:30 | FromDiscord | <Shield> same problem with stui library, window's terminal just looses its mind, I guess it just sucks compared to linux's |
15:15:53 | * | notbrent19 quit (Remote host closed the connection) |
15:17:26 | FromGitter | <gogolxdong> I would like to force them to use ubuntu18.04 afterwards for enrolled devs. |
15:17:52 | enthus1ast | i think terminals suck in general |
15:19:27 | * | Trustable joined #nim |
15:22:32 | enthus1ast | FedericoCeratto dashing.nim(76, 12) Error: usage of 'isNil' is a user-defined error |
15:23:12 | enthus1ast | ^ federico3 ? |
15:23:22 | FromGitter | <kaushalmodi> Araq: Would you plan to first publish an RC1 for 0.19.0? |
15:23:32 | federico3 | enthus1ast: Nim version? |
15:24:16 | FromGitter | <kaushalmodi> That way all the package developers who don't use Nim devel at least fix backward incompatible changes like isNil before a larger user crowd is faced with those broken packages |
15:24:31 | FromGitter | <kaushalmodi> federico3: devel |
15:25:07 | FromGitter | <kaushalmodi> Araq: RC1 -> release candidate 1 |
15:25:50 | Araq | no, this is getting ridiculous |
15:26:07 | Araq | "release candidates" for some odd version that should have been v1 5 years ago |
15:26:29 | Araq | I'm willing to publish 0.19.2 soon after though |
15:26:45 | enthus1ast | federico3, just pulled in the freshest |
15:26:49 | Araq | but I've ported plenty of my own code to 0.19 without much hickups |
15:26:59 | * | gweedo7676 joined #nim |
15:27:20 | FromGitter | <kaushalmodi> yeah, the only concern is that many people still don't know of the breaking nil string change |
15:28:02 | Araq | there is --nilseqs:on |
15:28:15 | FromGitter | <kaushalmodi> yeah |
15:28:17 | Araq | and it works |
15:28:21 | enthus1ast | where can i read what 0.19 brings? |
15:28:22 | * | gweedo7676 quit (Read error: Connection reset by peer) |
15:28:25 | * | ritchie_ joined #nim |
15:28:33 | Araq | there is also --laxStrings:on and it works |
15:29:13 | FromGitter | <kaushalmodi> The problem is that people don't know that they should use that switch |
15:29:17 | FromGitter | <kaushalmodi> related issue: https://github.com/nim-lang/Nim/issues/9074 |
15:29:37 | Araq | they do know, it's in the changelog |
15:29:53 | * | Jesin quit (Quit: Leaving) |
15:29:55 | enthus1ast | https://github.com/nim-lang/Nim/blob/devel/changelog.md |
15:29:59 | FromGitter | <kaushalmodi> should the deprecated message be more advertised? and also the error message suggest using that switch temporarily till the package gets fixed? |
15:30:39 | * | mr_noob1 quit (Quit: Page closed) |
15:31:29 | FromDiscord | <Shield> i'm also curious about the changelog |
15:32:12 | FromGitter | <kaushalmodi> Shield: See the above link that enthus1ast posted |
15:33:30 | Araq | I don't know how that "deprecated message be more advertised"? |
15:33:37 | Araq | what do you mean? |
15:33:56 | FromGitter | <kaushalmodi> Araq: See that issue |
15:34:35 | FromGitter | <kaushalmodi> isNil is missing a deprecated message in bold. It should have looked something like this: https://nim-lang.github.io/Nim/system.html#xlen,string |
15:34:35 | federico3 | perhaps more descriptive: Error: isNil is deprecated. Replace it with "== nil" |
15:34:54 | FromGitter | <kaushalmodi> federico3: that wouldn't work either |
15:34:56 | FromGitter | <kaushalmodi> strings cannot be nil |
15:35:14 | FromGitter | <kaushalmodi> what it should be replaced with depends on the context |
15:35:26 | * | ft27 joined #nim |
15:35:30 | FromGitter | <kaushalmodi> it could be replaced with `""`, or may be even `options[string]` |
15:35:37 | federico3 | ah! One reason more to give context-dependent error messages |
15:35:56 | FromGitter | <kaushalmodi> the context can be known only by humans |
15:36:06 | Araq | isNil is not deprecated, it's not allowed anymore |
15:36:21 | FromGitter | <kaushalmodi> Araq: I meant to give that as an example |
15:36:33 | FromGitter | <kaushalmodi> point is that the docs don't highlight that error at all! |
15:36:38 | FromGitter | <kaushalmodi> see the screenshot in that issue |
15:36:53 | FromGitter | <kaushalmodi> if someone sees that error on the terminal, and visits the docs, they will be confused |
15:37:11 | FromGitter | <kaushalmodi> they wouldn't know to fish for the "error" pragma *after* clicking on the ellipsis |
15:37:20 | enthus1ast | afaik isNil does not echo the line number where the nil check is |
15:37:26 | * | Torro joined #nim |
15:37:32 | enthus1ast | afaik it points to system.nim |
15:37:48 | enthus1ast | ah |
15:37:50 | enthus1ast | nevermind |
15:38:03 | Araq | kaushalmodi: it's a good point but I don't know what to do. |
15:38:03 | FromGitter | <kaushalmodi> the `isNil` on devel looks like this: |
15:38:16 | FromGitter | <kaushalmodi> https://user-images.githubusercontent.com/3578197/46038011-f3778c80-c0d7-11e8-94bf-2d87bc9edb48.png |
15:38:44 | Araq | I would change the docgen and re-upload the docs but then *not* the release was used to build the "Latest stable" docs |
15:39:57 | * | ft27 quit (Remote host closed the connection) |
15:39:59 | FromGitter | <kaushalmodi> Araq: I am not understanding the complication.. would it not be possible to have error pragma print an error in bold in the docs, as the deprecated pragma is printing this (example): "Deprecated since version 0.18.1. Use len() instead. "? |
15:40:18 | planetis[m] | hey, should the `name=` proc in macros override the export marker? |
15:40:41 | Araq | planetis[m]: ha, good question. probably not |
15:41:31 | Araq | kaushalmodi, I've already tagged v0.19, that's the problem |
15:42:24 | * | ritchie_ quit (Quit: Leaving) |
15:42:50 | FromGitter | <kaushalmodi> ah ok, saw that you did that 8 mins ago :P |
15:43:10 | FromGitter | <kaushalmodi> may be the docs get fixed in a quick followup 0.19.1 release? |
15:43:16 | Araq | it's always the same, polish, polish, polish required for everything and in the meantime people wonder why the fuck 'destructors' are STILL not ready |
15:44:41 | Araq | I would use 0.19.1 to rebuild the docs for 0.19.0 but people hate when I do that |
15:45:00 | FromGitter | <kaushalmodi> why would people hate? |
15:45:21 | Araq | https://github.com/nim-lang/Nim/issues/9063 |
15:45:25 | FromGitter | <kaushalmodi> as docgen is tied with Nim, it makes sense to tag new release if you fix the docgen |
15:46:09 | Araq | once 'nightlies' work I can release much more often but travis messages like "nothing new, skipping deploy step" make it completely untrustworthy |
15:46:43 | Araq | not to mention that it doesn't understand git tags and appveyor only understands git tags or something like that |
15:47:11 | FromGitter | <kaushalmodi> huh? My experiment with nightly docs worked fine |
15:47:24 | Araq | docs are not binaries |
15:47:32 | FromGitter | <kaushalmodi> also tag based deployment works fine using Travis.. |
15:47:36 | FromGitter | <kaushalmodi> that's with binaries |
15:48:05 | FromGitter | <kaushalmodi> See https://github.com/kaushalmodi/hello_musl/blob/master/.travis.yml, https://github.com/kaushalmodi/hello_musl/releases |
15:48:09 | FromGitter | <kaushalmodi> I cannot comment on Appveyor |
15:48:25 | Araq | well I have a special repo for nightlies, it's not part of the Nim core repo |
15:48:35 | Araq | because that caused the builds to time-out |
15:48:57 | FromGitter | <kaushalmodi> wouldn't forced updates work? |
15:49:01 | Araq | and it's not required for every commit anyway, "nightly" would be fine |
15:49:45 | Araq | probably something will eventually work but I'm really bad at these things and my time is much better spent elsewhere |
15:49:57 | Araq | so please be my guest, look at nightlies and fix it |
15:50:05 | Araq | you can fork it and play with it |
15:50:12 | FromGitter | <kaushalmodi> makes sense, will have a look later |
15:50:41 | * | acute11 joined #nim |
15:50:44 | Araq | I think my scripts are complete to 90% |
15:54:27 | * | acute11 quit (Remote host closed the connection) |
16:00:53 | * | skellock quit (Ping timeout: 245 seconds) |
16:05:22 | * | darithorn joined #nim |
16:08:19 | * | Jesin joined #nim |
16:09:29 | * | leru joined #nim |
16:09:49 | * | nsf quit (Quit: WeeChat 2.2) |
16:12:22 | * | skellock joined #nim |
16:15:56 | * | borbyu joined #nim |
16:15:59 | * | Guest31642 joined #nim |
16:16:13 | * | DrMcCoy15 joined #nim |
16:16:54 | * | Vigdis2 joined #nim |
16:18:11 | * | borbyu quit (Read error: Connection reset by peer) |
16:18:27 | * | Jesin quit (Quit: Leaving) |
16:18:54 | * | Vigdis2 quit (Remote host closed the connection) |
16:19:17 | * | halirc quit (Quit: Leaving) |
16:19:24 | * | Jesin joined #nim |
16:19:48 | * | Guest31642 quit (Remote host closed the connection) |
16:21:23 | * | DrMcCoy15 quit (Ping timeout: 252 seconds) |
16:24:41 | * | Sembei quit (Ping timeout: 252 seconds) |
16:24:44 | * | MyMind joined #nim |
16:26:49 | * | jemarch10 joined #nim |
16:28:06 | * | strong_ joined #nim |
16:28:13 | * | chris|16 joined #nim |
16:28:41 | * | strong_ quit (Remote host closed the connection) |
16:29:56 | * | noonien quit (Quit: Connection closed for inactivity) |
16:30:25 | * | jemarch10 quit (Remote host closed the connection) |
16:31:15 | * | chris|16 quit (Remote host closed the connection) |
16:32:34 | * | Guest85318 joined #nim |
16:34:03 | * | Guest85318 quit (Remote host closed the connection) |
16:35:42 | * | hfp_work joined #nim |
16:42:04 | * | hfp_work quit (Remote host closed the connection) |
16:47:38 | FromGitter | <alehander42> Araq, is something like typeSectionMacro possible? e.g. to have a way to define a compile time macro which generates code to be included in a type section and after the end of the section |
16:47:57 | FromGitter | <alehander42> (possible to add eventually to the compiler from a design viewpoint) |
16:48:11 | FromGitter | <alehander42> e.g. you invoke your macro with |
16:49:19 | FromGitter | <alehander42> ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=5babb88feba8e60bc64ba9dc] |
16:49:46 | shashlick_ | need some c2nim help |
16:49:47 | shashlick_ | https://github.com/facebookresearch/fastText/blob/a5d22aba45f38c12d195ecc6c3e448aa3690fbbd/src/fasttext.h#L46 |
16:49:59 | shashlick_ | what do I change that line to that c2nim will like? |
16:50:15 | shashlick_ | Error: identifier expected, but got: { |
16:53:39 | * | avium1 joined #nim |
16:53:39 | * | lari joined #nim |
16:55:49 | * | lari quit (Remote host closed the connection) |
16:56:02 | * | zveda17 joined #nim |
16:56:24 | * | zveda17 quit (Remote host closed the connection) |
16:57:09 | * | avium1 quit (Remote host closed the connection) |
16:57:31 | FromGitter | <mratsim> isn’t that something that is changed by the preprocessor? |
16:59:19 | shashlick_ | well, i'm trying to wrap it so trying to convert to equivalent nim |
16:59:38 | shashlick_ | for now, i'm changing `tokenCount_{}` to `tokenCount_` but i'll bet it doesn't mean the same thing |
17:07:02 | * | fatalbit5 joined #nim |
17:10:19 | * | TotallyNotKim17 joined #nim |
17:10:34 | * | Trustable quit (Remote host closed the connection) |
17:11:25 | * | fatalbit5 quit (Remote host closed the connection) |
17:11:36 | FromGitter | <bung87> can’t find the document about the suffix `{}` |
17:12:02 | * | TotallyNotKim17 quit (K-Lined) |
17:12:08 | * | noonien joined #nim |
17:13:54 | FromGitter | <bung87> seems like a initial |
17:15:46 | FromGitter | <bung87> http://aristeia.com/EC++11-14/parens%20or%20braces%202014-03-18.pdf |
17:18:16 | shashlick_ | bung87: making decent progress |
17:19:06 | * | Richlv20 joined #nim |
17:19:12 | FromGitter | <bung87> are you the guy at nimgen channel ? |
17:19:27 | shashlick_ | yep |
17:19:36 | * | Ysblokje joined #nim |
17:20:29 | FromGitter | <bung87> ah , sounds good, I thought that might be difficult if it’s relys on much libs. |
17:21:25 | * | Richlv20 quit (Remote host closed the connection) |
17:21:52 | * | grepper3 joined #nim |
17:23:59 | * | Ysblokje quit (Read error: Connection reset by peer) |
17:24:22 | * | Serus joined #nim |
17:24:50 | FromGitter | <bung87> I’d like port some others libs depends on fastext, since I think it gets good quality for some task. |
17:25:19 | * | Serus quit (K-Lined) |
17:25:55 | * | grepper3 quit (Remote host closed the connection) |
17:27:07 | * | lumidify joined #nim |
17:27:15 | * | lumidify quit (Remote host closed the connection) |
17:29:19 | * | esainane4 joined #nim |
17:29:38 | shashlick_ | so far so good |
17:29:46 | shashlick_ | but i've had limited luck wrapping c++ libs |
17:30:55 | * | esainane4 quit (Remote host closed the connection) |
17:32:44 | FromGitter | <bung87> I’m waiting here if you need someone to talk with, I just got a little QT framework experience in c++. |
17:32:49 | * | tagomago2 joined #nim |
17:35:31 | * | enthus1ast quit (Ping timeout: 260 seconds) |
17:37:31 | * | tagomago2 quit (Remote host closed the connection) |
17:38:36 | * | Jesin quit (Quit: Leaving) |
17:40:03 | * | Guest46751 joined #nim |
17:41:23 | * | Guest46751 quit (Remote host closed the connection) |
17:42:16 | shashlick_ | Mostly minor stuff getting imports right, etc |
17:42:28 | shashlick_ | Main challenge is to get an example to compile |
17:43:12 | * | Jesin joined #nim |
17:43:12 | shashlick_ | Considering you've used this lib before, you might have better luck handling that |
17:44:16 | shashlick_ | Like I got nuklear wrapped and compile cleanly but AlexMax had multiple changes to actually get it working in an example |
17:46:15 | * | Newa10 joined #nim |
17:46:17 | * | Torro quit (Quit: -bye) |
17:48:04 | FromGitter | <bung87> yeah, I have a repo use its language detetion feature, https://github.com/bung87/whatlangid I can use the language model test it. |
17:48:41 | planetis[m] | boom its done: https://github.com/b3liever/protocoled opinions? |
17:48:46 | * | Newa10 quit (Read error: Connection reset by peer) |
17:50:55 | * | feigned4 joined #nim |
17:53:22 | * | Guest16583 joined #nim |
17:53:58 | * | feigned4 quit (Remote host closed the connection) |
17:55:05 | FromGitter | <bung87> it’s like AClass implements Bclass ? |
17:56:10 | FromGitter | <bung87> like in java or typescript |
17:57:17 | * | Guest16583 quit (Remote host closed the connection) |
18:00:00 | * | rockcavera quit (Remote host closed the connection) |
18:01:25 | * | xet7 quit (Quit: Leaving) |
18:01:46 | * | xet7 joined #nim |
18:02:49 | * | xet7 quit (Remote host closed the connection) |
18:02:53 | * | annalee_ joined #nim |
18:03:16 | * | annalee_ quit (Remote host closed the connection) |
18:03:23 | * | xet7 joined #nim |
18:05:03 | * | tay_ joined #nim |
18:09:16 | planetis[m] | well and that, read the readme on how it works |
18:14:54 | * | rockcavera joined #nim |
18:16:04 | * | skellock quit (Ping timeout: 240 seconds) |
18:17:34 | FromGitter | <bung87> good night,it’s 2:17 am now. |
18:19:59 | planetis[m] | night night! |
18:25:04 | planetis[m] | if i have time i will do another one that generates code like `interfaced` |
18:28:59 | * | tay_ quit (Quit: Leaving) |
18:35:05 | * | lvgx27 joined #nim |
18:36:31 | * | Jesin quit (Quit: Leaving) |
18:37:39 | * | lvgx27 quit (Read error: Connection reset by peer) |
18:39:37 | * | witti5 joined #nim |
18:39:53 | * | nsf joined #nim |
18:40:27 | * | Jesin joined #nim |
18:41:37 | Araq | shashlick_: just remove the {} ? |
18:43:00 | shashlick_ | araq: I did that, converts fine now but no idea if it will work but will deal with that later |
18:43:10 | shashlick_ | more immediate problem is https://en.cppreference.com/w/cpp/utility/pair |
18:43:48 | shashlick_ | ``` |
18:43:58 | shashlick_ | ``` |
18:43:59 | shashlick_ | proc predict*(this: var Model; a3: vect[int32]; a4: int32; a5: real; |
18:44:00 | shashlick_ | a6: var vect[pair[real, int32]]) {.stdcall, importcpp: "predict", |
18:44:02 | shashlick_ | header: headermodel.} |
18:44:03 | shashlick_ | ``` |
18:44:15 | * | witti5 quit (Remote host closed the connection) |
18:44:23 | shashlick_ | that `pair[real, int32]` needs to be declared |
18:44:35 | shashlick_ | i have ` pair {.importc: "std::pair", header: "utility".}[T, U] = object` |
18:45:12 | shashlick_ | but it doesn't work, I get: |
18:45:13 | shashlick_ | ```Error: cannot instantiate pair |
18:45:15 | shashlick_ | got: <void, type int32> |
18:45:16 | shashlick_ | but expected: <T, U> |
18:45:17 | shashlick_ | ``` |
18:48:21 | * | japanoise3 joined #nim |
18:50:05 | Araq | 'real'? it's called 'float' |
18:51:14 | shashlick_ | there's a typedef - https://github.com/facebookresearch/fastText/blob/master/src/real.h |
18:52:35 | shashlick_ | it gets converted to `type real* = cfloat` |
18:54:22 | shashlick_ | but nim doesn't like it, if I change real to float, it works |
18:55:13 | Araq | ok... |
18:56:39 | shashlick_ | interesting - if the type is imported from another file (real.nim), it doesn't work, but if I just add the type to the same file, it works |
18:57:34 | * | japanoise3 quit (Ping timeout: 272 seconds) |
19:02:32 | * | kiltzman13 joined #nim |
19:03:24 | * | Mangy_Dog joined #nim |
19:03:25 | * | endre27 joined #nim |
19:03:52 | * | xace_ quit (Ping timeout: 246 seconds) |
19:04:16 | * | endre27 quit (Remote host closed the connection) |
19:05:00 | * | xace joined #nim |
19:07:04 | * | Mangy_Dog quit (Remote host closed the connection) |
19:07:17 | * | kiltzman13 quit (Remote host closed the connection) |
19:11:11 | * | ritchie_ joined #nim |
19:14:02 | * | Comnenus1 joined #nim |
19:14:47 | shashlick_ | @bung87: I think it is working now, will post on github for you to take it further |
19:15:11 | * | Comnenus1 quit (Remote host closed the connection) |
19:17:38 | FromGitter | <bung87> wow! thanks! I will check it at day time. |
19:17:57 | * | nullptr|24 joined #nim |
19:19:07 | * | nullptr|24 quit (Remote host closed the connection) |
19:19:22 | * | ktch_ joined #nim |
19:20:31 | * | leru quit (Ping timeout: 260 seconds) |
19:20:34 | * | SkillyOnFire5 joined #nim |
19:21:27 | * | SkillyOnFire5 quit (Remote host closed the connection) |
19:21:38 | * | the_real_plumps2 joined #nim |
19:22:40 | * | rattboi13 joined #nim |
19:22:41 | * | Cthulhon26 joined #nim |
19:24:12 | * | ktch_ quit (Remote host closed the connection) |
19:25:22 | * | Cthulhon26 quit (Read error: Connection reset by peer) |
19:25:45 | FromGitter | <bung87> it will post here right ? https://github.com/genotrance/nimfastText |
19:26:13 | * | rattboi13 quit (Remote host closed the connection) |
19:26:20 | * | skellock joined #nim |
19:26:24 | * | the_real_plumps2 quit (Remote host closed the connection) |
19:26:25 | shashlick_ | yep - just pushed |
19:27:53 | FromGitter | <bung87> ok I think I’ll give a simple test for now, since I’m not sleep well. |
19:28:17 | shashlick_ | only tested on Windows, will check on linux right now |
19:32:49 | * | chowmeined29 joined #nim |
19:33:02 | * | unixman18 joined #nim |
19:35:51 | * | zyk14 joined #nim |
19:36:23 | * | chowmeined29 quit (Remote host closed the connection) |
19:38:34 | * | zyk14 quit (Remote host closed the connection) |
19:39:01 | shashlick_ | pushed some fixes for Linux |
19:40:31 | * | unixman18 quit (Ping timeout: 250 seconds) |
19:41:10 | * | francisl joined #nim |
19:42:17 | * | KBme7 joined #nim |
19:43:39 | * | KBme7 quit (Remote host closed the connection) |
19:46:06 | * | Pisuke joined #nim |
19:47:27 | * | MyMind quit (Ping timeout: 240 seconds) |
19:49:06 | * | ssbarnea3 joined #nim |
19:50:20 | planetis[m] | what do you think of my macro by the way? |
19:50:37 | * | Guest51823 joined #nim |
19:51:14 | FromGitter | <kaushalmodi> Araq: No one asked this :) Why isn't Nim 0.19.0 announced yet? (release notes, blog post, etc.) Are you planning to do that tomorrow? |
19:52:02 | * | ssbarnea3 quit (Read error: Connection reset by peer) |
19:52:18 | FromGitter | <bung87> `../../../.nimble/pkgs/nimfastText-0.1.0/nimfastText/dictionary.nim(61, 56) Error: invalid token: _ (\95)` |
19:52:41 | FromGitter | <bung87> ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=5babe389eba8e60bc64cd684] |
19:52:52 | * | Guest51823 quit (Read error: Connection reset by peer) |
19:53:41 | shashlick_ | which os |
19:58:25 | shashlick_ | how is `nullptr` changing into `__get_nil_t()` for you |
19:58:34 | * | skellock quit (Ping timeout: 240 seconds) |
19:59:44 | FromDiscord | <Shield> I thought you'll release 0.18.1 |
20:00:09 | FromGitter | <bung87> ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=5babe549cdc501317259f280] |
20:00:29 | planetis[m] | comeon congratulate me already, it is pretty cool ;) |
20:01:59 | FromGitter | <kaushalmodi> @bung87 You need to update devel :) |
20:03:28 | shashlick_ | @bung87: you're on Mac? don't have a way to test that |
20:03:46 | FromGitter | <bung87> is that true? just two days ago version. |
20:03:48 | * | CC6610 joined #nim |
20:03:58 | FromGitter | <bung87> I’m on Mac |
20:04:19 | FromGitter | <bung87> anyway I will try update nim |
20:04:30 | * | chaky|work8 joined #nim |
20:04:37 | FromGitter | <kaushalmodi> ```code paste, see link``` ⏎ ⏎ *Why would I lie? :)* [https://gitter.im/nim-lang/Nim?at=5babe6558196693171bc9343] |
20:04:55 | * | alphageek joined #nim |
20:05:33 | FromGitter | <kaushalmodi> @bung87 btw if you build just 2 days back, there's not a big difference between then and today, just few commits inbetween and version change. |
20:05:35 | FromGitter | <bung87> I just thought some thing about nil done days ago |
20:05:39 | * | alphageek quit (Remote host closed the connection) |
20:06:07 | FromGitter | <kaushalmodi> the nil string change happened a month or more ago, I think |
20:06:17 | FromGitter | <Vindaar> @bung87 the issue is that `__get_nil_t` is an invalid Nim identifier (must not start with an underscore). Or are you talking about something else? |
20:07:05 | shashlick_ | Need to change that to nil |
20:07:38 | * | chaky|work8 quit (Remote host closed the connection) |
20:07:39 | FromGitter | <bung87> yeah , anyway update it then check others |
20:08:33 | * | CC6610 quit (Remote host closed the connection) |
20:10:30 | * | SitiSchu joined #nim |
20:11:02 | FromGitter | <bung87> ok ,that’s old version nimble installation problem. |
20:12:35 | * | nox_x22 joined #nim |
20:16:29 | * | nox_x22 quit (Remote host closed the connection) |
20:21:02 | * | SitiSchu quit (Quit: Leaving) |
20:21:23 | * | Perkol quit (Remote host closed the connection) |
20:22:22 | * | emsal joined #nim |
20:22:58 | planetis[m] | anyway, room is pretty empty |
20:23:46 | * | shashlick_ quit (Remote host closed the connection) |
20:23:47 | * | emsal quit (Remote host closed the connection) |
20:23:52 | FromGitter | <bung87> what’s the command to regen the nim files? |
20:24:04 | * | shashlick joined #nim |
20:24:39 | shashlick | have you checked out the repo? |
20:24:44 | shashlick | then just `nimble install -y` |
20:25:51 | * | francisl quit (Quit: francisl) |
20:26:37 | FromGitter | <kaushalmodi> Has anything changed with borrow pragma? |
20:26:47 | FromGitter | <kaushalmodi> this used to work: ⏎ ⏎ ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=5babeb8798245f4ae08adde2] |
20:27:16 | FromGitter | <bung87> ok gen the same thing, manual change it check others. |
20:27:32 | * | SpartanPalace joined #nim |
20:28:00 | shashlick | are you still seeing the __get_nil_t()? |
20:28:44 | FromGitter | <bung87> yeah , I got same thing, just manually change it |
20:29:22 | * | Tuju26 joined #nim |
20:29:53 | * | SpartanPalace quit (Remote host closed the connection) |
20:31:13 | * | nsf quit (Quit: WeeChat 2.2) |
20:32:05 | * | Tuju26 quit (Remote host closed the connection) |
20:36:48 | * | skellock joined #nim |
20:39:12 | shashlick | just pushed a fix for you, please check |
20:46:25 | * | shadowbane quit (Remote host closed the connection) |
20:46:29 | FromGitter | <bung87> `fasttext.h:14:10: fatal error: 'atomic' file not found ⏎ ⏎ #include <atomic>` ⏎ ⏎ ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=5babf0258ddf5867dc7b28dd] |
20:48:20 | * | SenasOzys joined #nim |
20:48:43 | * | shadowbane joined #nim |
20:49:55 | FromGitter | <vivekimsit> Hello guys, I just almost finished my first nim lib |
20:49:56 | FromGitter | <vivekimsit> https://github.com/vivekimsit/pretty-bytes |
20:50:11 | FromGitter | <vivekimsit> please feel free to give me some feedback |
20:50:35 | FromGitter | <vivekimsit> I also tried to put it in nimble but got errors |
20:51:16 | shashlick | bung87: not sure, never used clang before |
20:52:54 | FromGitter | <bung87> ok I use llvm_gcc but raise ⏎ ⏎ ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=5babf1a641177e0bc7afb9b2] |
20:55:04 | shashlick | might need -std=c++0x |
20:55:08 | shashlick | per the makefile |
20:57:05 | * | oats14 joined #nim |
20:57:18 | * | tribly quit (Quit: WeeChat 2.2) |
20:58:17 | * | tribly joined #nim |
21:00:41 | FromGitter | <bung87> how you compile and run the test file ? |
21:01:01 | * | oats14 quit (Read error: Connection reset by peer) |
21:01:07 | FromGitter | <bung87> I tried clang gcc llvm_gcc |
21:03:12 | shashlick | nimble test |
21:05:18 | cavariux | Is there any way to install the dependencies of a lib/bin without running it? |
21:05:24 | cavariux | like in npm the `npm install` ? |
21:05:39 | FromGitter | <vivekimsit> Is there anything equivalent to `any` of typescript in nim? |
21:06:24 | cavariux | You could either use any or a generic type |
21:06:29 | FromGitter | <bung87> ok I got it `~/Nim/bin/nim cpp --cc:gcc -t:-std=c++0x -r tests/testlang.nim` |
21:06:56 | * | Whisket10 joined #nim |
21:07:09 | FromGitter | <vivekimsit> so `any` is a valid keyword in nim? |
21:07:22 | * | ritchie_ quit (Quit: Leaving) |
21:07:58 | cavariux | vivekimsit yep, you can look more info at https://nim-lang.org/docs/typeinfo.html |
21:08:20 | FromGitter | <vivekimsit> nice |
21:09:31 | * | francisl joined #nim |
21:09:38 | FromGitter | <zacharycarter> but it's not a concrete type right? |
21:09:54 | FromGitter | <zacharycarter> I think the `any` equivalent from TypeScript would be `JsObject` |
21:10:18 | shashlick | @bung87: so is it working for you now? |
21:10:23 | cavariux | Oh, if you want to interact with a js backend I would say JsObject but if you want to port a lib it would be Any |
21:10:46 | FromGitter | <zacharycarter> ah gotcha |
21:10:51 | FromGitter | <zacharycarter> like JS to C backend? |
21:11:04 | cavariux | Like Nim to Js backend |
21:11:09 | FromGitter | <zacharycarter> Oh I see |
21:11:47 | * | Whisket10 quit (Ping timeout: 252 seconds) |
21:11:48 | FromGitter | <zacharycarter> going to start resuming work on my JS libs this evening - been in a massive funk the past two days because of what went on at work |
21:11:59 | FromGitter | <zacharycarter> but I need to build myself a virtual resume - so I need to finish these libraries anyway |
21:15:15 | FromGitter | <bung87> @shashlick compiled pass but I can’t find the right arg pass to `loadModel` |
21:16:34 | FromGitter | <zacharycarter> @bung87 what are you working on again? |
21:16:53 | shashlick | wrapper for fastText |
21:17:12 | FromGitter | <zacharycarter> ah |
21:17:24 | shashlick | I just wrapped it using nimgen, he's trying to use it now |
21:17:26 | shashlick | https://github.com/genotrance/nimfastText |
21:18:43 | * | Vladar quit (Remote host closed the connection) |
21:19:14 | FromGitter | <zacharycarter> hrm - I haven't played with Nimgen in a while - I've been porting more libs rather than actually binding to them lately |
21:19:23 | FromGitter | <zacharycarter> but I plan to put it through it's paces when I port bullet3 later thi syear |
21:20:12 | FromGitter | <zacharycarter> I just found it easier when I last worked with it - to do the bindings myself because I knew c2nim better than nimgen and it was easier to just use c2nim rather than learn a whole new way of attacking a problem |
21:20:12 | FromGitter | <vivekimsit> any idea how to check is an object is not null? |
21:20:19 | FromGitter | <zacharycarter> objects cannot be nil |
21:20:24 | FromGitter | <vivekimsit> I am just trying to do TDD with nim |
21:20:37 | FromGitter | <vivekimsit> I am writing a lib to parse ini |
21:20:47 | FromGitter | <zacharycarter> there's already an ini parser in Nim pretty much |
21:20:49 | FromGitter | <zacharycarter> parsecfg module |
21:20:52 | FromGitter | <bung87> https://github.com/Nim-NLP/nimfastText/commit/f763c4305ad8933f1b000c5ad47edfcdac8c1e30 |
21:20:55 | FromGitter | <vivekimsit> my first test is to check if there is something returned from the method |
21:21:12 | FromGitter | <vivekimsit> yes, but I learn most while doing |
21:21:15 | FromGitter | <zacharycarter> okay - there's been a lot of internal debate about this in the community |
21:21:26 | FromGitter | <zacharycarter> objects can't be null - they're allocated on the stack not the heap |
21:21:43 | FromGitter | <zacharycarter> traditionally in C - you'd attack this with returning a non-zero number or something - a negative one or something like that from the procedure |
21:21:52 | FromGitter | <zacharycarter> or an uninitialized struct or something like that |
21:21:53 | FromGitter | <vivekimsit> I read that they can be allocated on the heap as well |
21:22:00 | FromGitter | <zacharycarter> ref objects can |
21:22:10 | FromGitter | <zacharycarter> but not just pain objects - they're analogous to structs in C |
21:22:23 | FromGitter | <vivekimsit> well this distinction of ref object and object is completely new to me |
21:22:26 | * | tribly quit (Quit: WeeChat 2.2) |
21:22:30 | FromGitter | <zacharycarter> let me find you a good explanation then |
21:22:39 | FromGitter | <vivekimsit> and I don't know C that well |
21:22:50 | FromGitter | <zacharycarter> https://nim-by-example.github.io/types/objects/ - so here's kind of a high level overview |
21:23:00 | shashlick | @zacharycarter: well, nimgen is all about automation so the main reason i push it is so that libs can keep up with upstream changes |
21:23:00 | FromGitter | <vivekimsit> I am more of a JS, Python and Java guy |
21:23:15 | shashlick | did you get a chance to try out nimnuklear? @AlexMax spent some time getting it functional |
21:23:24 | FromGitter | <vivekimsit> @zacharycarter are you into TDD? |
21:23:27 | FromGitter | <zacharycarter> https://peterme.net/nim-types-originally-a-reddit-reply.html |
21:23:49 | FromGitter | <vivekimsit> cool |
21:23:55 | FromGitter | <vivekimsit> into my todo :D |
21:24:04 | FromGitter | <zacharycarter> @vivekimsit - no not really - the company I work at is a fan (even though no one actually does it at work) - but I think it has value in certain places |
21:24:43 | FromGitter | <vivekimsit> so, I haven't implemented my method yet |
21:24:51 | FromGitter | <vivekimsit> its like a stub function right now |
21:24:55 | FromGitter | <zacharycarter> mmhmm |
21:25:00 | FromGitter | <vivekimsit> I need to pass my test |
21:25:11 | FromGitter | <vivekimsit> I have declared the return type as table |
21:25:23 | FromGitter | <zacharycarter> can you post a gist maybe? |
21:25:29 | FromGitter | <zacharycarter> or something similar? |
21:25:29 | FromGitter | <vivekimsit> but I am not concerned about its content right now |
21:25:39 | FromGitter | <zacharycarter> sure - are you using the unittest module? |
21:25:40 | FromGitter | <vivekimsit> wait |
21:26:34 | * | tribly joined #nim |
21:31:56 | FromGitter | <bung87> https://pastebin.com/qbyLsLQe |
21:32:29 | FromGitter | <vivekimsit> @zacharycarter here it is ⏎ ⏎ https://github.com/vivekimsit/ini |
21:32:41 | FromGitter | <zacharycarter> good looks - I will have a look now |
21:33:19 | FromGitter | <vivekimsit> its almost new :p |
21:33:55 | * | zachcarter joined #nim |
21:34:37 | FromGitter | <zacharycarter> :) it's always fun to have new community members to try and help! |
21:35:11 | * | defragger1 joined #nim |
21:35:51 | shashlick | bung87: what's in your test file |
21:36:02 | shashlick | might be best to follow what's in the http://main.cc file example |
21:36:22 | * | zachcarter quit (Client Quit) |
21:36:34 | * | zachcarter joined #nim |
21:37:03 | FromGitter | <vivekimsit> thanks |
21:37:31 | FromGitter | <bung87> https://github.com/Nim-NLP/nimfastText/blob/lang_test/tests/testlang.nim just try to load model file |
21:38:40 | * | defragger1 quit (Remote host closed the connection) |
21:40:42 | FromGitter | <bung87> and it throw `note: candidate function not viable: no known conversion from 'NimStringDesc *' to 'const std::string'` |
21:40:52 | shashlick | bung87: try `var ft: FastText` instead |
21:44:26 | FromGitter | <bung87> hmm same thing |
21:48:46 | * | francisl quit (Quit: francisl) |
21:49:14 | FromGitter | <zacharycarter> @vivekimsit - I started a job complaint thread in off-topic asking Nim members for recommendations about work - so I've taken myself away from your problem - but i haven't forgotten. I will reply asap. |
21:51:09 | FromGitter | <bung87> @zacharycarter hello |
21:51:19 | FromGitter | <zacharycarter> @bung87 Hi |
21:52:47 | * | urluck joined #nim |
21:53:01 | shashlick | @bung87: can you post that ftz file? |
21:53:55 | FromGitter | <bung87> https://github.com/Nim-NLP/nimfastText/blob/lang_test/tests/testlang.nims it’s here if you r on linux you will get it automaticlly |
21:54:00 | FromGitter | <vivekimsit> @zacharycarter np, I am myself trying to job hunt too :) |
21:54:19 | FromGitter | <vivekimsit> btw I am making it OOPsy now |
21:55:24 | shashlick | no the langModel file you are openeing |
21:55:27 | shashlick | it's not in source control |
21:55:58 | FromGitter | <bung87> https://s3-us-west-1.amazonaws.com/fasttext-vectors/supervised_models/lid.176.ftz |
21:56:38 | shashlick | okay, got the link from the nims file, sorry |
21:57:09 | * | urluck left #nim (#nim) |
21:57:28 | FromGitter | <bung87> I start to thinking it compile with nim cpp , what happen when other project depens on it ? |
22:00:25 | shashlick | bung87: your problem is that loadModel() expects std::string but you are providing a nim string |
22:00:39 | shashlick | i don't know how to convert/cast from nim string to that |
22:00:40 | FromGitter | <zacharycarter> @vivekimsit OOP is a dicey road w/ Nim |
22:01:07 | FromGitter | <zacharycarter> not that you can't write OOP with Nim - but it really doesn't mesh well with Nim's design |
22:01:17 | FromGitter | <zacharycarter> Nim was designed with imperative coding in mind |
22:01:31 | FromGitter | <bung87> so what the `proc loadModel*(this: var FastText; a2: string)` does ? |
22:01:35 | FromGitter | <zacharycarter> and thus classes / objects are not treated the way they are in Java / C# etc |
22:01:56 | FromGitter | <bung87> the type `string ` does not make effect ? |
22:02:01 | * | Mitar18 joined #nim |
22:02:48 | FromGitter | <bung87> if as it that means all the interface needs a type converter... |
22:03:29 | shashlick | anyone knows how to convert a nim string into std::string |
22:03:40 | shashlick | ya - c2nim converted std::string to nim string but that might not be right or functional |
22:05:00 | * | superbia joined #nim |
22:05:14 | superbia | how to quickly remove choosenim from my linux system? |
22:05:25 | FromGitter | <bung87> hmm, I’m worried about the probability of this project gets works... |
22:06:20 | * | Mitar18 quit (Remote host closed the connection) |
22:06:44 | FromGitter | <zacharycarter> well that's always the problem with automation |
22:07:04 | FromGitter | <zacharycarter> but at least if you run the automated process frequently enough - you should catch and be able to remedy |
22:08:59 | shashlick | bung87: shouldn't be too hard |
22:09:05 | shashlick | just takes time |
22:09:43 | FromGitter | <bung87> I just thought nimgen has examples of cpp wrap ,found the author is you... |
22:09:45 | AlexMax | superbia: I think choosenim installs itself to ~/.choosnim |
22:09:52 | AlexMax | and there's also some stuff in ~/.nimble too I think |
22:10:12 | AlexMax | erm |
22:10:14 | superbia | so delete those two folders, anything else? |
22:10:15 | AlexMax | ~/.choosenim |
22:10:32 | AlexMax | was missing an e there |
22:10:42 | AlexMax | I think that's it - if you care, you can remove it from your PATH |
22:11:24 | FromGitter | <bung87> atleast we can dig something from nim source |
22:11:31 | superbia | in .bashrc just ? |
22:12:40 | * | UFC17 joined #nim |
22:13:41 | superbia | removed, thank you AlexMax |
22:14:05 | FromGitter | <bung87> https://github.com/nim-lang/Nim/blob/27b081d1f77604ee47c886e69dbc52f53ea3741f/tests/exception/tcpp_imported_exc.nim it defined a new type `std_string* ` |
22:14:48 | * | UFC17 quit (Remote host closed the connection) |
22:15:40 | FromGitter | <bung87> which can contruct from cstring |
22:15:59 | shashlick | bung87: great - let me update the generation to do that instead of hard coding to string |
22:16:31 | FromGitter | <bung87> ok |
22:26:03 | FromGitter | <arnetheduck> hey, @alehander42 , just looked at zero_functional, and it looks very nice! is there any way not to use that `it` name and let the caller specify it instead? it's quite limiting in the sense that if you want to nest stuff, you're screwed - likewise with any "outside" variables you might have - example: ``` ⏎ x.any(y.any(y-it == x-it))``` to see if there's overlap in two seqs.. it's like having `select` without |
22:26:03 | FromGitter | ... `join` - nice for simple examples, but not terribly useful. |
22:27:03 | * | superbia left #nim ("WeeChat 2.2") |
22:28:11 | FromGitter | <zacharycarter> @vivekimsit is your project targeting the JS backend? |
22:31:57 | shashlick | bung87: works now |
22:32:02 | shashlick | going to push |
22:35:48 | shashlick | please try now - updated the test sample as well |
22:41:54 | FromGitter | <bung87> Illegal storage access. (Attempt to read from nil?) |
22:43:03 | FromGitter | <bung87> https://github.com/Nim-NLP/nimfastText/commit/f8d0a34cc0412c663154efec88902c081c2315be |
22:46:39 | * | rockcavera quit (Remote host closed the connection) |
22:48:08 | FromGitter | <bung87> I dont understand the assign operator of `FastText` removed how it gets initialized? |
22:50:23 | shashlick | Remove tests from path |
22:54:33 | FromGitter | <bung87> which *path*? |
22:57:13 | shashlick | The path to the ftz file |
22:58:23 | shashlick | You are running in the tests directory |
23:00:18 | FromGitter | <bung87> I use .nims swich the path |
23:00:19 | FromGitter | <mratsim> @bung87 the most useful NLP libs I’ve used are Syuzhet in R, GloVe in python/C++ and spaCy in Python/Cython. |
23:00:43 | * | craigger quit (Quit: bye) |
23:02:04 | FromGitter | <bung87> I know Glove and spaCy, spaCy is cool. |
23:02:43 | FromGitter | <mratsim> Syuzhet is good for out-of-the-box sentiment analysis on tweets or TripAdvisor rating for example |
23:04:56 | FromGitter | <bung87> I do some works on word segment ,word pos tag , similarity, summary and sentiment these months. just thoughts port some libs to nim ,make it more faster |
23:04:59 | FromGitter | <mratsim> I sorry it wasn’t glowe, it was gensim. There is also Rasa-NLU and MITIE that impressed me |
23:05:59 | FromGitter | <bung87> Syuzhet I have not try, not familar with R and the R syntax looks ugly to me.. |
23:06:05 | FromGitter | <mratsim> mitie can probably be wrapped in Nim as it has a C API: https://github.com/mit-nlp/MITIE |
23:07:16 | FromGitter | <mratsim> iirc, RASA is built on top of mitie but it’s been a while since I’ve checked |
23:07:44 | shashlick | bung87: I had the same illegal crash, cause it was pointing to a file that doesn't exist |
23:08:43 | FromGitter | <bung87> shashlick `echo existsFile($langModel)` I checked ,how that happend? |
23:08:54 | * | skellock quit (Ping timeout: 244 seconds) |
23:09:09 | shashlick | hmm |
23:10:22 | FromGitter | <bung87> @mratsim well ,seems spaCy has more features than MITIE |
23:10:35 | shashlick | bung87: how are you running the test |
23:11:23 | FromGitter | <bung87> `~/Nim/bin/nim cpp --cc:llvm_gcc -t:-std=c++0x -r tests/testlang.nim` |
23:11:28 | * | skellock joined #nim |
23:13:26 | FromGitter | <mratsim> yeah of course, MITIE is more out of the box preconfig built on top of dlib |
23:13:48 | FromGitter | <mratsim> dlib being a C++ general ML lib |
23:14:47 | FromGitter | <mratsim> well gotta sleep. Hopefully I can finish GRU in Arraymancer this weekend and start playing with pure Nim NLP ;) |
23:14:51 | FromGitter | <bung87> https://github.com/frcchang/zpar there’s a word segment lib have check yet |
23:15:40 | FromGitter | <bung87> @mratsim it’s target to Deep learnning ? |
23:15:45 | FromGitter | <mratsim> something not updated since 2015 is probably severely out of date |
23:16:04 | FromGitter | <bung87> yeah , its features looks good though. |
23:16:12 | FromGitter | <mratsim> yes Arraymancer will offer state of the art DL stuff |
23:16:54 | FromGitter | <mratsim> though I will get as much useful stuff from sklearn ported as well, like TfIdf + TruncatedSVD for text classification |
23:17:17 | FromGitter | <bung87> that’s the cool thing I’m waiting, I only worry about I have no good machine to train |
23:17:54 | FromGitter | <mratsim> I’m always developing CPU first on a 2015 dual-core Macbook, and I take good care of optimization |
23:17:59 | FromGitter | <mratsim> I wouldn’t worry for NLP |
23:18:00 | shashlick | bung87: not sure what to tell you - works fine here with a correct path |
23:18:45 | FromGitter | <bung87> @shashilick can you post you test code to GitHub ,I will check it |
23:19:28 | FromGitter | <mratsim> basically the bottleneck for NLP is using softmax if you have a choice of 50k words :P |
23:20:06 | shashlick | latest on github is working copy |
23:20:53 | FromGitter | <bung87> @mratsim hmm , I only have experience with trained mode in DL, tried once but dont know how long it will takes to train.. |
23:21:12 | FromGitter | <zacharycarter> don't forget about - https://github.com/apple/turicreate |
23:21:18 | FromGitter | <zacharycarter> built for mbp hardware |
23:22:46 | AlexMax | hrm |
23:22:47 | AlexMax | this is odd |
23:23:40 | AlexMax | https://paste.ee/p/BBMzW |
23:23:45 | AlexMax | Not sure how to parse this error message |
23:24:25 | AlexMax | I thought the way to convert an array to a pointer is to addr array[0] |
23:24:33 | AlexMax | I'm sure it's worked for me before... |
23:26:37 | FromGitter | <bung87> shashlick I tried with your test , got same error, no clue how it happens.. |
23:26:50 | AlexMax | It's like nim can't figure out what type it's dealing with |
23:27:46 | * | bear45418 joined #nim |
23:29:46 | FromGitter | <zacharycarter> probably need `.ord` or something AlexMax |
23:30:03 | * | rockcavera joined #nim |
23:30:23 | FromGitter | <zacharycarter> I think the `[]` proc is interpreting your enum values as integers |
23:30:28 | FromGitter | <zacharycarter> when you really want ordinals |
23:30:30 | shashlick | bung87: i'm on win/lin so don't know why Mac isn't working |
23:30:36 | AlexMax | OH |
23:30:40 | AlexMax | That would explain it |
23:30:41 | shashlick | anyone has a Mac VM somewhere |
23:31:17 | FromGitter | <zacharycarter> I feel like there's a mac version of qvm or something somewhere |
23:31:27 | FromGitter | <bung87> may you can continue test https://github.com/bung87/whatlangid/blob/master/tests/test_predict_lang.py |
23:31:32 | FromGitter | <zacharycarter> https://github.com/kholia/OSX-KVM |
23:31:33 | FromGitter | <zacharycarter> sorry |
23:31:34 | FromGitter | <zacharycarter> kvm |
23:31:54 | AlexMax | @zacharycarter actually, accessing the table items using the enum works for me. It's using a raw integer like 0 that confuses things. |
23:31:58 | FromGitter | <bung87> the rest of things , I currently dont know what problem I am facing.. |
23:32:15 | AlexMax | table[nuklear.COLOR_TEXT] works, table[0] does not |
23:32:30 | * | bear45418 quit (Remote host closed the connection) |
23:32:46 | shashlick | @zacharycarter: are you able to download ISOs without purchase? |
23:36:50 | FromGitter | <bung87> shashlick if it works fine you will get something like ` [ (“__label__ja”,0.33434),…]` when you put a sentence |
23:38:26 | FromGitter | <bung87> `loadModel` and `predict` sames to other models |
23:40:08 | shashlick | what do you mean when you say put a sentence |
23:42:04 | FromGitter | <bung87> `wtl.predict_pro(["English sentence", "അമ്മ"]) ⏎ [('en', 0.8848170638084412), ('ml', 0.9535570740699768)]` like this in python wrapper |
23:43:02 | * | Fusl joined #nim |
23:43:48 | FromGitter | <bung87> I checked the `predict` proc seems not like offical python api takes optional args |
23:44:01 | FromGitter | <zacharycarter> <shashlick> @zacharycarter: are you able to download ISOs without purchase? - yeah I know how to put a patch over one eye and a wooden peg on one of my legs |
23:44:07 | * | Fusl quit (Remote host closed the connection) |
23:44:40 | FromGitter | <zacharycarter> I need to go do a few things around the house - but I'll be back shortly |
23:45:07 | FromGitter | <bung87> https://github.com/facebookresearch/fastText/blob/master/python/fastText/FastText.py#L100 |
23:48:27 | FromGitter | <bung87> basically I just interested in the use parts, not the train parts , since it provide all pre-trained models to public . |
23:59:38 | AlexMax | oh dear |
23:59:46 | AlexMax | I knocked the style demo out of the way rather quickly |
23:59:57 | AlexMax | ....not so much the overview |
23:59:57 | * | noonien quit (Quit: Connection closed for inactivity) |