00:02:57 | dom96 | It really makes me sad that mitsuhiko is just ignoring this https://twitter.com/d0m96/status/1092530232685445122 |
00:03:01 | * | housecarpenter quit (Quit: Leaving) |
00:07:30 | * | rnrwashere quit (Remote host closed the connection) |
00:10:45 | smitop | Why does my Nim program segfault when I call `glCreateProgram`? |
00:10:56 | smitop | SIGSEGV |
00:11:02 | smitop | I'm using the offical wrapper |
00:11:23 | smitop | I think it might have something to do with extension loading |
00:11:49 | * | rnrwashere joined #nim |
00:12:44 | smitop | `SIGSEGV: Illegal storage access. (Attempt to read from nil?` |
00:18:02 | * | rnrwashere quit (Remote host closed the connection) |
00:19:15 | FromDiscord_ | <demotomohiro> smitop, did you created opengl context and call a proc to initialize opengl extension functions? |
00:19:30 | FromDiscord_ | <Generic> loadExtensions() |
00:20:17 | FromDiscord_ | <demotomohiro> loadExtensions() must be executed after the creation of a rendering context and before any OpenGL extension procs are used. |
00:20:51 | FromDiscord_ | <demotomohiro> https://github.com/nim-lang/opengl |
00:21:44 | FromDiscord_ | <demotomohiro> Readme.md of this repo say so |
00:25:45 | * | rnrwashere joined #nim |
00:26:44 | * | rnrwashere quit (Remote host closed the connection) |
00:27:36 | * | thomasross quit (Remote host closed the connection) |
00:28:46 | * | d10n-work quit (Quit: Connection closed for inactivity) |
00:31:26 | * | thomasross joined #nim |
00:31:35 | * | rnrwashere joined #nim |
00:45:53 | * | ikan-keli_ quit (Ping timeout: 245 seconds) |
00:47:30 | * | rnrwashere quit (Remote host closed the connection) |
00:51:33 | * | rnrwashere joined #nim |
00:53:54 | * | ikan-keli_ joined #nim |
00:55:39 | * | rnrwashere quit (Read error: Connection reset by peer) |
00:55:52 | * | rnrwashere joined #nim |
00:59:18 | * | vlad1777d joined #nim |
01:00:02 | * | rnrwashere quit (Ping timeout: 246 seconds) |
01:00:07 | * | ikan-keli_ quit (Read error: Connection reset by peer) |
01:01:44 | * | Cthalupa quit (Ping timeout: 272 seconds) |
01:02:06 | * | rnrwashere joined #nim |
01:03:31 | * | Cthalupa joined #nim |
01:04:34 | * | ikan-keli_ joined #nim |
01:06:26 | * | rnrwashere quit (Ping timeout: 240 seconds) |
01:07:27 | * | zachk quit (Quit: Leaving) |
01:13:33 | * | Marflutter joined #nim |
01:13:35 | * | Marflutter left #nim (#nim) |
01:27:26 | * | rnrwashere joined #nim |
01:27:43 | * | rnrwashere quit (Remote host closed the connection) |
01:27:57 | * | rnrwashere joined #nim |
01:28:00 | * | rnrwashere quit (Remote host closed the connection) |
01:46:17 | * | rnrwashere joined #nim |
01:46:54 | * | pezhead9000 joined #nim |
01:48:55 | * | pezhead9000 quit (Remote host closed the connection) |
02:14:13 | * | rnrwashere quit (Remote host closed the connection) |
02:21:45 | * | libman quit (Quit: leaving) |
02:23:24 | * | libman_ joined #nim |
02:32:31 | * | rnrwashere joined #nim |
02:56:05 | * | rnrwashere quit (Remote host closed the connection) |
03:02:26 | * | banc quit (Quit: Bye) |
03:04:51 | * | rnrwashere joined #nim |
03:07:07 | * | libman_ is now known as libman |
03:07:23 | * | rnrwashere quit (Remote host closed the connection) |
03:08:23 | * | Laphrie joined #nim |
03:09:24 | * | rnrwashere joined #nim |
03:09:32 | * | Laphrie quit (Remote host closed the connection) |
03:20:36 | * | rnrwashere quit (Remote host closed the connection) |
03:23:56 | * | banc joined #nim |
03:27:31 | * | rnrwashere joined #nim |
03:28:42 | * | rnrwashere quit (Remote host closed the connection) |
03:31:09 | * | dddddd quit (Remote host closed the connection) |
03:32:46 | * | rnrwashere joined #nim |
03:39:05 | * | Bathrobinson joined #nim |
03:39:07 | * | Bathrobinson left #nim (#nim) |
03:50:38 | * | rnrwashere quit () |
04:00:24 | * | Snircle quit (Quit: Textual IRC Client: www.textualapp.com) |
04:22:54 | * | smitop quit (Quit: Connection closed for inactivity) |
04:27:10 | FromGitter | <timotheecour> can anyone merge my PR? https://github.com/nim-lang/Nim/pull/10592 it un-breaks the current build failure |
04:27:23 | FromGitter | <timotheecour> @araq ? |
04:31:13 | shashlick | i'll set to merge when CI passes |
04:33:27 | FromGitter | <timotheecour> thx man; been fixing regressions all day... |
04:34:07 | FromGitter | <timotheecour> now we just need to convince araq to merge https://github.com/nim-lang/Nim/pull/10588 which will unblock nimterop |
04:39:28 | * | nsf joined #nim |
04:44:45 | * | volkov joined #nim |
05:27:22 | * | vlad1777d quit (Ping timeout: 268 seconds) |
05:39:28 | * | vlad1777d joined #nim |
06:12:28 | * | narimiran joined #nim |
06:26:18 | * | vlad1777d quit (Ping timeout: 245 seconds) |
06:53:16 | * | vlad1777d joined #nim |
07:01:27 | * | krux02 joined #nim |
07:06:36 | krux02 | good morning |
07:20:28 | * | Vladar joined #nim |
07:25:59 | narimiran | IMO, this deserves more attention than it is currently having: https://github.com/liwt31/NPython |
07:33:05 | Zevv | I'm trying to find a nice way to bind a library which takes a context pointer to all its functions. What I want to achieve is that a template creates an implicit instance of the context, which then gets passed to all the functions which are usable in the template block. |
07:33:09 | Zevv | http://paste.debian.net/plain/1065772 |
07:33:41 | Zevv | Problem is that I need to define all procs/templates inside the main template to make sure they can reach the implicit context, but now I get redifinitions |
07:33:59 | Zevv | any obvious solutions I'm not smart enough to think of myself? |
07:34:06 | * | rokups joined #nim |
07:52:14 | * | enow joined #nim |
08:00:00 | * | gmpreussner quit (Quit: kthxbye) |
08:05:03 | * | gmpreussner joined #nim |
08:13:25 | Araq | Zevv: yeah |
08:13:51 | Araq | here is one idea: |
08:14:20 | Araq | - the wrapped C proc gets a suffix like 'Impl' |
08:14:55 | Araq | say, proc fooImpl(c: Context, params) {.importc: "foo", etc.} |
08:15:06 | Araq | and then you have a foo template that does |
08:15:20 | Araq | template foo(params) = fooImpl(context, params) |
08:15:56 | Araq | and then you can program almost as if 'context' is not an issue, since it's the convention to have a context in the current scope |
08:16:07 | Araq | that is always named 'context' |
08:16:31 | Araq | the fooImpl + foo combination can be generated from a template or macro |
08:16:50 | Zevv | that makes sense; close to where I was but not quite. Let me try that |
08:18:21 | Zevv | I never though of referring to something in a template that doesn't exist :) |
08:20:40 | Zevv | Yes, {.inject.} was the missing link |
08:20:41 | Zevv | thanks |
08:24:51 | enow | hi guys, listen I ran into something super weird when dealing with websockets |
08:25:14 | Araq | enow: it stops serving after a while without a crash? |
08:25:26 | enow | when I had a passed a string to ws.sendPacket with a return value I had a delay |
08:25:30 | enow | nope |
08:25:48 | enow | but if I first stored it in a varaible and then passed it to the function it went much quicker |
08:27:29 | enow | hm ah never mind probably nothing |
08:27:42 | Araq | ok, good |
08:28:37 | Zevv | hehe: unsafeAddr vs[0] gives me an error "expression has no address; maybe use 'unsafeAddr'" :) |
08:29:04 | Araq | gah, report it please |
08:29:10 | Zevv | was about to |
08:29:16 | Zevv | trying to take unsafaddr of varargs |
08:29:18 | FromGitter | <timotheecour> ya, that error happens all the time, it’s annoying, please report it |
08:29:44 | Zevv | timotheecour: more examples to trigger this? |
08:30:48 | FromGitter | <timotheecour> proc main() = echo unsafeAddr main |
08:30:53 | FromGitter | <timotheecour> this 1 liner will trigger it |
08:30:57 | Zevv | sweet |
08:31:09 | Zevv | I needed 2 lines :) |
08:32:09 | FromGitter | <timotheecour> @araq we’re still block on the regression introduced by system refactoring; i’ve stripped https://github.com/nim-lang/Nim/pull/10588 to the bare minimum, could u please review |
08:34:28 | Araq | you got your tag |
08:34:55 | FromGitter | <timotheecour> ok thanks; what about this one: https://github.com/nim-lang/Nim/pull/10572 |
08:35:03 | FromGitter | <timotheecour> u had requested it remember? |
08:52:02 | Zevv | if varargs implicitly converts the args into an array, why is it not possible to get the (unsafe |
08:52:09 | Zevv | ) address of that array? |
08:55:36 | Zevv | oh nvrmind; template/proc |
08:59:51 | * | volkov quit (Quit: volkov) |
09:08:18 | dom96 | narimiran: indeed, https://github.com/liwt31/NPython is super awesome. Thanks for flagging! |
09:08:32 | dom96 | Did you guys see https://news.ycombinator.com/item?id=19086712? |
09:10:05 | FromGitter | <zetashift> yea I did |
09:10:23 | FromGitter | <zetashift> I like how several people commented Nim in the thread he |
09:11:36 | FromGitter | <zetashift> I dislike the `:=` operator for new variable assignment I find it unclear in Go. Also it seems it wants to have Rust manual memory management but easier, doesn't give a lot of details |
09:12:33 | * | dragan quit (Ping timeout: 256 seconds) |
09:20:05 | * | PMunch joined #nim |
09:23:24 | * | neceve joined #nim |
09:26:48 | * | floppydh joined #nim |
09:38:02 | dom96 | yeah, it's very wishy washy and I bet many people are projecting their dream language onto it |
09:40:50 | FromGitter | <zetashift> well tbf in the author's defense he wanted to wait for the actual release, it should've never been posted at HN |
09:44:18 | * | pwntus quit (Remote host closed the connection) |
09:54:28 | * | pwntus joined #nim |
09:56:02 | Zevv | oh hi dom96, I see you are in the HN volt thread as well :) |
09:58:58 | Zevv | If anyone happened to see my question from 08:33: the implicit context hiding using templates works just fine, but now I'd like to add a converter from some native types to Z3_ast. The converter needs the context as well, but converters are not templates so the above mechanism does not apply here. |
10:19:30 | leorize | Araq: I've cleaned this up: https://github.com/nim-lang/Nim/pull/10496 |
10:19:34 | leorize | is it ok now? |
10:22:45 | Araq | much better, thank you! |
11:11:16 | * | smitop joined #nim |
11:25:18 | * | zahary joined #nim |
12:26:52 | * | stefanos82 joined #nim |
12:32:40 | shashlick | NPython could have used tree sitter to save some time |
12:36:07 | * | zahary quit (Quit: Leaving.) |
12:37:30 | shashlick | Volt will be cool when he releases something, it's amazing vaporware |
12:37:48 | shashlick | Has anyone tried the Mac version? |
12:45:53 | * | nsf quit (Quit: WeeChat 2.3) |
12:48:27 | FromGitter | <alehander42> what is volt |
12:52:27 | Zevv | https://volt.ws/lang |
12:52:39 | Zevv | I*R, also |
13:11:37 | shashlick | Volt is a chat client built from scratch, supposed to be light weight compared to electron based stuff |
13:16:51 | * | dddddd joined #nim |
13:27:48 | * | Vladar quit (Ping timeout: 272 seconds) |
13:42:17 | * | Snircle joined #nim |
13:48:32 | Araq | nimble install nimforum |
13:48:39 | Araq | Error: Package not found. |
13:48:41 | Araq | huh... |
13:52:31 | FromGitter | <Clyybber> The two glfw packages in nimble are creating really wierd problems |
14:00:53 | * | zahary joined #nim |
14:22:50 | PMunch | Are there any larger projects that cross-compiles to the JS target? |
14:27:04 | Araq | PMunch, Reel Valley used it, they later abandoned the idea because emscripten produced better code |
14:27:21 | Araq | but it used to work |
14:27:24 | PMunch | Yeah, that's why I'm asking :P |
14:27:41 | PMunch | I wrote in my companion post that Reel Valley used the JS target for Facebook |
14:27:51 | Araq | it depends on what you're after, games are quite different from SPAs |
14:28:14 | Araq | for an SPA you don't want to run it in an SDL2 emulator ;-) |
14:28:21 | Araq | you need a DOM |
14:28:28 | PMunch | But yglukhov[m] just corrected me over Telegram so I was looking for another example. |
14:29:17 | * | Vladar joined #nim |
14:29:30 | PMunch | Yeah I guess that's true, until we have a cross-platform UI framework that has a HTML target there isn't really many C/JS projects that makes sense |
14:30:58 | * | nsf joined #nim |
14:40:49 | * | thomasross quit (Read error: Connection reset by peer) |
14:43:44 | * | thomasross joined #nim |
14:58:35 | shashlick | Has anyone written a package that makes shared data across threads with locks easier? |
14:59:25 | FromGitter | <Clyybber> dom96 are you there? |
15:03:39 | * | noonien joined #nim |
15:07:03 | * | dom96_w joined #nim |
15:07:51 | dom96_w | shashlick: A Python parser in Nim is a pretty awesome and valuable thing |
15:09:05 | * | zahary quit (Quit: Leaving.) |
15:09:24 | dom96_w | PMunch: Not sure if my Snake game is large enough, but it does that. |
15:10:00 | dom96_w | Also, the forum does too to a certain extent, it shares data structures which are sent between browser and server serialised as JSON |
15:10:22 | dom96_w | Clyybber: Please ask whatever it is you need to ask instead of asking whether I'm around :) |
15:10:37 | FromGitter | <Clyybber> dom96_w: Hi, sry will do :D |
15:10:52 | PMunch | dom96_w, can you run the snake game without a browser? |
15:10:56 | * | zahary joined #nim |
15:11:03 | dom96_w | PMunch: nope |
15:11:16 | PMunch | Ah, so it doesn't target both C and JS then.. |
15:11:36 | PMunch | Or it's the same as the forums, C server and JS front-end |
15:12:50 | narimiran | dom96_w: maybe he just wanted to know if you're here? :) |
15:13:10 | * | smitop quit (Quit: Connection closed for inactivity) |
15:13:28 | dom96_w | It does target both |
15:13:50 | * | Vladar quit (Ping timeout: 250 seconds) |
15:14:18 | Araq | dom96_w, why is nimforum not in nimble? |
15:14:54 | * | Vladar joined #nim |
15:15:19 | shashlick | what is faster - channels or shared data with locks |
15:15:39 | dom96_w | Araq: There is no reason, except: I have no need for it to be in Nimble |
15:16:13 | * | volkov joined #nim |
15:16:19 | dom96_w | It's not the type of application that will typically be installed via the language's package manager |
15:16:27 | dom96_w | You're better off downloading the release tarball |
15:16:33 | Araq | ok, how do I compile nimforum? |
15:16:43 | Araq | ..\..\nim\lib\pure\md5.nim(172, 3) Error: undeclared identifier: 'zeroMem' |
15:17:08 | FromGitter | <Clyybber> dom96_w: There are two nimble packages for glfw, this one: https://github.com/rafaelvasco/nimrod-glfw and this one: https://github.com/ephja/nim-glfw , the problem is, the first one is called nimrod-glfw in nimbles package list, but it's nimble file defines the name as glfw, while ephja's package is called glfw in nimbles package list. This makes nimble install both to a glfw-[version] directory. ⏎ This causes nimble |
15:17:08 | FromGitter | ... to get confused when you `require "nimrod-glfw"` as it will ask to overwrite itself everytime you run `nimble build`. ⏎ `require "glfw"` works and autodownloads ephja's library, except when nimrod-glfw is installed already. Then it will just use rafaelvasco's version. ⏎ Sorry for the wall of text :P [https://gitter.im/nim-lang/Nim?at=5c5c4bf4f04ef00644f5ed8b] |
15:20:04 | dom96_w | nimrod-glfw needs to change its name |
15:20:54 | FromGitter | <Clyybber> Yeah, this seems like the only viable solution |
15:21:34 | Araq | ah never mind, I'm stupid |
15:21:37 | FromGitter | <Clyybber> Unfortunately its not really actively maintained. |
15:24:09 | dom96_w | Araq: https://github.com/nim-lang/nimforum#development |
15:25:46 | Araq | ... forum.nim(11, 3) Error: cannot open file: scgi |
15:25:59 | narimiran | moved to graveyard, isn't it? |
15:26:58 | Araq | could not load: libsass.dll |
15:30:26 | * | fanta7531 joined #nim |
15:34:28 | FromGitter | <Clyybber> `docker pull nimlang/nim:devel` as described here https://nim-lang.org/install_unix.html doesn't seem to be the latest devel nim? Can anyone confirm? |
15:40:25 | * | volkov quit (Remote host closed the connection) |
15:44:00 | * | PMunch quit (Remote host closed the connection) |
15:44:26 | FromGitter | <Clyybber> Its on 0.15.3 ... |
15:51:12 | dom96_w | Araq: doubt it will work on Windows |
15:51:20 | dom96_w | also lol https://irclogs.nim-lang.org/18-12-2014.html#20:36:04 |
15:52:01 | narimiran | hahah, how did you find that? you knew it was somewhere there? |
15:52:28 | FromGitter | <Clyybber> dom96_w: Do you maintain the docker images normally? |
15:52:34 | dom96_w | nope |
15:52:53 | dom96_w | narimiran: I had a deja vu and decided to search for libsass in the IRC logs :P |
15:53:47 | narimiran | "what do you remember from your highschool days?" |
15:53:51 | livcd | guys you were so excited with Reel Valley getting open sourced...you should try to at least compile it :P |
15:54:01 | narimiran | "weeellll, araq mentioned libsass once" |
15:54:14 | FromGitter | <Clyybber> Araq: FYI docker supports automated building, so nimlang/nim:devel could be made to work again. |
15:59:30 | * | smitop joined #nim |
16:32:56 | * | Trustable joined #nim |
16:37:02 | * | d10n-work joined #nim |
16:38:08 | * | enow quit (Quit: leaving) |
16:42:12 | * | floppydh quit (Quit: WeeChat 2.3) |
16:43:46 | Araq | dom96_w: my nimble keeps saying 'what?' |
16:47:48 | * | craigger quit (Quit: bye) |
16:59:22 | * | nsf quit (Quit: WeeChat 2.3) |
17:00:13 | * | fanta7531 quit (Quit: fanta7531) |
17:05:08 | * | nsf joined #nim |
17:23:13 | federico3 | it's confused |
17:29:28 | * | dragan joined #nim |
17:31:25 | * | dragan quit (Client Quit) |
17:49:08 | * | flaviu quit (Ping timeout: 268 seconds) |
17:56:32 | * | aguspiza joined #nim |
18:01:23 | * | seni joined #nim |
18:01:50 | xace_ | wait, reel valley became open sourced? |
18:01:55 | * | dragan joined #nim |
18:02:36 | * | Tyresc joined #nim |
18:03:03 | xace_ | i have really badly wanted to compile a nim program to a working android apk, but havent found the time to start working that out and almost resorting to using kivy instead... |
18:03:12 | * | Jesin quit (Quit: Leaving) |
18:03:24 | * | dragan quit (Client Quit) |
18:03:48 | * | dragan joined #nim |
18:04:21 | dragan | Hey |
18:04:38 | xace_ | Hello |
18:06:37 | dragan | anyone knows what is the equivalent of C++'s myTypeArr= new myType[int_num] in Nim? |
18:09:50 | * | Jesin joined #nim |
18:09:58 | leorize | is that a dynamically resizable array? |
18:10:48 | leorize | see `newSeq` |
18:11:52 | dragan | yes, but newSeq doesnt have type, only number of elements... |
18:12:06 | leorize | it does |
18:12:10 | leorize | it's a generic proc |
18:12:12 | narimiran | dragan: `newSeq[int]()` |
18:12:51 | dragan | uh, i didnt know that :) |
18:12:56 | xace_ | var myTypeArray = newSeq[myType](int_num) |
18:15:04 | leorize | xace_: there's hope for a vim version of nim.nvim |
18:15:15 | dragan | works :) |
18:16:05 | leorize | TheLemonMan told me that vim does support TCP connections, so it's possible to port my plugin over :) |
18:16:17 | narimiran | dragan: and if your seq will not grow, it might be better to use `var mta: array[nrOfElements, int]` |
18:17:25 | dragan | also, its odd why sizeof(someStruct) cant be used in expression, but echo sizeof(someStruct) works |
18:17:36 | xace_ | leorize: thats cool that makes me happy. yeah i saw the convo. but i was busy forcing very ugly hacks on the existing nim.vim script to support ctags and tagbar etc... |
18:18:07 | * | nsf quit (Ping timeout: 240 seconds) |
18:18:24 | leorize | the bad part is that there's no universal interface for vim and neovim channels |
18:18:31 | leorize | and I'm not willing to write one |
18:18:50 | * | nsf joined #nim |
18:18:50 | leorize | if you can find one then I'll consider adding vim 8+ support |
18:19:23 | dragan | narimian: I tried that, but sizeof(someStruct) must be known at compile time, but echoing works, its a fixed int, nothing special |
18:19:37 | * | krux02 quit (Remote host closed the connection) |
18:19:40 | xace_ | yeah, don't feel bad about it, neovim and vim aren't exactly compatible |
18:19:42 | leorize | dragan: what version of Nim are you running? |
18:19:53 | narimiran | dragan: what vers..... ah, leorize was quicker :) |
18:20:36 | dragan | nim 0.19.4 |
18:20:50 | xace_ | leorize: unfortunately i have not been in much need of familiarizing with vim scripting, based on TheLemonMan's info he is more familiar with it. but I don't mind looking it up and letting you know. |
18:21:05 | leorize | thanks :) |
18:21:14 | narimiran | dragan: can you send me your code with sizeof which didn't work? i'll test it on nim devel (0.19.9), it might work |
18:21:16 | xace_ | no, thank you :) |
18:21:29 | dragan | sure |
18:21:46 | leorize | use a paste service please :p |
18:23:10 | * | smitop quit (Quit: Connection closed for inactivity) |
18:23:28 | dragan | its a little tricky, im reading from a bin file |
18:24:46 | leorize | you can try striping the code to bare minimum |
18:25:08 | leorize | all it matters is that the code compiles, right? |
18:28:52 | narimiran | dragan: i don't know if this is what you want, but this works on devel http://ix.io/1Art |
18:29:15 | * | dom96_w quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
18:30:58 | dragan | here it is: http://pasteall.org/1479779/ |
18:31:28 | narimiran | yup, works on devel |
18:31:44 | dragan | how is that possible :))) |
18:32:14 | narimiran | because devel has some nice new stuff that 0.19.4 doesn't :) |
18:32:38 | dragan | but this is basic stuff lol |
18:33:32 | * | Trustable quit (Remote host closed the connection) |
18:33:52 | xace_ | leorize: this might be a early guess as i'm not familiar with your nim.nvim but browsing through your code it seems like https://github.com/prabirshrestha/async.vim # might be what you are looking for *jedi-mind-trick-hand-waving* |
18:34:43 | leorize | almost :p |
18:34:50 | leorize | it does have the job api, which is nice |
18:34:58 | leorize | but not the tcp channels :( |
18:35:58 | * | nimuser joined #nim |
18:36:11 | xace_ | Hmm, you are right, these are not the droids you are looking for |
18:36:46 | * | noeontheend joined #nim |
18:36:51 | * | nimuser quit (Client Quit) |
18:37:14 | * | nimuser joined #nim |
18:37:38 | * | nimuser quit (Client Quit) |
18:38:26 | xace_ | Oh, seems like TheLemonMan already mentioned it |
18:43:23 | xace_ | leorize: for the moment i have set up an emergency environment for myself. but with time i'll look into your codebase and see what can be done, because just looking at your demo makes me smile because it's basically what I want for my vim/nim working environment |
18:43:39 | * | kapil____ quit (Quit: Connection closed for inactivity) |
18:44:30 | * | neceve quit (Remote host closed the connection) |
18:49:31 | leorize | xace_: glad you like it :) aside from the jobs/channels part the code should work in vim 8+ |
18:51:31 | dragan | can i call fread directly, instead of proc fseek(f: File, offset: clong, whence: int): int {.importc: "fseek", header: "<stdio.h>", tags: [].} ? |
18:51:52 | dragan | sorry, fseek, not fread |
18:52:20 | leorize | declare that once and you can call it as you'd like |
18:52:29 | FromGitter | <arnetheduck> so Araq, the system.io refactoring, `io` will still be implicitly imported? |
18:52:36 | xace_ | leorize: yeah i ran it just now and it spits out some very specific lines, and since you seem to be looking positively at it, i feel like it's realistically a reachable goal... but before I go there I really need to clean up my vim config ._. |
18:52:45 | narimiran | @arnetheduck for now |
18:52:58 | dragan | i thouth this is imported from io, or system |
18:53:12 | leorize | it's a implementation thing |
18:53:17 | leorize | so it's not exported |
18:53:24 | FromGitter | <Clyybber> narimiran Sry to ask again about docker, but do you know who the maintainer is? |
18:53:54 | dragan | ok, thanks |
18:54:32 | narimiran | @Clybber https://github.com/moigagoo/nimage |
18:54:57 | FromGitter | <Clyybber> Thank you :D |
18:55:34 | leorize | narimiran: the std lib docs link in nim-lang.org is pointing to bleeding edge |
18:55:41 | narimiran | leorize: on purpose |
18:56:06 | leorize | with the io split, you can't see io functions anymore |
18:57:09 | leorize | and it's also referencing modules that don't exist in the latest stable |
18:57:11 | FromGitter | <arnetheduck> @narimiran every step counts ;) |
18:57:29 | narimiran | @arnetheduck patience.... :) |
18:58:10 | narimiran | leorize: https://github.com/nim-lang/Nim/commit/c95616f6ee353dd939a10023c29be087644e85be there will be IO docs available |
18:58:36 | leorize | well, but then you can't look for them in system doc :/ |
18:59:12 | narimiran | leorize: yeah, some discrepancy is expected, but it is a compromise so now you can go through the more informative docs |
18:59:38 | leorize | guess everything will be back to normal once 0.20.0 arrives? |
18:59:42 | narimiran | yup |
19:10:28 | * | Cthalupa quit (Ping timeout: 245 seconds) |
19:11:32 | * | noeontheend quit (Remote host closed the connection) |
19:13:00 | * | Cthalupa joined #nim |
19:18:50 | * | nsf quit (Quit: WeeChat 2.3) |
19:19:09 | * | TheLemonMan joined #nim |
19:20:52 | TheLemonMan | why do we have two modules for atomic operations? (atomics and concurrency/atomics) |
19:29:42 | TheLemonMan | awesome, the latter doesn't even compile in C mode, and using Atomic[T] in various places results in codegen errors :D |
19:30:20 | * | zachk joined #nim |
19:39:00 | * | Ven`` joined #nim |
19:56:06 | * | zachk quit (Changing host) |
19:56:06 | * | zachk joined #nim |
20:00:33 | * | Vladar quit (Remote host closed the connection) |
20:13:48 | * | rokups quit (Quit: Connection closed for inactivity) |
20:20:36 | * | koranza joined #nim |
20:30:46 | TheLemonMan | the way we render the doc comments for enums is atrocious |
20:33:20 | Zevv | [ANN] https://github.com/zevv/nimz3, in case anyone needs to solve sudokus |
20:35:28 | TheLemonMan | that's cool AF |
20:36:09 | narimiran | TheLemonMan: the same goes for the other types too, no? |
20:36:37 | Calinou | what does Z3 do exactly? its README isn't very clear what you can use it for |
20:37:02 | FromDiscord_ | <juan_carlos> ^ |
20:37:04 | Zevv | Calinou: you give it constraints and it gives you a solution |
20:37:41 | * | Trustable joined #nim |
20:37:42 | Zevv | so it can solve high school math problems "one apple costs $0.15, one banna..." etc |
20:37:52 | Zevv | but it is also able to formally prove basic algorithms |
20:38:00 | TheLemonMan | narimiran, I wanted to write a long-ish blurb about what each of the items do but it's just rendered as a plain comment w/ no RST formatting |
20:38:14 | Zevv | I don't understand any of it, it's way over my head, but making the Nim binding is a nice way to pick it up |
20:39:47 | shashlick | wow it just works man |
20:40:19 | shashlick | my text editor can now be remote controlled |
20:40:48 | narimiran | shashlick: my too, if i use keyboard as a remote |
20:41:01 | Zevv | shashlick: or use SSH :) |
20:41:30 | shashlick | well, the goal is for the GUI to be separate from the files |
20:41:50 | koranza | hi all, has anyone had trouble with "choosenim update devel" recently? On my Linux VM (Manjaro) i get a build failure with the message: "... Hint: rst [Processing] ... ../lib/packages/docutils/rst.nim(780, 6) Error: ambiguous call; both rstast.add(father: PRstNode, s: string)[declared in ../lib/packages/docutils/rstast.nim(92, 6)] and rstast.add(father: PRstNode, son: PRstNode)[declared in ../lib/packages/docutils/rstast.nim(89, 6)] match |
20:41:50 | koranza | for: (PRstNode, nil) ... FAILURE" |
20:42:23 | shashlick | so i can build/test my files on my linux machine which doing all routine editing on my windows laptop in a gui |
20:43:02 | koranza | If I manually edit rst.nim on lines 780 and 1541 to be 'add(result,"")' instead of 'add(result,nil)' the build works |
20:43:05 | shashlick | run `find -iname *.nim | editor` and everything magically opens in your gui, wherever it is |
20:43:14 | shashlick | that's teh goal anyway |
20:44:02 | Zevv | shashlick: sounds cool, but I'm too conservative for GUIs. I just do "vi `find . -name *nim`" :) |
20:45:34 | shashlick | well, considering I live in a command line all day, it is the way to drive this editor too |
20:45:55 | shashlick | full GUI power but driven from the command line |
20:46:01 | Zevv | sweet |
20:46:23 | shashlick | wherever that command line is |
20:47:26 | * | Cthalupa quit (Ping timeout: 240 seconds) |
20:48:12 | * | Cthalupa joined #nim |
20:48:53 | shashlick | make that plural |
20:50:47 | Zevv | whatever that command line isses |
20:52:18 | shashlick | well, you can have multiple clients which all talk to the editor |
20:52:32 | shashlick | using nng's bus protocol |
20:52:49 | shashlick | am trying to figure out how to identify each client so that i know which buffer belongs to who |
20:58:23 | * | smitop joined #nim |
21:00:08 | smitop | If the nim compiler is written in Nim, what was the initial implementation written in? |
21:00:23 | Zevv | Nim has always existed |
21:00:26 | narimiran | smitop: pascal, iirc |
21:00:35 | Zevv | I like my answer better :( |
21:00:44 | narimiran | agreed |
21:01:34 | Zevv | smitop: beleive there are still parts in the compiler source you're not supposed to look at, because these were converted/generated from the original pascal version, and Araq is not proud at the result |
21:02:29 | TheLemonMan | I believe the ugly parts are intentional heh |
21:04:16 | narimiran | that's my usual excuse too |
21:07:05 | dom96 | koranza: Guessing the build is broken |
21:13:08 | koranza | dom96: is "the build" referring to choosenim or nim itself? I didn't see the issue on my windows machine btw |
21:13:22 | dom96 | nim itself |
21:16:58 | * | narimiran quit (Ping timeout: 250 seconds) |
21:17:26 | * | aguspiza quit (Ping timeout: 240 seconds) |
21:18:14 | koranza | Oh, that makes sense. Could any "cfg" files play a role during the compile step with koch? The output looked like it only used the "cfg" files in .choosenim/toolchains/[...] instead of my home directory, but i thought maybe some compiler flag could play a role |
21:21:59 | * | wayne__ joined #nim |
21:23:08 | * | theelous3 joined #nim |
21:23:35 | * | wayne__ is now known as icebattle |
21:25:16 | * | zahary quit (Quit: Leaving.) |
21:26:38 | FromDiscord_ | <Due_Kindheartedness> Is this legal nim code |
21:26:43 | FromDiscord_ | <Due_Kindheartedness> alphaflag: array[0..25, bool] = [false..false] |
21:27:07 | * | icebattle quit (Quit: leaving) |
21:27:08 | shashlick | can you use streams peek* process on stdin? |
21:27:31 | * | wayne__ joined #nim |
21:28:08 | * | wayne__ quit (Client Quit) |
21:29:07 | * | icebattle joined #nim |
21:30:27 | FromDiscord_ | <Due_Kindheartedness> alphaflag: array[0..25, bool] = [false..false] |
21:30:48 | FromDiscord_ | <Due_Kindheartedness> is this legal nim code? and if it's not, what is the legal equivalent? |
21:32:01 | shashlick | peek of stdin doesn't work on windows, waits like read* procs, on linux it crashes |
21:42:10 | TheLemonMan | Due_Kindheartedness, the array is already initialized to false |
21:44:02 | * | zahary joined #nim |
21:46:31 | FromDiscord_ | <Due_Kindheartedness> when I have an else case that does nothing...do I just put nothing there and indent? |
21:49:43 | TheLemonMan | add `discard` |
21:50:20 | TheLemonMan | you can also do stuff like `discard "This case does nothing"` if you want to document your code |
21:53:30 | TheLemonMan | cool, jstin manages to serialize/deserialize tables w/o any help by dumping the internal state :D |
21:59:39 | * | Trustable quit (Remote host closed the connection) |
22:15:26 | * | Ven`` quit (Ping timeout: 240 seconds) |
22:22:08 | * | theelous3 quit (Ping timeout: 245 seconds) |
22:28:24 | * | ng0 joined #nim |
22:30:22 | * | zahary quit (Quit: Leaving.) |
22:34:18 | FromGitter | <Varriount> TheLemonMan: jstin? |
22:39:06 | * | zahary joined #nim |
22:44:35 | TheLemonMan | Varriount, https://github.com/LemonBoy/jstin |
22:44:59 | TheLemonMan | Jstin Timberlake, but he goes by Jstin |
22:45:21 | smitop | Why would you discard a string? Nim has *actual* comments |
22:45:58 | smitop | # You can make comments like this |
22:46:07 | dom96 | yeah, please don't abuse `discard` for this |
22:46:14 | dom96 | we've got multi-line comments now |
22:46:37 | TheLemonMan | that's how our lord and saviour Araq used to comment stuff, I'm just spreading his gospel |
22:50:54 | * | solitudesf quit (Read error: Connection reset by peer) |
22:50:56 | * | solitude_sf joined #nim |
23:18:13 | * | TheLemonMan quit (Quit: "It's now safe to turn off your computer.") |
23:22:38 | FromGitter | <zah> discard “any objections to this style" |
23:26:18 | FromGitter | <arnetheduck> ```discard """ ⏎ this is what a multi-line comment looks like ⏎ """``` [https://gitter.im/nim-lang/Nim?at=5c5cbe9a80df6804a168a153] |
23:30:09 | oz | ah, so comments are not a macro for discard ? :p |
23:33:14 | FromGitter | <dom96> @arnetheduck No. That's a hack that was deprecated. |
23:34:01 | * | koranza quit (Remote host closed the connection) |
23:35:43 | FromGitter | <arnetheduck> oz, we have that too: ⏎ ⏎ ```runnableExamles: "put your comment here, nothing beautiful will break"``` [https://gitter.im/nim-lang/Nim?at=5c5cc0cf8328315decb7e6f2] |
23:57:51 | * | disruptek joined #nim |
23:57:51 | * | zahary quit (Quit: Leaving.) |