00:02:49 | FromGitter | <gogolxdong> probably has figured out , it's koch docs. |
00:07:23 | * | stefanos82 quit (Quit: Quitting for now...) |
00:16:49 | asd | yes, but I cant link them as with ptr |
00:17:09 | asd | the value is copied |
00:22:35 | * | laaron quit (Quit: ZNC 1.7.1 - https://znc.in) |
00:27:12 | * | laaron joined #nim |
00:45:12 | * | stefantalpalaru joined #nim |
00:48:11 | stefantalpalaru | Did anyone else notice that "source" links are broken in the 0.20.2 online documentation, because they point to the master branch where the most recent version is 0.19.6? |
00:48:59 | stefantalpalaru | BTW, the latest commit in the master branch seems a mistake. Was it meant for the devel branch? |
02:01:00 | * | stefantalpalaru quit (Quit: stefantalpalaru) |
02:01:08 | * | snifftek quit (Remote host closed the connection) |
02:31:10 | * | lritter quit (Quit: Leaving) |
02:52:43 | * | snifftek joined #nim |
02:57:31 | leorize[m] | @gogolxdong nim rst2html |
02:57:32 | leorize[m] | stefantalpalaru: narimiran still haven't fixed them then |
02:57:33 | leorize[m] | master is abandoned |
02:57:57 | leorize[m] | now it's version-0-20 branch |
03:11:57 | disruptek | this defer in iterators issue... https://github.com/nim-lang/Nim/issues/11815 doesn't look like a bug to me; if the iterator isn't exhausted, the defer should not run. that's the behavior we see, so what's the problem? |
03:21:28 | * | leorize quit (Ping timeout: 260 seconds) |
03:22:37 | * | leorize joined #nim |
03:25:33 | FromGitter | <gogolxdong> @leorize, what else does koch docs do? |
03:40:08 | * | dddddd quit (Remote host closed the connection) |
04:01:34 | * | fjellfras joined #nim |
04:22:10 | * | nsf joined #nim |
04:22:10 | * | snifftek quit (Remote host closed the connection) |
04:22:21 | FromGitter | <zacharycarter> hmm - so I have a NimNode representing an object constructor and another node that has the name and type of one of the fields on that object |
04:22:29 | FromGitter | <zacharycarter> if I'm inside a compile time proc - is it possible to resolve a combination of these to a value? |
04:44:37 | leorize | @gogolxdong: https://github.com/nim-lang/Nim/blob/ce148e71ef49dab3d8e61499bce40fd5718ecff4/tools/kochdocs.nim#L306 |
04:45:09 | leorize | @zacharycarter: any example of what you're doing? |
04:45:30 | FromGitter | <zacharycarter> basically I have a macro where I'm iterating over an objects fields |
04:45:43 | FromGitter | <zacharycarter> I need to call it recursively when the field is an object type |
04:45:56 | FromGitter | <zacharycarter> so I have a macro calling a compiletime proc |
04:46:17 | FromGitter | <zacharycarter> also - when the field is an object, I need to pass the value held in that field the second time around |
04:49:09 | leorize | i don't think you can access field values in compile time |
04:49:17 | leorize | the object is not even there to begin with |
04:50:08 | FromGitter | <zacharycarter> well - I guess this is impossible then |
04:50:57 | FromGitter | <zacharycarter> I wanted to give this macro a shot before I totally game up on the Nimscript thing |
04:51:09 | FromGitter | <zacharycarter> but I don't see how one would take an object and produce a PNode representation from it |
04:51:14 | FromGitter | <zacharycarter> if the values aren't present at compile time |
04:51:30 | leorize | can you show the macro usecase? |
04:51:39 | leorize | it might be that I didn't get what you were trying to do |
04:51:58 | FromGitter | <zacharycarter> okay so Nimscript - if you want to pass types that aren't already supported in the VM |
04:52:40 | FromGitter | <zacharycarter> you need to create custom procs to take a PNode and produce an isntance of your object from them - you create the PNode from the args passed into the VM |
04:52:48 | FromGitter | <zacharycarter> and then you need to do the opposite as well |
04:53:05 | FromGitter | <zacharycarter> go from VM args to a PNode representing an instance of your object |
04:53:25 | FromGitter | <zacharycarter> the PNode structure looks like this - |
04:54:05 | FromGitter | <zacharycarter> https://gist.github.com/zacharycarter/da144cffc100b20aa1b4caea76ca832c |
04:54:11 | FromGitter | <zacharycarter> for the object in the second file in the gist |
04:54:42 | FromGitter | <zacharycarter> so what I wanted to do, was pass an instance of that `Foo` type into a macro and produce that PNode representation |
04:55:09 | FromGitter | <zacharycarter> something like `toPNode(Foo(a: 1, bar: Bar(b: 2))` |
04:55:31 | leorize | doesn't seem to be too impossible |
04:55:46 | leorize | so a burden with nimscript is that you must carry the stdlib with you |
04:55:51 | FromGitter | <zacharycarter> yes |
04:56:34 | FromGitter | <zacharycarter> I may just ditch it all together |
04:56:43 | FromGitter | <zacharycarter> and just forego scripting and HCR |
04:56:48 | leorize | create your own nimscript module with those structures and you'll have them? |
04:57:29 | FromGitter | <zacharycarter> but I need them on both sides |
04:57:30 | leorize | if you want to pass them to nimscript, a copying mechanism should be available in the compiler |
04:57:40 | FromGitter | <zacharycarter> the Nim side and the Nimscript side |
04:57:51 | FromGitter | <zacharycarter> hmm |
04:58:11 | leorize | import nim-side-module; export nim-side-module.ObjectA |
04:58:43 | leorize | or you could just have the user import the nim-side-module directly |
04:59:05 | leorize | just make sure you have enough `when defined(nimscript)` |
05:01:49 | FromGitter | <zacharycarter> I think that only solves half my problem though potentially |
05:01:59 | * | laaron quit (Remote host closed the connection) |
05:02:13 | FromGitter | <zacharycarter> because I'd still need to construct an object of a type from a list of arguments |
05:02:55 | leorize | setResult()? |
05:03:06 | FromGitter | <zacharycarter> well like in the example I gave above |
05:03:46 | leorize | you can construct it if all the data can be evaluated at compile-time |
05:04:02 | FromGitter | <zacharycarter> okay - I'll play around with it a bit more and see what I can come up with |
05:04:09 | leorize | oh, but when you're using nimscript, then you'll already have that data |
05:04:52 | leorize | take a look at setResult() in the compiler |
05:05:13 | leorize | seems like a lot of copying b/w nimscript and the compiler is defined there |
05:05:21 | leorize | vmhooks.nim |
05:05:22 | FromGitter | <zacharycarter> alright I will - thanks for the help |
05:05:49 | * | laaron joined #nim |
05:12:46 | * | laaron quit (Quit: ZNC 1.7.1 - https://znc.in) |
05:13:04 | * | laaron joined #nim |
05:44:33 | * | solitudesf joined #nim |
06:01:39 | * | laaron quit (Remote host closed the connection) |
06:06:30 | * | laaron joined #nim |
06:07:23 | FromGitter | <awr1> finally have some time to do some nim stuff again |
06:52:35 | FromGitter | <zacharycarter> I wonder if I can simplify my nimscript issue by just passing pointers around |
07:00:00 | * | gmpreussner quit (Quit: kthxbye) |
07:04:28 | * | gmpreussner joined #nim |
07:05:04 | * | fjellfras quit (Ping timeout: 246 seconds) |
07:05:14 | * | fjellfras joined #nim |
07:14:25 | * | fjellfras quit (Ping timeout: 244 seconds) |
07:14:37 | * | fjellfras joined #nim |
07:17:23 | * | fjellfras_ joined #nim |
07:19:04 | * | fjellfras quit (Ping timeout: 244 seconds) |
07:50:20 | * | ng0 joined #nim |
07:59:58 | * | gokr joined #nim |
08:03:32 | * | solitudesf quit (Quit: Leaving) |
08:06:14 | * | floppydh joined #nim |
08:50:00 | * | asd quit (Remote host closed the connection) |
09:11:50 | * | couven92 joined #nim |
09:33:45 | * | Vladar joined #nim |
09:41:09 | * | fjellfras_ quit (Quit: Leaving) |
09:43:40 | * | leorize quit (Ping timeout: 260 seconds) |
09:45:34 | * | leorize joined #nim |
09:46:16 | * | Perkol joined #nim |
09:51:43 | Zevv | that sounds like "I wonder if I cna simplify my problem by using regular expressions" |
10:00:31 | * | krux02 joined #nim |
10:00:42 | * | stefanos82 joined #nim |
10:16:31 | FromGitter | <zacharycarter> Heh |
10:18:07 | FromGitter | <zacharycarter> I can definitely simply my problem by just ditching scripting altogether but now that I've had a taste of hot swapping it's proving difficult |
10:31:48 | * | krux02 quit (Remote host closed the connection) |
10:38:32 | * | abm joined #nim |
10:53:14 | * | dddddd joined #nim |
10:58:35 | * | laaron quit (Quit: ZNC 1.7.1 - https://znc.in) |
11:02:50 | * | laaron joined #nim |
11:05:01 | * | Perkol quit (Quit: Leaving) |
11:28:12 | livcd | i cant see this on irc but is treeform here ? |
11:35:22 | FromGitter | <zacharycarter> he's afk - but @treeform |
11:37:53 | FromGitter | <Varriount> We summon thee to participate in conversation |
11:46:13 | * | theelous3 joined #nim |
12:02:12 | * | skelett quit (Quit: WeeChat 2.4) |
12:02:52 | * | skelett joined #nim |
12:06:06 | * | skelett quit (Client Quit) |
12:07:03 | * | skelett joined #nim |
12:42:20 | * | solitudesf joined #nim |
12:45:45 | * | snifftek joined #nim |
13:13:46 | * | Mister_Magister quit (Excess Flood) |
13:14:03 | * | Mister_Magister joined #nim |
13:23:50 | * | ng0 quit (Remote host closed the connection) |
13:24:52 | * | ng0 joined #nim |
13:58:22 | * | batok joined #nim |
14:13:06 | * | rockcavera quit (Read error: Connection reset by peer) |
14:13:21 | * | rockcavera joined #nim |
14:14:20 | * | lritter joined #nim |
14:51:04 | * | kungtotte quit (Quit: WeeChat 2.5) |
14:59:47 | * | gokr quit (Ping timeout: 248 seconds) |
15:10:03 | * | a_b_m joined #nim |
15:13:53 | * | abm quit (Ping timeout: 258 seconds) |
15:20:36 | * | rockcavera quit (Read error: Connection reset by peer) |
15:20:56 | * | rockcavera joined #nim |
15:20:56 | * | rockcavera quit (Changing host) |
15:20:56 | * | rockcavera joined #nim |
15:25:04 | * | kungtotte joined #nim |
15:25:34 | * | drewr joined #nim |
15:26:04 | * | drewr quit (Remote host closed the connection) |
15:26:12 | * | laaron quit (Remote host closed the connection) |
15:30:15 | * | laaron joined #nim |
15:35:23 | * | laaron quit (Remote host closed the connection) |
15:37:57 | * | drewr joined #nim |
15:38:14 | * | laaron joined #nim |
15:44:13 | * | drewr quit (Ping timeout: 276 seconds) |
15:50:15 | FromGitter | <iffy> @Araq should I file an issue with steps to duplicate for the `LogFunc = proc(msg:cstring) {.raises: [Exception], tags: [], gcsafe.}` thing? |
15:51:10 | FromGitter | <iffy> anyone: what's the incantation I put into nim.cfg to tell it that `i686-w64-mingw32-gcc` is in `/usr/local/bin` when cross-compiling from macOS to Windows? |
15:52:07 | FromGitter | <iffy> I've tried i686.windows.gcc.path = "/usr/local/bin" and amd64.windows.gcc.path = ... |
15:53:11 | leorize | it's i386.windows.gcc.path |
15:54:43 | FromGitter | <iffy> leorize: thank you! At one point, I found a semi-exhaustive list of config options on a wiki, I think. Maybe it would be worth linking to that from https://nim-lang.org/docs/nimc.html#cross-compilation ? |
16:01:03 | * | nsf quit (Quit: WeeChat 2.4) |
16:06:57 | * | Trustable joined #nim |
16:17:44 | * | drewr joined #nim |
16:18:16 | * | drewr quit (Remote host closed the connection) |
16:19:45 | * | drewr joined #nim |
17:21:40 | * | gokr joined #nim |
17:38:27 | * | tobbez quit (Ping timeout: 264 seconds) |
17:45:30 | * | tobbez joined #nim |
17:47:52 | FromDiscord_ | <treeform> @livcd sup? |
17:49:45 | leorize | attn. nim.nvim users, I've implemented nim style-insensitivity support for the `*` operator, so you can now search for such identifier in the editor \o/ (thanks Zevv for testing) |
17:50:16 | leorize | also implemented support for jumping b/w if-else branches with the `%` operator |
17:50:26 | Zevv | no you didn't :) |
17:50:36 | Zevv | you tried, though |
17:50:42 | FromDiscord_ | <treeform> fight! |
17:50:48 | Zevv | \o/ |
17:51:06 | leorize | I could just roll back the % change :P |
17:51:36 | Zevv | well, it's better then nothing, so I wouldn't roll back yet |
17:52:28 | acidx | Kiloneie: https://github.com/tomboy-notes/tomboy-ng |
18:17:27 | FromGitter | <zacharycarter> Think there's a bug with the terminal module in 0.20.2 |
18:18:11 | FromGitter | <zacharycarter> `C:\Users\carte\.choosenim\toolchains\nim-0.20.2\lib\pure\terminal.nim(44, 24) Error: can have an unlisted effect: RootEffect` |
18:19:19 | FromDiscord_ | <Kiloneie> acidx, thanks i will check it out, but i think OneNote is working for me right now, took me an hour to port to that one already. |
18:21:31 | * | tobbez quit (Ping timeout: 276 seconds) |
18:22:36 | * | tobbez joined #nim |
18:28:21 | FromGitter | <zacharycarter> actually it is in the logging module |
18:37:51 | FromGitter | <zacharycarter> Not sure if this is the right way to fix it or not, but: https://github.com/nim-lang/Nim/pull/11898 |
18:48:01 | FromGitter | <zacharycarter> what does this even mean - `Error: 'typedesc' metatype is not valid here; typed '=' instead of ':'?` ? |
18:49:27 | FromGitter | <zacharycarter> https://gist.github.com/zacharycarter/800e1592da9fe48954377a53370f338d |
18:51:32 | * | floppydh quit (Quit: WeeChat 2.5) |
19:05:39 | solitudesf | alloc_func* = mz_alloc_func should be in type section |
19:07:02 | * | krux02 joined #nim |
19:09:42 | disruptek | sweet, that's a good fix. |
19:10:28 | disruptek | thanks for that, leorize. |
19:11:50 | FromGitter | <zacharycarter> thanks solitudesf |
19:23:30 | * | a__b__m joined #nim |
19:27:03 | * | a_b_m quit (Ping timeout: 244 seconds) |
19:29:45 | * | birll joined #nim |
19:34:15 | FromDiscord_ | <Kiloneie> What is % operator supposed to be in Nim ? it's remainder in C++, but i can't find any explanation on it in Nim Manual, i know it's used in many ways like converting a new JsonNode to string, but... then it's also used for declaring unsigned integers... is it just there because ?... |
19:35:51 | FromGitter | <mratsim> mod |
19:37:56 | solitudesf | https://nim-lang.github.io/Nim/theindex.html#%60%25%25%60 |
19:38:03 | solitudesf | just ctrl-f here |
19:38:36 | * | birll quit (Quit: leaving) |
19:43:33 | FromDiscord_ | <Kiloneie> An operator that is there to glue stuff that does different things in different contexts, welp. |
19:51:50 | * | nsf joined #nim |
19:59:16 | * | nsf quit (Quit: WeeChat 2.4) |
19:59:52 | * | elrood joined #nim |
20:00:22 | * | fredrik92 joined #nim |
20:01:00 | * | couven92 quit (Disconnected by services) |
20:01:05 | * | fredrik92 is now known as couven92 |
20:01:29 | * | fredrik92 joined #nim |
20:01:29 | Araq | the "theory" behind was that in 201x JSON is more common than silly "modulo" |
20:01:56 | Zevv | If I pass a type into a macro, it ends up as a NimNode, which according to astGenRepr() is a `newSymNode(T)`. newSymNode() seems to be a compiler internal though, how can I instantiate this myself? |
20:02:07 | Araq | and that Leibniz shouldn't be the only person that can invent new notations. |
20:09:03 | Araq | Zevv, what do you mean "instantiate"? |
20:09:41 | * | batok quit (Read error: Connection reset by peer) |
20:10:17 | Zevv | Hmm. I have a macro that takes a typedesc and passes this around. But I also want a macro without a type for convenience, and in that case I'd like to default to a bool as a placeholder. |
20:10:41 | Zevv | dumpAstGen suggests I should do newSymNode(bool), but that doesn't go of course |
20:10:52 | Araq | bindSym"bool" |
20:11:13 | Zevv | right, thanks! |
20:22:54 | Araq | btw Zevv |
20:22:59 | Zevv | yes? |
20:23:24 | shashlick | Hey Araq, did you get to see my snippets from last night? |
20:23:24 | Araq | https://github.com/nim-lang/RFCs/blob/master/RFCs/Async_Chronos.md is silly can you please remove it and create an issue with the same content? |
20:23:58 | Araq | it's not a "document", it's supposed to start a discussion (yay...) |
20:24:17 | Zevv | no problem. dom asked me to put it up there, but I don't care where it lives. The discussion is kind of dead as well I believe |
20:24:32 | Araq | well the discussion never left the forum |
20:24:44 | Zevv | true |
20:24:47 | dom96 | I didn't expect the RFC to get merged |
20:24:56 | Araq | dom96, me neither |
20:25:47 | Araq | well ok, so simply remove it? I don't think there is enough it's a split when I all have to do is to come up with a flexible include file that sorts out the imports |
20:25:58 | Araq | *there is enough proof |
20:26:09 | Zevv | https://github.com/nim-lang/Nim/issues/11899, not sure how to remove the RFC since it got merged |
20:26:26 | Araq | I can click on "delete file" |
20:26:34 | Zevv | I bet you can |
20:26:42 | Araq | well should I? |
20:26:59 | Zevv | well, it was *you* who wanted to delete it :) |
20:27:09 | Araq | I only wanted to move it |
20:27:14 | Zevv | go ahead, I made a regular issue |
20:27:32 | Zevv | oh wait, should that issue be on nim rfcs or on the normal nim repo? |
20:27:40 | Araq | Nim rfcs |
20:27:43 | Zevv | dang |
20:27:47 | Araq | :P |
20:27:55 | Zevv | sorry. can it be moved, or should I close and create a new one? |
20:28:10 | Araq | please close and create a new one |
20:28:13 | Zevv | k |
20:28:22 | * | ofelas quit (Quit: shutdown -h now) |
20:28:25 | Araq | narimiran can move issues but he is on holidays :P |
20:28:28 | dom96 | Araq, if you can make a "flexible include file that sorts out the imports" then that really shows that the breakage is unnecessary :P |
20:28:43 | dom96 | huh, you can't move issues? |
20:28:55 | dom96 | I just transferred it |
20:28:59 | Araq | I don't know which buttons to press |
20:29:10 | Araq | ok... |
20:29:24 | Araq | great, now it's there twice |
20:29:48 | dom96 | hrm? |
20:29:55 | Araq | https://github.com/nim-lang/RFCs/issues |
20:30:00 | shashlick | araq, for mingw 32-bit, which combo? win32-dwarf? |
20:30:06 | Zevv | AAARGH I hate editing text in web browsers |
20:30:12 | dom96 | bah |
20:30:43 | dom96 | Please look around the UI next time |
20:30:50 | Zevv | sorry for that - it didn't want to submit so I hit reload |
20:30:53 | Zevv | and then I got two |
20:31:03 | dom96 | It's just a Cmd+F "Transfer issue" |
20:31:31 | Zevv | oh so no narimiran needed :/ |
20:32:13 | Zevv | anyway, it's there now, sorry for the noise. #158 |
20:32:19 | Araq | yay ... |
20:32:34 | * | Zevv away |
20:32:58 | Araq | shashlick, I'm having a headache, sorry. Ping me again tomorrow |
20:33:08 | shashlick | no problem |
20:33:18 | shashlick | i'm working on minimal examples and will open real issues |
20:33:24 | Araq | oh cool! |
20:33:37 | Araq | then we can add it to the testsuite and ensure it keeps working |
20:34:21 | FromDiscord_ | <Kiloneie> Any estimates on the 1.0 version of Nim ? |
20:34:53 | Araq | ah my nemesis |
20:35:03 | dom96 | huh, min is on HN |
20:35:07 | dom96 | https://news.ycombinator.com/item?id=20622435 |
20:39:45 | FromGitter | <arnetheduck> fwiw, I generally wouldn't recommend targeting both chronos and asyncdispatch in an end-user application. libraries *might* get away with it, but will likely fail to play on the strengths of each approach.. if you use chronos, you're also implicitly agreeing to a more aggressive and fearless approach to breaking stuff to get them right |
20:40:19 | FromDiscord_ | <Kiloneie> I am hoping i can pump out a few videos before 1.0. |
20:40:38 | FromGitter | <zetashift> @Kiloneie try out 0.20.x as much as possible and report/try to fix anything that doesn't work and then one could say soon(tm) :D |
20:41:00 | FromGitter | <zetashift> 1) 20.0 is basically a release candidate so not much should change |
20:41:58 | FromGitter | <arnetheduck> another thing, pretty cool :) : we're starting a libp2p implementation (https://libp2p.io/) for Nim in collaboration with Protocol Labs - looking forward to this one - if you're into networking, get in touch |
20:43:52 | FromGitter | <zetashift> that's really cool |
20:45:21 | disruptek | i want to like it, but my browser has been waiting about 20s so far just to receive a response to a click on the Implementations tab. is this site running on libp2p? :-( |
20:45:34 | FromDiscord_ | <Kiloneie> zetashift i will, but i doubt i will find much in the next few weeks, as my plan is to finish Nim in Action book, do Exercism Nim Track training examples, fill my notes and make videos to teach new comers( which i am D: ). I do want to try to get Nim to work with Godot Engine one day if it hasn't been done yet, love that engine. |
20:45:36 | FromGitter | <zetashift> libp2p, IPFS and Dat are all stuff that look interesting but it feels like quite a learning curve to understand how tf it actually works |
20:46:09 | dom96 | Kiloneie: ooh, thanks for buying my book :D |
20:46:12 | disruptek | the reputation of that stuff not actually working is pretty fair, i think. |
20:46:20 | FromGitter | <zetashift> @Kiloneie Nim was for some reason one of the easiest languages to get started with(well except for metaprogramming), only other one I had the same thing with was Go |
20:46:28 | FromGitter | <zetashift> have fun! |
20:47:53 | FromGitter | <arnetheduck> disruptek, not sure - "works for me" |
20:47:59 | FromGitter | <zetashift> and godot-nim bindings are already there but you need a fork of DwanaG to get it to work with latest version. A |
20:49:09 | FromDiscord_ | <Kiloneie> Nim to me is a better and easier Python really... i freaking hate dynamic typing, i used to make half finished games in Game Maker for years, and finding errors hours or days after writing some code was a pain in the ass. It's real easy to read |
20:49:09 | FromDiscord_ | <Kiloneie> |
20:49:10 | FromDiscord_ | <Kiloneie> dom96 How much of the book's price's cut do you actually get btw 😛 ? |
20:49:44 | FromGitter | <arnetheduck> the point of libp2p is to take away some of the learning curve of p2p networking, much like ssl abstracts away security so most devs don't have to care |
20:50:04 | FromDiscord_ | <Kiloneie> I will give it a try zetashift, (i knew i saw a Nim binding in godot assets library) |
20:50:18 | FromGitter | <arnetheduck> that said, it's true that p2p and distributed systems generally are harder to get right when your problem is fundamentally centralized |
20:50:35 | dom96 | Kiloneie: Not much :) |
20:52:33 | disruptek | arnetheduck: have you played with gundb? |
20:52:44 | disruptek | i think you'd get a kick out of it. |
20:53:47 | FromDiscord_ | <Kiloneie> dom96 atleast it's something, i got nothing for like 40 videos of game footage playing at Master rank in Heroes of the Storm, i got pissed, got like 200% of all my views in 3 videos(mostly just one) the day after the last Hearthstone expansion... YouTube algorithm just doesn't give a damn about new people. |
20:55:07 | FromGitter | <arnetheduck> nope, never heard |
20:56:03 | FromDiscord_ | <Kiloneie> Btw how do you report typos on your book ? i found 2 so far and i tried reporting but i only found open disccussion which is probably not the way to do it ? Can't remember where they were though. |
20:56:18 | * | Trustable quit (Remote host closed the connection) |
20:57:47 | dom96 | wow, Manning got rid of their forum :/ |
20:58:12 | dom96 | I hope they at least archived that... people gave good feedback |
20:58:56 | dom96 | Kiloneie: I guess the best way now is to leave comments on the livebook https://livebook.manning.com/book/nim-in-action/about-this-book/ |
21:00:12 | FromDiscord_ | <Kiloneie> dom96: you mean open discussion right ? |
21:00:34 | dom96 | Kiloneie: I think so. Haven't used this to be honest, it's a relatively new thing |
21:00:51 | dom96 | but I think you can comment right beside the typos |
21:01:38 | FromDiscord_ | <Kiloneie> dom96: okay i will do that if i find more errors, not gonna go back and find the previous 2, too lazy D: |
21:02:21 | FromDiscord_ | <Kiloneie> Good book so far, but it's not really a beginner's one. Is it meant to be ? |
21:02:34 | dom96 | beginner to what? Programming? |
21:02:54 | FromGitter | <arnetheduck> gundb certainly has an ambitious technical writer on board |
21:03:07 | disruptek | it's neat, right? |
21:05:04 | FromDiscord_ | <Kiloneie> dom96: Yep to programming, def. not that one. I know from my classmates at my 4 year computer science high school, if you shown the this one, they would have no clue. But for anyone with some logic behind and some coding experience, doesn't matter which, just that they understand how to follow code, it's good. |
21:05:43 | dom96 | yes, it's definitely not for those that don't know how to program in another language |
21:08:19 | FromDiscord_ | <Kiloneie> dom96 are you planning on any more books ? |
21:08:26 | dom96 | not right now |
21:09:21 | FromGitter | <zetashift> gundb's site sure is...colorful |
21:15:13 | * | Kaivo quit (Quit: WeeChat 2.5) |
21:18:30 | FromDiscord_ | <Shield> it may be a dumb question, but is there any overhead to using functions and types improted from c? |
21:21:27 | FromDiscord_ | <Shield> trying to see if it's worth rewriting SFML in nim, it's written in c++ and has c bindings, it feels like too many jumps |
21:25:40 | dom96 | Doing it for reasons of speed doesn't make sense (the overhead is negligible for most use cases) |
21:25:53 | dom96 | Doing it so that your program has no dependencies does make sense |
21:27:38 | * | Vladar quit (Remote host closed the connection) |
21:28:31 | FromDiscord_ | <Kiloneie> Nim binding for Godot Engine is apparently very good. I will give that a try probably this week or the next. Having access to an entire language without having to learn C++ is pretty huge(i hate C++). |
21:31:52 | * | solitudesf quit (Ping timeout: 258 seconds) |
21:32:58 | Araq | er, just to clarify: 'importc' has no overhead whatsoever |
21:37:18 | FromDiscord_ | <Shield> good to hear, what about types and memory management? a lot of pointers tend to be thrown around |
21:37:49 | * | jmiven quit (Quit: reboot) |
21:38:39 | * | jmiven joined #nim |
21:40:06 | FromDiscord_ | <Shield> at least in SFML's case, the c wrapper adds a bunch of checks to functions that are supposed to be called thousands of times, and memory management feels tricky |
21:40:06 | FromDiscord_ | <Shield> would it be better if nim handled that stuff and ignore using pointers? |
21:44:36 | Araq | types and MM are irrelevant, Nim has a subset that maps one-to-one to C. it gives you more options though, so you could turn the error handling into raising exceptions, for example |
22:04:49 | FromDiscord_ | <Kiloneie> https://play.nim-lang.org/#ix=1QOJ |
22:04:49 | FromDiscord_ | <Kiloneie> Why doesn't this code from Nim in Action book, read my existing Test123.txt file ? |
22:04:49 | FromDiscord_ | <Kiloneie> I know it says permission denied on the playground, but that shouldn't happen on my computer... works fine with synchronous reading. |
22:10:54 | * | elrood quit (Remote host closed the connection) |
22:19:08 | * | ng0 quit (Quit: Alexa, when is the end of world?) |
22:30:22 | * | jxy quit (Quit: leaving) |
22:45:50 | * | gokr quit (Ping timeout: 258 seconds) |
22:50:33 | * | jxy joined #nim |
23:22:14 | * | krux02_ joined #nim |
23:25:15 | * | krux02 quit (Ping timeout: 264 seconds) |
23:37:52 | FromGitter | <bevo009> @Kilonele this is the beginners book if you missed it ⏎ https://narimiran.github.io/nim-basics/ |
23:52:48 | * | stefanos82 quit (Quit: Quitting for now...) |