00:19:58 | * | rbrt joined #nim |
00:22:48 | * | rbrt quit (Client Quit) |
00:31:56 | * | adeohluwa quit (Quit: Connection closed for inactivity) |
00:55:44 | * | dddddd quit (Remote host closed the connection) |
01:01:16 | * | jxv joined #nim |
01:08:22 | * | jxv quit (Quit: string can snapped) |
01:08:40 | GitDisc | <cavariux> Hi guys, do you think that combining c and c++ bindings in a library is bad practice? because of having to use different backends? |
01:10:33 | FromGitter | <zacharycarter> it could have an effect on portability |
01:10:43 | FromGitter | <zacharycarter> depending on what standard of C++ is used |
01:11:08 | FromGitter | <zacharycarter> and what the target device supports |
01:11:36 | GitDisc | <cavariux> hmm good point, hi btw I just got back |
01:11:42 | FromGitter | <zacharycarter> wb |
01:11:57 | GitDisc | <cavariux> what's the real different between imgui and nuklear other than one is in C and the other in C++? |
01:12:30 | FromGitter | <zacharycarter> one is a header only library - the other is not |
01:13:06 | GitDisc | <cavariux> damn haha you are so correct |
01:13:19 | GitDisc | <cavariux> I was thinking of making the imgui bindings but it's in c++ :/ |
01:13:22 | FromGitter | <zacharycarter> imgui has more features and more adoption |
01:13:40 | FromGitter | <zacharycarter> you can bind to C++ w/Nim - I'm not an expert on the subject, but it's definitely possible |
01:13:57 | FromGitter | <zacharycarter> see https://github.com/3dicc/Urhonimo |
01:13:59 | GitDisc | <cavariux> yeah, it's almost the same but with importcpp instead of importc |
01:14:07 | FromGitter | <zacharycarter> yeah |
01:14:33 | GitDisc | <cavariux> well, I will add it to nimgl with a warning that it will enable cpp compiling |
01:14:36 | FromGitter | <zacharycarter> there's also - https://github.com/Extrawurst/cimgui |
01:15:39 | GitDisc | <cavariux> hmm, it looks like to much of a trouble when nim can bind with cpp |
01:17:26 | * | btbytes joined #nim |
01:17:59 | * | btbytes quit (Client Quit) |
01:19:18 | * | vlad1777d_ joined #nim |
01:21:21 | * | vlad1777d quit (Ping timeout: 264 seconds) |
01:28:00 | * | yglukhov joined #nim |
01:32:34 | * | yglukhov quit (Ping timeout: 260 seconds) |
01:45:34 | * | endragor joined #nim |
01:49:57 | * | endragor quit (Ping timeout: 240 seconds) |
02:35:11 | FromGitter | <zacharycarter> shashlick: idea for nimgen - allow the library being wrapped to be added as a submodule |
02:45:39 | * | yglukhov joined #nim |
02:49:03 | * | Snircle quit (Quit: Textual IRC Client: www.textualapp.com) |
02:50:09 | * | yglukhov quit (Ping timeout: 248 seconds) |
02:56:17 | * | S1tiSchu joined #nim |
03:00:24 | * | S1t1Schu quit (Ping timeout: 276 seconds) |
03:00:36 | shashlick | @zacharycarter - can you please explain what you mean? not sure I get the submodule context |
03:02:05 | * | endragor joined #nim |
03:05:12 | * | endragor_ joined #nim |
03:05:19 | * | Jesin joined #nim |
03:06:57 | * | endragor quit (Ping timeout: 264 seconds) |
03:08:12 | Tanger | A git submodule? |
03:09:52 | FromGitter | <zacharycarter> yes |
03:10:14 | FromGitter | <zacharycarter> also I'm having trouble getting https://github.com/sass/libsass to work with nimgen |
03:10:51 | FromGitter | <zacharycarter> ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=5aab35ba458cbde5573d69ac] |
03:10:55 | FromGitter | <zacharycarter> doesn't seem to do much :/ |
03:12:44 | * | Jesin quit (Quit: Leaving) |
03:12:47 | Tanger | Git submodules are OK, but they'll probably need something watching them and keeping them updated |
03:13:08 | Tanger | Could have come a long way since I used them though |
03:15:10 | * | noonien quit (Quit: Connection closed for inactivity) |
03:15:47 | FromGitter | <zacharycarter> git also has the subtree command - but either way I think it'd be better than just checking out part of the source lib into the lib your wrapping ¯\_(ツ)_/¯ |
03:17:34 | * | Jesin joined #nim |
03:19:02 | * | Jesin quit (Remote host closed the connection) |
03:19:19 | * | rauss quit (Quit: WeeChat 2.0.1) |
03:22:14 | * | rauss joined #nim |
03:23:16 | FromGitter | <zacharycarter> shashlick: if you can offer any help with the libsass stuff - I'd be much appreciative |
03:24:06 | shashlick | sure am looking |
03:24:48 | FromGitter | <zacharycarter> thanks! |
03:25:30 | shashlick | so there's nothing in that file worth mention, you want to recurse so recurse = true |
03:25:55 | FromGitter | <zacharycarter> ah thanks |
03:26:10 | shashlick | plus nimgen doesn't automatically recurse <> includes since those are usually system includes |
03:26:18 | FromGitter | <zacharycarter> gotcha |
03:26:42 | shashlick | so need quotes = false and I think filter = sass |
03:27:02 | FromGitter | <zacharycarter> alright I'll try all of those options - thank you very much! |
03:27:15 | shashlick | you also don't need the [sass.nim] empty section unless you want to change something in those files |
03:27:56 | FromGitter | <zacharycarter> ah okay cool! good to know :) |
03:29:48 | shashlick | can you also please open an issue to track the submodule feature with some detail on how you think it should work? not sure what it should do |
03:31:25 | FromGitter | <zacharycarter> sure - I need to check out the git sparse stuff too - it may be better than what I'm asking for |
03:33:41 | shashlick | yep you just say gitremote = url and gitsparse = list of files to checkout with wildcards |
03:33:48 | shashlick | i use it in nimssl for example |
03:37:33 | FromGitter | <zacharycarter> ah okay cool! thanks so much! was able to get the sass bindings done - now for bed - but now I can write a Nim sass parser :D |
03:51:13 | * | yglukhov joined #nim |
03:55:27 | * | yglukhov quit (Ping timeout: 240 seconds) |
05:06:43 | * | yglukhov joined #nim |
05:11:01 | * | yglukhov quit (Ping timeout: 246 seconds) |
05:16:01 | * | cspar joined #nim |
05:20:45 | * | smt quit (Ping timeout: 263 seconds) |
05:37:54 | FromGitter | <gogolxdong> undeclared identifier: 'await' |
05:48:13 | * | yglukhov joined #nim |
05:53:09 | * | yglukhov quit (Ping timeout: 264 seconds) |
06:09:30 | * | nsf joined #nim |
06:12:38 | Tanger | gogolxdong: await needs to be called inside a proc with the {.async.} pragma |
06:13:00 | Tanger | And you need to import asyncdispatch if you're not already |
06:13:29 | FromGitter | <gogolxdong> yes, thanks. |
06:21:09 | * | craigger quit (Quit: bye) |
06:21:17 | * | craigger joined #nim |
06:52:12 | * | yglukhov joined #nim |
06:54:30 | * | r3d9u11 joined #nim |
06:56:22 | * | yglukhov quit (Ping timeout: 246 seconds) |
07:18:45 | * | Vladar joined #nim |
07:27:30 | * | PMunch joined #nim |
07:47:01 | * | yglukhov joined #nim |
07:51:57 | * | yglukhov quit (Ping timeout: 264 seconds) |
08:11:21 | * | rokups joined #nim |
08:13:14 | * | jaco60 joined #nim |
08:15:26 | * | yglukhov joined #nim |
08:27:46 | * | BitPuffin joined #nim |
08:47:06 | * | floppydh_ joined #nim |
08:47:25 | * | xkapastel quit (Quit: Connection closed for inactivity) |
09:06:26 | * | dddddd joined #nim |
09:09:27 | * | sendell joined #nim |
09:19:19 | * | Arrrr joined #nim |
09:34:53 | PMunch | Woo, result now works in quote do: https://github.com/nim-lang/Nim/pull/7343 |
09:41:22 | * | adeohluwa joined #nim |
09:45:23 | adeohluwa | how to write a nim script that u can pipe to? |
09:45:56 | adeohluwa | $cat data | nimcode |
09:46:29 | PMunch | Data sent over a pipe is received as stdin |
09:46:57 | PMunch | So just read from stdin like you would with regular user input |
09:47:23 | adeohluwa | I used rdstdin |
09:47:31 | adeohluwa | readLineFromStdin() |
09:48:14 | PMunch | https://nim-lang.org/docs/tut1.html |
09:48:18 | PMunch | Check the first example there |
09:49:16 | PMunch | If you compile that and call it with echo "adeohluwa" | myprogram it will output the prompt immediately followed by "Hi, adeohluwa" before quitting |
09:50:32 | PMunch | Same with readLineFromStdin |
09:50:50 | PMunch | But for some reason you won't even see the prompt |
09:51:17 | PMunch | http://ix.io/XM0/ |
09:52:09 | PMunch | That simple program when run with 'echo "adeohluwa" | ./test' would output "Hi, adeohluwa!" |
09:53:01 | adeohluwa | PMunch: works great here...thanks! |
09:53:18 | PMunch | No problem :) |
09:54:00 | adeohluwa | one issue |
09:54:10 | adeohluwa | that only reads a single line of data |
09:55:21 | PMunch | Yeah, readLineFromStdin |
09:56:49 | Araq | PMunch: good job on that PR. |
09:57:21 | * | mal`` quit (Quit: Leaving) |
09:57:32 | PMunch | Araq, thanks :) |
09:57:47 | PMunch | It's basically just an adaption of the trick I've been using to make it work in my own code |
09:59:23 | PMunch | adeohluwa, when piping to stdin it will send an EOF at the end of the input. So you can use readAll(stdin) to read the entire pipe into your program |
10:01:11 | PMunch | And if you want to check if it is something being piped in or if it's a terminal stdin you can use isatty from the terminal module |
10:02:23 | adeohluwa | readAll() takes a file type |
10:02:32 | PMunch | Yeah stdin is a File |
10:03:00 | adeohluwa | PMunch: is there a way to read entire stdin as one string |
10:03:05 | * | mal`` joined #nim |
10:03:42 | PMunch | So this little program will read only from a pipe and echo an error if it's not a pipe: http://ix.io/XM7/ |
10:03:55 | PMunch | And it will read it all in as one string as you can see |
10:05:05 | PMunch | Calling readAll on the regular terminal stdin is not a very good idea because your user must then add an EOF to the input for it to get past it. So you should do the pipe check with isatty before calling it. |
10:07:30 | adeohluwa | oh...okay |
10:07:33 | adeohluwa | I get it now |
10:07:46 | FromGitter | <mratsim> So OcaML is considering borrow-checking? https://news.ycombinator.com/item?id=16597329 |
10:08:04 | adeohluwa | PMunch: thanks a bunch |
10:08:25 | PMunch | adeohluwa, no problem :) |
10:12:42 | Araq | mratsim: yeah, I've read that paper a week ago |
10:49:40 | FromGitter | <mratsim> While people are complaining about inclusive range in Nim, Rust added their inclusive range operator `..=` https://www.reddit.com/r/rust/comments/84qheq/inclusive_ranges_with_are_stable/ |
10:53:46 | federico3 | anybody using msgpack? |
10:54:39 | def- | federico3: yes, in python. I played around with using them in nim too, but long ago |
11:01:01 | federico3 | the lib named msgpack seems to be broken :-/ |
11:11:52 | GitDisc | <Lite5h4dow> is libx the only UI library that is compatible with android? |
11:17:03 | GitDisc | <Lite5h4dow> nimx* |
11:17:50 | PMunch | Well, pure SDL works |
11:18:02 | PMunch | So anything you can run on SDL or OpenGL should work as well |
11:18:23 | PMunch | Plus you might even be able to create something with Karax and a simple web-wrapper |
11:18:46 | PMunch | Nuklear for example should work |
11:36:17 | * | enthus1ast joined #nim |
11:38:31 | * | enthus1a1t quit (Ping timeout: 256 seconds) |
11:38:57 | * | vlad1777d_ quit (Ping timeout: 240 seconds) |
11:42:14 | livcd | is there a pet project that uses karax besides the examples in the karax repo ? |
11:46:57 | PMunch | dochack appears to use it |
11:47:05 | PMunch | tools/dochack |
11:48:34 | * | enthus1a1t joined #nim |
11:50:09 | * | enthus1ast quit (Ping timeout: 265 seconds) |
11:50:10 | Araq | dochack predates karax |
11:52:13 | livcd | No idea what's dochack |
11:52:35 | PMunch | Me neither, it just appeared when I searched for karax |
11:52:40 | PMunch | And it appears to import it :P |
11:52:47 | PMunch | Not that I can get it to run.. |
12:05:01 | Araq | iirc it uses a module named 'karax' |
12:05:08 | Araq | but not the karax nimble package |
12:05:15 | Araq | maybe I misremember |
12:05:48 | Araq | anyway, karax is used for closed source applications, don't know of any open source apps |
12:06:03 | FromGitter | <zacharycarter> nim playground :D |
12:06:12 | FromGitter | <zacharycarter> I'm also using it in my personal blog I'm making |
12:09:06 | Araq | oh cool. |
12:09:18 | Araq | wasn't aware nim playground uses it :-) |
12:09:39 | * | floppydh_ quit (Ping timeout: 276 seconds) |
12:10:51 | FromGitter | <zacharycarter> yup! |
12:13:40 | livcd | nim playground uses it ? but i do not see it in the repo |
12:14:35 | Yardanico | wait, does it really use karax? |
12:14:44 | Yardanico | I can't find it in the repo |
12:15:17 | Yardanico | Ah, I'm stupid |
12:15:21 | Yardanico | https://github.com/zacharycarter/nim-playground-frontend |
12:15:32 | Yardanico | https://github.com/zacharycarter/nim-playground-frontend/blob/master/src/app.nim#L85 |
12:15:49 | livcd | ahh this one |
12:18:33 | GitDisc | <Lite5h4dow> @Araq the version of SDL2.dll in the nim package is out of date or something |
12:18:57 | GitDisc | <Lite5h4dow> nimx just wont load unless i manually add the newest version of it |
12:19:18 | GitDisc | <Lite5h4dow> ik its not your library but a dependancy is out of date so i thought i should let you know |
12:20:37 | * | leorize joined #nim |
12:23:16 | * | athenot quit (Ping timeout: 246 seconds) |
12:24:16 | * | fqmquin joined #nim |
12:24:19 | * | fqmquin quit (Client Quit) |
12:25:54 | * | cspar_ joined #nim |
12:29:09 | * | cspar quit (Ping timeout: 264 seconds) |
12:31:08 | Araq | Lite5hh4dow: wasn't aware SDL2.dll is shipped with Nim but ok |
12:31:09 | * | adeohluwa quit (Quit: Connection closed for inactivity) |
12:33:55 | * | sendell quit (Remote host closed the connection) |
12:45:55 | * | floppydh_ joined #nim |
13:00:14 | * | athenot joined #nim |
13:07:11 | GitDisc | <Lite5h4dow> its in the main folder. |
13:07:25 | GitDisc | <Lite5h4dow> unless it came with another plugin |
13:07:37 | GitDisc | <Lite5h4dow> ints not in the source for nimx |
13:07:44 | GitDisc | <Lite5h4dow> its not in the source for nimx |
13:08:45 | GitDisc | <Lite5h4dow> does anyone here that knows how to use nuklear have any spare time? |
13:08:47 | * | sendell joined #nim |
13:16:50 | leorize | anyone here have been fiddling around with --newruntime? |
13:26:02 | * | qleda joined #nim |
13:26:02 | FromGitter | <alehander42> does anybody finds an update many fields macro useful? ⏎ similar to ⏎ ⏎ ```a = A(e: 4, f: 2) ⏎ a.update: ⏎ e = 2 ⏎ f = -4``` ⏎ ... [https://gitter.im/nim-lang/Nim?at=5aabc5eaf3f6d24c68806611] |
13:27:27 | FromGitter | <alehander42> PR it* (but maybe its not suitable for stdlib) |
13:27:52 | Araq | the stdlib needs sugar.nim :-) |
13:28:01 | FromGitter | <mratsim> @leorize I did but it was a few months ago. |
13:28:11 | FromGitter | <alehander42> I thought future.nim is sugar.nim :P |
13:28:25 | FromGitter | <mratsim> future might be removed or change |
13:28:57 | * | aziz joined #nim |
13:28:58 | FromGitter | <alehander42> that's the joke (but it accidentaly includes mostly similar macros) |
13:29:13 | FromGitter | <alehander42> oh man, I just find about dump, I am sure, I've written versions of that before |
13:32:50 | * | Arrrr quit (Read error: Connection reset by peer) |
13:39:08 | leorize | I've been playing with --newruntime for a C lib wrapper but got hit with this https://github.com/nim-lang/Nim/issues/7345 |
13:39:57 | Araq | yeah --newruntime is shit |
13:43:08 | * | Mat4 joined #nim |
13:43:10 | leorize | Araq: it's quite useful actually, have you been actively working on it? |
13:52:21 | * | leorize quit (Ping timeout: 276 seconds) |
13:52:48 | * | leorize joined #nim |
13:54:58 | Mat4 | Hello, exist there a roadmap for future development ? |
13:57:14 | FromGitter | <zacharycarter> https://github.com/nim-lang/nim/wiki/roadmap |
13:57:20 | FromGitter | <zacharycarter> not sure how up to date it is |
13:57:31 | Mat4 | thanks |
14:03:39 | * | Mat4 left #nim (#nim) |
14:17:56 | Araq | leorize: I want to work on it again :-) |
14:21:40 | Araq | so ... |
14:22:15 | Araq | proc toOpenArray[T](x: ptr UncheckedArray[T]; len: int): openArray[T] {.magic: "ToOpenArray".} |
14:22:16 | Araq | ? |
14:22:37 | Araq | the name is a bit long |
14:45:18 | FromGitter | <dom96> Looks like Aporia compilation is broken under 0.18.0 |
14:45:28 | FromGitter | <dom96> Seems like a possible compiler regression |
14:47:44 | * | nsf quit (Quit: WeeChat 2.0.1) |
14:51:13 | Araq | what's the error? |
15:04:10 | * | Snircle joined #nim |
15:05:01 | * | aziz quit (Quit: Ex-Chat) |
15:05:38 | FromGitter | <dom96> aporia.nim(1183, 37) Error: illegal capture 'currentPage' |
15:06:46 | FromGitter | <dom96> https://github.com/nim-lang/Aporia/blob/master/aporia.nim#L1183 |
15:18:51 | Araq | mark the template as .dirty or move it below the 'var currentPage' |
15:19:32 | * | r3d9u11 quit (Remote host closed the connection) |
15:20:56 | * | btbytes joined #nim |
15:23:29 | Araq | can anybody confirm https://github.com/nim-lang/Nim/pull/7326 ? |
15:27:47 | PMunch | That it is an issue, or that his fix works? |
15:29:04 | Araq | both. preferably "before" and "Later" screenshots |
15:29:08 | * | endragor_ quit (Remote host closed the connection) |
15:29:22 | * | floppydh_ quit (Ping timeout: 245 seconds) |
15:29:24 | FromGitter | <mratsim> wow this is awesome: https://github.com/nim-lang/Nim/pull/7338 |
15:29:26 | PMunch | I can confirm that it is an issue |
15:29:44 | PMunch | And that changing the background color to FDFBFA works as a fix |
15:32:47 | Araq | mratsim: yup :-) |
15:35:40 | Araq | so again ... toOpenArray? |
15:37:02 | Araq | slice? |
15:40:26 | FromGitter | <mratsim> huh? Who are you asking? |
15:45:32 | FromGitter | <mratsim> To be honest i don’t really like the openarray name though it has history in Pascal, Oberon, Modula, it looks so foreign to my naive eyes. |
15:45:34 | * | xkapastel joined #nim |
15:45:44 | FromGitter | <mratsim> Rust uses slice: https://doc.rust-lang.org/std/primitive.slice.html |
15:45:56 | shashlick | @mratsim I presume it is based on this |
15:45:56 | FromGitter | <mratsim> "Slices are a view into a block of memory represented as a pointer and a length." |
15:46:15 | shashlick | https://github.com/nim-lang/Nim/issues/7337#issuecomment-373453594 |
15:49:00 | * | rbrt joined #nim |
15:49:15 | FromGitter | <mratsim> Or View mentionned by zielmicha here: https://github.com/nim-lang/Nim/issues/5753 |
15:49:27 | FromGitter | <mratsim> 4 or 5 letters doesn’t matter ;) |
15:49:43 | shashlick | I had two projects in mind, let me know which one is higher priority |
15:53:13 | shashlick | 1. Check every nimble package daily with latest Nim head |
15:53:41 | * | icebattl1 joined #nim |
15:54:37 | * | libman_ joined #nim |
15:54:37 | shashlick | 2. Add more functions to the VM / nimscript |
15:55:54 | FromGitter | <mratsim> I vote for 1 |
15:56:01 | * | leorize quit (Quit: WeeChat 2.0.1) |
15:56:46 | * | leorize joined #nim |
15:57:32 | FromGitter | <alehander42> just IMHO view sounds more intuitive (but slice is used as a termin in rust & go so it might be more accessible) |
15:57:46 | FromGitter | <alehander42> I like 1 too, sounds very useful |
15:57:52 | * | mrshu2 joined #nim |
15:58:47 | shashlick | Ideally all nimble package come with test cases, else could just run a check on each Nim file |
15:59:04 | FromGitter | <dom96> Araq: tried moving it below, also tried marking with {.dirty.} |
15:59:08 | FromGitter | <dom96> Both didn't work |
16:00:00 | * | mwbrown quit (Ping timeout: 268 seconds) |
16:01:50 | FromGitter | <mratsim> @shashlick, yeah but ideally, all nimble packages test are triggered by `nimble test` |
16:03:01 | * | libman__ quit (*.net *.split) |
16:03:02 | * | federico3 quit (*.net *.split) |
16:03:02 | * | MJCaley quit (*.net *.split) |
16:03:02 | * | icebattle quit (*.net *.split) |
16:03:02 | * | mrshu1 quit (*.net *.split) |
16:03:19 | FromGitter | <mratsim> Btw I feel like https://github.com/nim-lang/Nim/issues/5437 and https://github.com/nim-lang/Nim/issues/5753 are about the same thing with https://github.com/nim-lang/Nim/issues/7337 drifting closely in the same area. |
16:04:11 | * | mwbrown joined #nim |
16:04:54 | shashlick | Ya but there's always special packages that need stars aligned to test - some dll required or other untracked dependency |
16:06:03 | shashlick | 2 votes for 1, any for 2? |
16:07:44 | FromGitter | <dom96> shashlick: pretty sure federico3's site already does something similar to #1 |
16:08:51 | shashlick | Not aware of it dom96 |
16:09:32 | FromGitter | <dom96> https://nimble.directory |
16:12:22 | shashlick | I see, that's great. So looks like #2 wins by default |
16:13:06 | shashlick | Were there already issues on VM enhancements |
16:13:32 | * | yglukhov quit (Ping timeout: 245 seconds) |
16:18:59 | * | MJCaley joined #nim |
16:20:46 | FromGitter | <dom96> you could improve Nimble's API :) |
16:22:07 | shashlick | Is there an issue on that |
16:24:37 | FromGitter | <alehander42> wow I haven't seen the new nimble directory |
16:24:39 | FromGitter | <alehander42> very nice |
16:24:46 | FromGitter | <alehander42> why wasn't there a post about it |
16:25:34 | * | yglukhov joined #nim |
16:26:08 | leorize | Araq: Is there anything I can do to help with --newruntime? Pointers are welcome as I'm not familiar with Nim source code. |
16:26:45 | * | MJCaley quit (Ping timeout: 256 seconds) |
16:37:07 | * | PMunch quit (Quit: Leaving) |
16:38:11 | * | Mat4 joined #nim |
16:49:08 | * | r3d9u11 joined #nim |
16:49:51 | * | Trustable joined #nim |
16:53:36 | FromGitter | <gogolxdong> How to iterate an array with index? |
16:54:21 | FromGitter | <mratsim> for i in yourarray: doSomeInterestingStuff(yourarray[i]) ? |
16:54:50 | ieatnerds | that should do it |
16:55:11 | FromGitter | <gogolxdong> Isn't i the element of the array? |
16:55:49 | FromGitter | <zacharycarter> yes |
16:55:51 | FromGitter | <brentp> is anyone else using holy-build-box to build distributable executables? I have something that works for 0.17.2, but fails with 0.18.0, I think due to the addition of linenoise which depends on epoll. epoll is apparently not in centos 5. |
16:55:57 | ieatnerds | actually might be, i know it would be for a seq... |
16:55:59 | FromGitter | <zacharycarter> ```let foo = [1,2,3] ⏎ ⏎ for i in 0..<foo.len: ⏎ echo foo[i]``` [https://gitter.im/nim-lang/Nim?at=5aabf71e8f1c77ef3acaddc2] |
16:57:01 | FromGitter | <zacharycarter> same issue with seq |
16:57:11 | FromGitter | <zacharycarter> @gogolxdong |
16:58:32 | FromGitter | <brentp> here is the error I get, in case it helps ⏎ ⏎ ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=5aabf7b7bb1018b37af0a787] |
16:59:47 | FromGitter | <gogolxdong> yes,thanks for helping @zacharycarter |
17:01:00 | FromGitter | <mratsim> uh yes sorry |
17:01:19 | FromGitter | <mratsim> for i, v in yourarray: would give you the index and the value |
17:02:00 | FromGitter | <gogolxdong> seems not apply to JsonArray? |
17:03:09 | * | sendell quit (Remote host closed the connection) |
17:07:52 | * | Jesin joined #nim |
17:07:52 | FromGitter | <data-man> @shashlick: more details for 2, please |
17:13:05 | FromGitter | <zacharycarter> question - why are objects returned from C FFI sometimes with angled brackets around them |
17:13:12 | FromGitter | <zacharycarter> so instead of getting like ptr SomeType |
17:13:17 | FromGitter | <zacharycarter> I get - <ptr SomeType> |
17:15:33 | FromGitter | <zacharycarter> ah nevermind |
17:15:35 | FromGitter | <zacharycarter> I'm just being stupid |
17:17:54 | shashlick | @data-man: thinking of adding more procs to nimscript so you can do more fun things in scripts without having to compile |
17:18:21 | shashlick | an alternative idea is to help get more modules to work in the VM (i.e. in nimscripts or during macro execution) |
17:19:03 | shashlick | but i don't know how easy it is :) |
17:19:34 | shashlick | some of it seems straightforward - https://github.com/nim-lang/Nim/blob/5ea80b43b1805003d8c06ac5122c6e698c959f52/compiler/scriptconfig.nim#L55 |
17:20:11 | shashlick | but not sure about getting more complex stdlib modules working in the VM |
17:21:35 | FromGitter | <data-man> @shashlick: I vote for 2 :) |
17:26:09 | shashlick | so looks like #2 is also multi-part - 2.1 getting more functionality into nimscript and 2.2 getting some specific stdlib module working in the VM |
17:26:34 | shashlick | need guidance on whether this is valuable and if there's already some known issues tracking this somewhat |
17:27:00 | FromGitter | <zacharycarter> https://github.com/zacharycarter/nim-sass |
17:29:08 | shashlick | nice work @zacharycarter |
17:29:21 | FromGitter | <zacharycarter> thx |
17:29:25 | shashlick | don't see the nimgen artifacts |
17:29:48 | * | yglukhov_ joined #nim |
17:30:06 | FromGitter | <zacharycarter> yeah - I didn't include the nimgen cfg - I had to do some stuff manually (wasn't sure how to make the required source modifications using nimgen) |
17:31:57 | * | yglukhov quit (Ping timeout: 240 seconds) |
17:32:30 | shashlick | what kind of changes? |
17:32:44 | FromGitter | <zacharycarter> let me try to find the blocks of code that were giving me issue |
17:33:15 | FromGitter | <zacharycarter> these typedef statements here : https://github.com/sass/libsass/blob/master/include/sass/functions.h#L23-L41 |
17:33:25 | FromGitter | <zacharycarter> the parentheses around the alias screw up c2nim |
17:38:09 | * | yglukhov_ quit (Ping timeout: 264 seconds) |
17:38:42 | * | yglukhov joined #nim |
17:46:26 | shashlick | am wondering how nimgen could help |
17:51:25 | * | cspar joined #nim |
17:51:32 | shashlick | I can do regex replaces within nimgen https://github.com/genotrance/nimgen/blob/6d0abefe8a3c3bb060941cd664fc66dc3cefbd21/nimgen.nim#L223 |
17:51:32 | * | brainproxy joined #nim |
17:52:02 | shashlick | need to do a regex search from the cfg file |
17:52:23 | * | Trustable quit (Remote host closed the connection) |
17:52:29 | * | rbrt quit (Quit: Oíche mhaith) |
17:52:36 | shashlick | like searchregex = "typedef struct (.?) ((.?));" or something |
17:53:06 | brainproxy | seems like nim-mode keeps getting confused, i installed w/ melpa and did the basic setup per the readme; nimsuggest and flycheck are working, but if there's a problem and I fix it, sometimes the buffer gets stuck w/ highlighted lines and there are still error messages even though the offending code is gone or fixed |
17:53:15 | * | endragor joined #nim |
17:53:45 | * | Jesin quit (Quit: Leaving) |
17:53:57 | * | cspar_ quit (Ping timeout: 240 seconds) |
17:55:30 | shashlick | not available today - typedef struct (.?) ((.?));" |
17:55:36 | shashlick | https://github.com/genotrance/nimgen/issues/2 |
17:57:49 | * | endragor quit (Ping timeout: 260 seconds) |
17:58:50 | * | nsf joined #nim |
18:08:09 | * | fvs joined #nim |
18:22:15 | * | Mat4 left #nim (#nim) |
18:46:17 | * | smt joined #nim |
18:46:37 | FromGitter | <dandevelo> I am looking to generate an xml file with Nim based on a template. Where should I start? |
18:57:39 | * | r3d9u11 quit (Remote host closed the connection) |
19:05:13 | * | NimBot joined #nim |
19:10:07 | fvs | https://nim-lang.org/docs/lib.html#pure-libraries-xml-processing |
19:19:45 | FromGitter | <dandevelo> Thanks @fvs! |
19:24:23 | * | DarkArctic quit (Remote host closed the connection) |
19:33:28 | * | nsf quit (Quit: WeeChat 2.0.1) |
19:35:31 | * | cyberlis joined #nim |
19:39:01 | * | DarkArctic joined #nim |
19:47:55 | * | fvs left #nim ("ERC (IRC client for Emacs 25.3.1)") |
19:51:10 | * | libman_ left #nim (#nim) |
20:09:23 | * | DarkArctic_ joined #nim |
20:09:27 | * | DarkArctic quit (Remote host closed the connection) |
20:09:42 | * | DarkArctic_ is now known as DarkArctic |
20:17:09 | * | BitPuffin quit (Remote host closed the connection) |
20:29:28 | * | btbytes quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
20:30:21 | * | btbytes joined #nim |
20:31:16 | * | jalbo joined #nim |
20:37:38 | * | athenot quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
20:40:37 | * | cyberlis quit (Ping timeout: 256 seconds) |
20:55:17 | * | Vladar quit (Quit: Leaving) |
20:58:11 | * | cyberlis joined #nim |
21:04:45 | * | cyberlis quit (Quit: Leaving) |
21:05:39 | * | btbytes quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
21:06:43 | * | MJCaley joined #nim |
21:08:09 | * | qleda quit (Ping timeout: 264 seconds) |
21:10:29 | * | miran joined #nim |
21:30:32 | * | nsf joined #nim |
21:51:29 | * | btbytes joined #nim |
21:53:09 | * | btbytes quit (Client Quit) |
21:56:54 | * | Mat4 joined #nim |
21:58:53 | * | Mat4 quit (Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org) |
22:03:39 | * | miran quit (Quit: Konversation terminated!) |
22:07:18 | * | nsf quit (*.net *.split) |
22:07:18 | * | jalbo quit (*.net *.split) |
22:07:19 | * | xkapastel quit (*.net *.split) |
22:07:20 | * | rauss quit (*.net *.split) |
22:07:21 | * | gangstacat quit (*.net *.split) |
22:07:21 | * | ieatnerds quit (*.net *.split) |
22:07:21 | * | abeaumont quit (*.net *.split) |
22:07:22 | * | JacobEdelman quit (*.net *.split) |
22:07:22 | * | Sentreen quit (*.net *.split) |
22:07:22 | * | allan0 quit (*.net *.split) |
22:07:22 | * | EastByte quit (*.net *.split) |
22:07:52 | * | nsf joined #nim |
22:07:52 | * | jalbo joined #nim |
22:07:52 | * | xkapastel joined #nim |
22:07:52 | * | rauss joined #nim |
22:07:52 | * | gangstacat joined #nim |
22:07:52 | * | ieatnerds joined #nim |
22:07:52 | * | abeaumont joined #nim |
22:07:52 | * | JacobEdelman joined #nim |
22:07:52 | * | Sentreen joined #nim |
22:07:52 | * | allan0 joined #nim |
22:07:52 | * | EastByte joined #nim |
22:08:30 | * | xkapastel quit (Max SendQ exceeded) |
22:10:19 | * | xkapastel joined #nim |
22:11:04 | * | vivus joined #nim |
22:15:40 | * | rbrt joined #nim |
22:28:22 | * | vlad1777d_ joined #nim |
22:30:11 | * | endragor joined #nim |
22:34:40 | * | endragor quit (Ping timeout: 268 seconds) |
22:35:11 | * | nsf quit (Quit: WeeChat 2.0.1) |
22:48:35 | * | jaco60 quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
23:05:53 | Araq | leorize: the transformation is in "destroyer.nim" |
23:06:51 | Araq | semasgn contains the lifting of '=' etc to compound types |
23:07:43 | Araq | these are pretty much the only files that are concerned with destructor injections and move optimizations |
23:07:50 | Araq | for --newruntime |
23:15:28 | * | jalbo quit (Remote host closed the connection) |
23:18:09 | * | ipjk joined #nim |
23:44:57 | * | rbrt quit (Quit: Oíche mhaith) |