00:05:17 | FromGitter | <awr1> @gogolxdong not quite sure what you're doing but you probably need a template or macro instead of a proc |
00:12:32 | FromGitter | <awr1> i don't know if you can do it without hacks |
00:12:39 | FromGitter | <awr1> specifically because https://forum.nim-lang.org/t/643 |
00:13:16 | * | Hideki_ joined #nim |
00:15:43 | FromGitter | <awr1> it depends largely on where buildhtml is |
00:17:23 | * | Hideki_ quit (Ping timeout: 245 seconds) |
00:52:39 | * | krux02 joined #nim |
00:56:13 | * | krux02 quit (Remote host closed the connection) |
01:09:20 | * | fov60 quit (Quit: WeeChat 2.5) |
01:21:35 | * | absolutejam1 joined #nim |
01:24:55 | * | laaron quit (Remote host closed the connection) |
01:26:08 | * | absolutejam1 quit (Ping timeout: 245 seconds) |
01:28:23 | * | laaron joined #nim |
01:40:55 | * | laaron quit (Quit: ZNC 1.7.1 - https://znc.in) |
01:41:15 | * | laaron joined #nim |
01:45:10 | * | theelous3 joined #nim |
01:54:03 | * | owl quit (Ping timeout: 240 seconds) |
01:54:47 | FromGitter | <gogolxdong> seems have to generate the code for a macro. |
01:55:16 | * | theelous3_ joined #nim |
01:55:36 | * | theelous3 quit (Read error: Connection reset by peer) |
02:41:39 | * | Tanger quit (Read error: Connection reset by peer) |
02:43:13 | * | Tanger joined #nim |
02:48:03 | * | rockcavera quit (Remote host closed the connection) |
02:57:36 | * | fov60 joined #nim |
03:28:45 | * | chemist69_ quit (Ping timeout: 246 seconds) |
03:30:53 | * | chemist69 joined #nim |
03:56:21 | * | dddddd quit (Remote host closed the connection) |
04:03:26 | * | fov60 quit (Ping timeout: 276 seconds) |
04:09:01 | * | thomasross quit (Remote host closed the connection) |
04:09:28 | * | thomasross joined #nim |
04:29:21 | * | laaron quit (Quit: ZNC 1.7.1 - https://znc.in) |
04:30:54 | * | laaron joined #nim |
04:40:44 | * | fjellfras joined #nim |
04:44:01 | * | cgfuh quit (Quit: WeeChat 2.5) |
04:44:49 | * | arecaceae quit (Remote host closed the connection) |
04:45:34 | * | arecaceae joined #nim |
04:51:13 | * | btop joined #nim |
04:54:39 | * | nsf joined #nim |
05:14:17 | * | absolutejam1 joined #nim |
05:14:24 | * | blu quit (Quit: Lost terminal) |
05:18:55 | * | absolutejam1 quit (Ping timeout: 265 seconds) |
05:21:05 | * | absolutejam1 joined #nim |
05:33:31 | * | laaron quit (Remote host closed the connection) |
05:34:45 | * | shashlick quit (Ping timeout: 246 seconds) |
05:35:43 | * | narimiran joined #nim |
05:36:10 | * | laaron joined #nim |
05:41:53 | * | laaron quit (Quit: ZNC 1.7.1 - https://znc.in) |
05:42:57 | * | laaron joined #nim |
05:44:41 | * | alexander92 joined #nim |
05:53:22 | * | owl joined #nim |
05:58:41 | * | lqdev[m] is now known as lqiud[m] |
05:59:06 | * | lqiud[m] is now known as lqdev[m] |
06:01:45 | * | solitudesf joined #nim |
06:03:25 | alexander92 | hm, where is lq |
06:03:26 | alexander92 | coming from |
06:10:02 | * | Cthalupa quit (Ping timeout: 245 seconds) |
06:15:18 | * | absolutejam1 quit (Ping timeout: 245 seconds) |
06:21:07 | * | laaron quit (Remote host closed the connection) |
06:21:15 | * | Cthalupa joined #nim |
06:24:38 | * | laaron joined #nim |
06:32:51 | * | btop quit (Ping timeout: 246 seconds) |
06:38:26 | * | theelous3_ quit (Ping timeout: 240 seconds) |
06:48:49 | * | lqdev[m] is now known as huj123[m] |
07:00:00 | * | gmpreussner quit (Quit: kthxbye) |
07:02:04 | * | btop joined #nim |
07:04:06 | * | PMunch joined #nim |
07:04:51 | * | gmpreussner joined #nim |
07:07:11 | * | btop quit (Ping timeout: 265 seconds) |
07:11:00 | * | alexander92 quit (Ping timeout: 246 seconds) |
07:13:34 | * | absolutejam1 joined #nim |
07:23:50 | * | livcd joined #nim |
07:25:21 | PMunch | How do I install a devel package with nimble? |
07:25:59 | * | nif quit (Quit: ...) |
07:26:08 | * | nif joined #nim |
07:26:16 | Araq | nimble install foo@head or something |
07:26:20 | PMunch | Aah |
07:26:21 | PMunch | @ |
07:26:31 | Araq | or @#head, can't remember |
07:27:02 | PMunch | Tried to fix the jsonschema issue by the way, but now I'm faced with Error: unhandled exception: invalid format string [ValueError] from compiler-0.20.2/compiler/commands.nim(59, 64) |
07:28:14 | * | mattmurr quit (Read error: Connection reset by peer) |
07:31:03 | * | mattmurr joined #nim |
07:37:04 | * | btop joined #nim |
07:38:47 | * | couven92 joined #nim |
07:39:04 | * | floppydh joined #nim |
07:42:07 | * | Hideki_ joined #nim |
07:42:28 | * | btop quit (Ping timeout: 265 seconds) |
07:42:37 | * | shashlick joined #nim |
07:43:19 | * | alexander92 joined #nim |
07:43:29 | * | Hideki_ quit (Remote host closed the connection) |
07:43:42 | * | Hideki_ joined #nim |
07:43:54 | PMunch | Ah nice, installing compiler@#head, pulling the devel branch of Nim into the nimlsp subdirectory, and building with Nim devel it now all works |
07:45:01 | * | nif quit (Quit: ...) |
07:45:11 | * | nif joined #nim |
07:46:59 | alexander92 | so, if i want to use it from e.g. my ide |
07:47:17 | alexander92 | what should i do? write a plugin that talks with your lib with a socket? |
07:47:53 | PMunch | Well, hopefully your IDE already has a LSP plug-in |
07:48:57 | PMunch | Otherwise you need to write a LSP client. It will start nimlsp when it detects that it's running a Nim file, then it will send messages over stdio to the nimlsp process |
07:49:11 | PMunch | https://langserver.org |
07:51:04 | alexander92 | so, one nimlsp process for the whoel project |
07:51:06 | alexander92 | right |
07:51:58 | PMunch | As long as your IDE does the right thing, then yes |
07:53:37 | alexander92 | and should my ide detect eventual crashes and restart it? |
07:53:39 | * | ZORR0W joined #nim |
07:53:45 | PMunch | Yes |
07:54:25 | PMunch | Or, rather the LSP client installed in your IDE |
07:55:35 | Araq | PMunch, I had the same problem and I don't know the cause |
07:55:48 | Araq | but it is related to your weird setup |
07:57:09 | * | m712 left #nim ("WeeChat 2.4") |
08:00:37 | PMunch | What same problem, the one with the invalid format string? |
08:02:46 | Araq | yes |
08:06:26 | PMunch | There, pushed fixes for jsonschema and nimlsp that should make them both compile on devel |
08:07:43 | Araq | cool, we can enable it in important_packages then |
08:07:53 | PMunch | Well... |
08:08:06 | PMunch | It still crashes.. |
08:08:22 | PMunch | But I guess important_packages doesn't check for that anyways |
08:10:15 | PMunch | New error message though /home/peter/.nimble/pkgs/compiler-#head/compiler/int128.nim(71, 11) `arg.sdata(3) == 0` out of range [AssertionError] |
08:12:14 | PMunch | And I sometimes get this error message when trying to build with 0.20.2: http://ix.io/1USQ |
08:14:13 | PMunch | nimlsp could definitely benefit from a simpler build system, but since it requires Nim sources at runtime there are a lot of pieces that need to fit together.. |
08:15:18 | Araq | submit nimlsp to Nim devel, maybe |
08:15:48 | PMunch | Like put it in the main nim repo? |
08:15:58 | Araq | yeah |
08:16:15 | PMunch | I guess that would make it easier, but doesn't choosenim for example delete the sources after Nim is built? |
08:16:42 | PMunch | Oh wait, it doesn't it seem |
08:16:45 | Araq | why would it matter, we ship nimslp much like we ship nimsuggest or nim or nimpretty |
08:17:06 | PMunch | Yeah that makes sense |
08:17:31 | PMunch | Ah, now I remember why I didn't do that |
08:18:00 | PMunch | It depends on the external jsonschema and astpatternmatching modules |
08:21:52 | * | laaron quit (Quit: ZNC 1.7.1 - https://znc.in) |
08:22:16 | * | laaron joined #nim |
08:28:56 | FromGitter | <dumjyl> Who stole the 's' from stdlib: `CC: tdlib_system.nim`? |
08:29:02 | * | fov60 joined #nim |
08:29:10 | fov60 | any one here? |
08:32:37 | narimiran | fov60: nope, you're alone |
08:32:42 | * | abm joined #nim |
08:33:03 | fov60 | sic |
08:33:08 | PMunch | dumjyl, its wasn'ts mes |
08:35:07 | Araq | dumjyl: @yuriy did |
08:35:33 | Araq | apparently nobody can ever get quoting rules right |
08:40:03 | FromGitter | <dumjyl> thats ok, nim make up for it with a great tandard lib |
08:41:15 | * | shodan45 quit (Remote host closed the connection) |
08:43:15 | fov60 | is there a difference between openarrays and seqs when accessing their pointers? |
08:43:43 | PMunch | fov60, can you access the pointer of an OpenArray |
08:44:21 | fov60 | yeah |
08:44:30 | PMunch | Huh, well I guess not then |
08:45:26 | * | shodan45 joined #nim |
08:45:40 | PMunch | OpenArray isn't technically it's own type in the same way that array and seq are. It's essentially a way to pass either a sequence or an array in as the parameter for a procedure. |
08:45:59 | PMunch | You can also create OpenArrays from slices of seqs and arrays |
08:46:42 | Araq | well *technically* it's exactly that, it's own type :P |
08:46:50 | * | alexander92 quit (Ping timeout: 276 seconds) |
08:48:05 | PMunch | Really? But you can't have an OpenArray as a field in an object or as the type of a variable can you? |
08:48:16 | PMunch | And does it have it's own memory representation? |
08:48:35 | Araq | it doesn't matter, it's a type of its own |
08:48:46 | Araq | it's not a first class citizen |
08:49:18 | Araq | but that doesn't matter, plenty of types are restricted like this, unfortunately Nim's spec still lacks a grammar for types |
08:53:44 | * | btop joined #nim |
08:58:27 | * | btop quit (Ping timeout: 240 seconds) |
09:00:43 | * | ehmry quit (Ping timeout: 246 seconds) |
09:08:27 | * | ehmry joined #nim |
09:10:05 | fov60 | open gl has been kicking my as all day and night, and I've finally got it |
09:10:12 | fov60 | #feelsgood |
09:11:32 | * | fov60 left #nim ("WeeChat 2.5") |
09:13:13 | livcd | btw i have to say that installing nim is surprisingly easy |
09:14:08 | PMunch | livcd, why surprisingly? |
09:17:55 | * | laaron quit (Quit: ZNC 1.7.1 - https://znc.in) |
09:18:53 | * | laaron joined #nim |
09:30:41 | * | ZORR0W quit (Read error: Connection reset by peer) |
09:34:58 | * | ZORR0W joined #nim |
09:36:21 | * | Hideki_ quit (Remote host closed the connection) |
09:39:25 | * | Hideki_ joined #nim |
09:39:39 | * | actuallybatman quit (Ping timeout: 240 seconds) |
09:42:38 | * | owl_ joined #nim |
09:43:49 | huj123[m] | fov60: what did you have problems with? |
09:44:08 | * | Hideki_ quit (Remote host closed the connection) |
09:44:22 | * | Hideki_ joined #nim |
09:44:28 | PMunch | huj123[m], he logged off |
09:45:43 | * | owl quit (Ping timeout: 245 seconds) |
09:46:20 | * | fredrik92 joined #nim |
09:49:28 | * | couven92 quit (Ping timeout: 245 seconds) |
09:52:22 | * | laaron quit (Quit: ZNC 1.7.1 - https://znc.in) |
09:54:01 | * | laaron joined #nim |
09:57:20 | * | ulpind joined #nim |
09:57:23 | * | laaron quit (Remote host closed the connection) |
09:57:24 | ulpind | hi all |
09:57:39 | PMunch | Hi |
09:58:14 | ulpind | I'm trying to learn Nim, but it's been an uphill struggle so far because packages typically don't work. For instance, I've installed both WebSocket packages I've found. |
09:58:31 | ulpind | Then I plug in the examples on the corresponding github site, and I get obscure compile errors. |
09:58:42 | ulpind | Are these packages just out of date or am I missing something? |
09:59:43 | PMunch | Which packages are these? |
09:59:58 | PMunch | And what Nim version are you using (nim --version) |
10:00:19 | ulpind | So far, almost everyone I try :D Example: https://github.com/treeform/ws gives me (4, 25) template/generic instantiation of `async` from here |
10:00:36 | ulpind | Nim Compiler Version 0.20.2 [MacOSX: amd64] |
10:00:41 | ulpind | Installed via brew |
10:05:57 | PMunch | Aha |
10:06:13 | PMunch | It seems like the `sendPacket` procedure has been renamed to just `send` |
10:06:23 | PMunch | So if you change that in the example it should work fine |
10:07:59 | PMunch | Created an issue for you ulpind: https://github.com/treeform/ws/issues/6 |
10:08:06 | PMunch | But just using `send` should work fine :) |
10:21:34 | * | Hideki_ quit () |
10:23:01 | ulpind | PMunch: changed, but same error o: is the nim compiler caching something... |
10:23:07 | * | Hideki_ joined #nim |
10:24:19 | ulpind | PMunch: but the first error is before, the "async" on line 4 |
10:24:24 | Araq | ulpind, 'ws' package is covered by our list of "important packages" |
10:24:46 | ulpind | ok, what does that mean? |
10:25:00 | ulpind | sorry, total Nim noob here |
10:25:25 | Araq | 'ws' is a websocket implementation |
10:25:26 | ulpind | I grab a package, try the example on the github page and it generally doesn't work :/ |
10:26:02 | ulpind | Araq: yes, I did nimble install ws |
10:26:30 | Araq | well be more specific, what's the error message ? |
10:26:41 | ulpind | I posted it above verbatim |
10:26:50 | ulpind | (4, 25) template/generic instantiation of `async` from here |
10:27:12 | ulpind | the example is the server her: https://github.com/treeform/ws |
10:27:53 | ulpind | The other websocket package I found has other errors, can post that too if interesting |
10:28:55 | Araq | "instantiation from here" is never the full error message |
10:30:21 | ulpind | ok, I changed the errornous sendPacket to send (was two places) |
10:30:55 | ulpind | thanks guys |
10:32:19 | * | NamPNQ joined #nim |
10:33:16 | narimiran | ulpind: can you send a PR fixing the example in 'ws' readme? |
10:33:23 | ulpind | disconnecting a websocket client kills the server, I wonder if that's intensional |
10:38:20 | huj123[m] | Araq: yet the vscode nim plugin only displays that part in case there is one -_- |
10:39:01 | huj123[m] | the fact vscode is built on electron and the plugin doesn't leverage nimsuggest very well makes me want to create my own text editor |
10:39:21 | narimiran | huj123[m]: just use neovim and leorize's nim.nvim plugin |
10:40:10 | huj123[m] | please no |
10:40:16 | huj123[m] | i don't want to learn vim |
10:40:23 | huj123[m] | I just want to write code |
10:40:27 | narimiran | :) |
10:41:05 | narimiran | yeah, you're right, it is easier to make your own editor, than to learn some vim commands :P :D |
10:41:20 | huj123[m] | it's always a learning experience :) |
10:41:28 | huj123[m] | in both cases |
10:41:50 | huj123[m] | but I feel like some extra gui implementation knowledge would be pretty nice |
10:41:52 | * | btop joined #nim |
10:42:22 | * | laaron joined #nim |
10:42:29 | huj123[m] | vim is rather different from what I'm used to after all these years, I gave it a shot once but it didn't really work for me |
10:43:12 | leorize | if you can do emacs, I heard that the plugin is decent enough |
10:45:21 | leorize | for neovim there are different clients that looks/act like VSC if you're into that |
10:45:44 | leorize | I've never tested my plugin with such frontends though |
10:46:58 | * | btop quit (Ping timeout: 245 seconds) |
10:48:43 | * | ng0 joined #nim |
11:04:10 | FromGitter | <Vindaar> @narimiran: created a PR to fix them |
11:05:02 | ulpind | Is the timeline for a stable Nim version decided, roughly? I'm reluctant to commit to Nim for larger projects if there will be major breakage. |
11:05:06 | * | narimiran thumb up |
11:05:07 | ulpind | Or will changes be minor at this point? |
11:05:54 | narimiran | ulpind: v1.0 is around the corner, if you use devel (v0.20.99), that is basically v1.0 |
11:05:58 | ulpind | I like what I see so far, main peeve is compile times but that should improve too right |
11:06:03 | ulpind | awesome, thanks |
11:06:15 | ulpind | 0.20.2 is what I have |
11:06:21 | ulpind | because that's what brew gave me |
11:07:23 | * | sagax quit (Quit: Konversation terminated!) |
11:07:31 | leorize | just target 0.20.x |
11:12:38 | * | Vladar joined #nim |
11:14:26 | PMunch | ulpind, generally it's better to install choosenim from brew and then install Nim through there |
11:14:44 | PMunch | Makes it a lot easier to change Nim versions, and you don't have to wait for a package maintainer to do anything |
11:15:05 | PMunch | Compile times? I've found that Nim is super fast at compiling |
11:15:42 | * | MarderIII joined #nim |
11:19:51 | * | fredrik92 is now known as couven92 |
11:23:55 | * | MarderIII quit (Quit: Leaving) |
11:29:28 | Zevv | not my macros :( |
11:33:37 | * | ulpind quit (Quit: ...) |
11:36:54 | * | fjellfras quit (Quit: Leaving) |
11:37:14 | PMunch | Ah yes, macros can really slow things down a bit |
11:39:53 | Zevv | I was wondering how to profile that |
11:41:13 | Araq | patch the VM so that it gives you some instruction counters |
11:41:46 | Zevv | I'd like to measure cpu time or wall time, but it's not in there |
11:42:02 | Zevv | Having cpuTime() would be cool |
11:44:22 | Araq | the first thing that happens: |
11:44:39 | Araq | somebody uses cpuTime to initialize a compile-time random number generator |
11:44:51 | Araq | producing inherently unreproducible builds |
11:45:02 | Zevv | \o/ |
11:45:07 | Araq | and it's all nim's fault for even offering something helpful |
11:45:54 | Zevv | well, without Nim there would indeed be a lot less problems here |
11:46:50 | * | nif quit (Quit: ...) |
11:47:00 | * | nif joined #nim |
11:50:38 | PMunch | Araq, you don't need cpuTime for that: http://ix.io/1UTC/Nim |
11:52:43 | Araq | PMunch, covered by the big filter (TM) |
11:53:24 | Araq | the big filter is: does it compile and run on Windows? if not, it's junk ;-) |
11:54:49 | PMunch | Doesn't staticExec work on Windows? |
11:55:46 | Zevv | Well, I found a way. I fill my macros with echos and run this while another program sends a dot to my terminal every 10 msecs. Then I count the dots between echos, isn't that fancy! |
12:00:15 | * | NamPNQ quit (Remote host closed the connection) |
12:08:48 | * | rockcavera joined #nim |
12:10:55 | Araq | https://nullprogram.com/blog/2019/04/30/ |
12:11:15 | Araq | PMunch, staticExec does but what the fuck is /dev/urandom? :P |
12:11:24 | * | dddddd joined #nim |
12:11:56 | PMunch | Araq, /dev/random and /dev/urandom are "files" that when read from generate "random" data |
12:12:26 | PMunch | And I can't get staticExec to work on Windows, or at least not the same way as on Linux.. I try to do a simple echo statement, but nothing is returned.. |
12:13:17 | Araq | there is no echo.exe |
12:13:39 | PMunch | Oooh, echo is a cmd built-in thing.. |
12:13:48 | Araq | yeah I know what /dev/random is. I also know why it's bad for security ;-) |
12:14:19 | PMunch | Well I wasn't using it for security here, I was using it to break predictable builds, for which it is plenty random enough :) |
12:14:29 | Araq | you can setup a system where /dev/random is just a text file, everything is a file, remember? turns out some files really must be streams, d'oh |
12:14:35 | livcd | PMunch: works here ( i just tried) |
12:14:47 | livcd | ahh you were using echo |
12:15:28 | PMunch | Yeah, I was trying to do "echo %RANDOM%" :P |
12:15:50 | livcd | sorry i am only reading what I want to read |
12:18:20 | Araq | and yeah, of course Windows has the same horse shit... :-( |
12:18:27 | Araq | echo %RANDOM% |
12:18:27 | Araq | 18516 |
12:18:35 | Araq | set RANDOM=4 |
12:18:44 | Araq | echo %RANDOM% |
12:18:44 | Araq | 4 |
12:18:49 | Araq | ^ lovely |
12:19:11 | PMunch | Haha, will it always read 4 then? |
12:19:49 | Araq | yup. https://xkcd.com/221/ |
12:21:10 | Araq | either you have APIs or you have a clusterfuck of string based non-solutions with terrible quoting rules and non-existent security |
12:21:11 | PMunch | Yeah I've seen that one :) |
12:22:10 | PMunch | But creating a simple bat file with echo %RANDOM% you can easily create an unpredictable build :) |
12:22:26 | PMunch | So this passes your big filter :P |
12:22:59 | Araq | bah |
12:27:23 | * | abm quit (Quit: Leaving) |
12:28:18 | * | ZORR0W quit (Read error: Connection reset by peer) |
12:29:58 | * | btop joined #nim |
12:33:13 | * | nif quit (Quit: ...) |
12:33:23 | * | nif joined #nim |
12:33:42 | * | ZORR0W joined #nim |
12:34:45 | * | owl_ quit (Ping timeout: 246 seconds) |
12:35:06 | * | btop quit (Ping timeout: 246 seconds) |
12:35:38 | * | absolutejam1 quit (Ping timeout: 276 seconds) |
12:37:40 | * | cgfuh joined #nim |
12:38:20 | * | absolutejam1 joined #nim |
12:43:32 | * | laaron quit (Remote host closed the connection) |
12:45:51 | * | laaron joined #nim |
12:51:38 | * | planetis[m] sent a long message: < https://matrix.org/_matrix/media/v1/download/matrix.org/NxwWlAovzBfYYUXoKyQdnGKs > |
12:56:14 | * | laaron quit (Remote host closed the connection) |
12:58:02 | * | laaron joined #nim |
13:06:58 | * | sagax joined #nim |
13:09:27 | planetis[m] | Hi all, in my macro I'm trying to type cast only if the type is distinct. |
13:09:27 | planetis[m] | so I get the base type recursively and what I'm missing is the correct check |
13:09:28 | planetis[m] | My code is like this: |
13:09:45 | * | planetis[m] sent a long message: < https://matrix.org/_matrix/media/v1/download/matrix.org/vkUgxKneeiJEmkUXVouYDyMD > |
13:09:53 | planetis[m] | Is the if condition correct? |
13:10:54 | Araq | why not check for ntyDistinct via getType? |
13:23:20 | planetis[m] | right missed that |
13:26:16 | PMunch | Hmm, is there something like `any` for Futures? |
13:26:20 | planetis[m] | thanks |
13:26:34 | PMunch | There is `and`, `or`, and `all` in asyncfutures: https://nim-lang.org/0.19.0/asyncfutures.html |
13:26:38 | PMunch | But no `any` |
13:27:50 | * | nif quit (Quit: ...) |
13:28:01 | * | nif_ joined #nim |
13:45:27 | * | narimiran quit (Ping timeout: 246 seconds) |
14:00:40 | disruptek | i have an `any` if you want it. |
14:01:48 | disruptek | i think `or` shoulda been done differently, too, but i haven't published that one. |
14:01:57 | disruptek | https://github.com/disruptek/openapi/blob/master/rest.nim#L281 |
14:02:34 | * | shadowbane quit (Quit: Konversation terminated!) |
14:04:36 | * | shadowbane joined #nim |
14:08:44 | PMunch | Nice :) |
14:13:01 | * | PMunch quit (Remote host closed the connection) |
14:14:45 | * | owl_000 joined #nim |
14:18:04 | * | btop joined #nim |
14:21:33 | * | Hideki_ quit (Remote host closed the connection) |
14:22:07 | * | Hideki_ joined #nim |
14:22:51 | * | btop quit (Ping timeout: 240 seconds) |
14:27:50 | * | Hideki_ quit (Remote host closed the connection) |
14:28:06 | * | Hideki_ joined #nim |
14:31:15 | * | couven92 quit (Ping timeout: 240 seconds) |
14:40:08 | * | Hideki_ quit (Remote host closed the connection) |
14:40:42 | * | Hideki_ joined #nim |
14:42:25 | Zevv | disruptek: why not upstream that? Make it use openArray instead and build `or` on top of that? |
14:42:51 | disruptek | i think it's a poor name, for one thing. |
14:43:15 | disruptek | the main reason is that i just don't want to argue about the semantics. |
14:43:27 | Zevv | that is a pretty good reason :) |
14:45:23 | * | Hideki_ quit (Ping timeout: 265 seconds) |
15:09:02 | * | absolutejam1 quit (Ping timeout: 276 seconds) |
15:10:50 | * | floppydh quit (Quit: WeeChat 2.5) |
15:12:09 | * | couven92 joined #nim |
15:13:41 | * | Vladar quit (Remote host closed the connection) |
15:14:13 | planetis[m] | is it normal for nnkIdentDefs to have typeKind ntyBool? |
15:14:37 | FromGitter | <mratsim> no |
15:17:11 | * | Trustable joined #nim |
15:17:34 | * | rupertdev joined #nim |
15:19:43 | * | Hideki_ joined #nim |
15:20:26 | planetis[m] | https://play.nim-lang.org/#ix=1UUv |
15:24:32 | planetis[m] | but what would it have? |
15:26:12 | disruptek | the ntyBool string repr should be "no, thank you" |
15:28:29 | * | ZORR0W quit (Read error: Connection reset by peer) |
15:29:15 | * | Hideki_ quit (Ping timeout: 240 seconds) |
15:33:06 | planetis[m] | my macro finally works! |
15:33:31 | owl_000 | i have some questions |
15:34:03 | owl_000 | ref object is reference of some type stored in heap? |
15:34:13 | planetis[m] | not mine actually, I made a Pr to csvtools repo |
15:34:19 | * | ZORR0W joined #nim |
15:36:01 | Araq | owl_000, yes, 'ref' is *always* on the heap |
15:36:15 | Araq | no matter the GC you use or --newruntime or ... |
15:39:16 | owl_000 | i have a `type rect = object` and `var field = rect(...)`, then `var field2 = field` , here in this case field2 contains copy of field one, because of no ref object.. |
15:42:22 | owl_000 | https://play.nim-lang.org/#ix=1UUA please read this code and comments, it will better instead asking questions |
15:45:03 | * | ZORR0W quit (Quit: leaving) |
15:45:24 | FromGitter | <kaushalmodi> owl_000: You have a typo in line 22 |
15:45:38 | * | couven92 quit (Ping timeout: 240 seconds) |
15:45:44 | FromGitter | <kaushalmodi> I believe you meant to write `var fieldRef2= fieldRef` and not `var fieldRef2= field`? |
15:47:16 | owl_000 | yes, (i am a moron) lol. all those comments are true than because i get output what i expected. |
15:47:40 | planetis[m] | found your bug |
15:48:17 | planetis[m] | you are assigning variable named field not fieldRef |
15:49:13 | owl_000 | i am reading lot of things to understand ref. (tut2 complex). so my comments are true then? |
15:50:59 | planetis[m] | owl_000: yes sure |
15:52:34 | FromGitter | <kaushalmodi> owl_000: btw you can print the whole obj or ref obj like this: https://play.nim-lang.org/#ix=1UV8 |
15:52:51 | FromGitter | <kaushalmodi> Now if you make that typo of writing `field` instead of `fieldRef`, it won't compile :) |
15:53:53 | owl_000 | oh yes, thanks, learn something new from you. |
15:56:07 | owl_000 | that typo occured, because i copied from previous, (being lazy is very bad) |
15:56:57 | * | Vladar joined #nim |
16:06:17 | * | btop joined #nim |
16:11:08 | * | btop quit (Ping timeout: 245 seconds) |
16:22:29 | * | owl_000 quit (Ping timeout: 276 seconds) |
16:32:01 | * | NimBot joined #nim |
16:32:49 | * | cakesauce left #nim (#nim) |
17:16:52 | * | narimiran joined #nim |
17:17:24 | * | PMunch joined #nim |
17:20:49 | * | rockcavera quit (Remote host closed the connection) |
17:34:55 | * | Trustable quit (Remote host closed the connection) |
17:36:13 | * | owl_000 joined #nim |
17:40:43 | * | owl_000 quit (Ping timeout: 245 seconds) |
17:54:23 | * | btop joined #nim |
17:58:06 | * | actuallybatman joined #nim |
17:59:14 | * | btop quit (Ping timeout: 240 seconds) |
18:02:31 | * | Hideki_ joined #nim |
18:06:53 | * | Hideki_ quit (Ping timeout: 246 seconds) |
18:12:41 | * | nsf quit (Quit: WeeChat 2.5) |
18:13:40 | * | PMunch quit (Remote host closed the connection) |
18:30:39 | * | btop joined #nim |
18:45:17 | * | wildtrees joined #nim |
18:46:45 | * | absolutejam1 joined #nim |
18:48:53 | * | cgfuh quit (Ping timeout: 246 seconds) |
18:49:49 | * | Trustable joined #nim |
19:18:35 | * | ng0 quit (Quit: Alexa, when is the end of world?) |
19:25:54 | * | sealmove joined #nim |
19:31:21 | * | natrys joined #nim |
19:41:07 | huj123[m] | also, see `system.repr`, it's way more helpful than manually dereferencing the objects |
20:02:05 | * | Trustable quit (Remote host closed the connection) |
20:02:44 | * | nsf joined #nim |
20:08:19 | * | laaron quit (Remote host closed the connection) |
20:10:52 | * | laaron joined #nim |
20:17:32 | * | snooptek quit (Remote host closed the connection) |
20:19:26 | * | nsf quit (Quit: WeeChat 2.5) |
20:26:53 | * | Jjp137 quit (Ping timeout: 246 seconds) |
20:27:11 | * | Jjp137 joined #nim |
20:31:58 | * | narimiran quit (Ping timeout: 245 seconds) |
20:33:29 | * | xet7 quit (Quit: Leaving) |
20:33:57 | * | xet7 joined #nim |
20:36:18 | * | natrys quit (Quit: natrys) |
20:47:19 | * | rockcavera joined #nim |
21:19:35 | * | nif_ quit (Quit: ...) |
21:19:45 | * | nif joined #nim |
21:22:40 | * | nif quit (Client Quit) |
21:22:50 | * | nif joined #nim |
21:27:38 | * | nif quit (Client Quit) |
21:27:48 | * | nif joined #nim |
21:28:26 | FromGitter | <awr1> was going to ask if macro result caching was ever discussed but i see it is part of the incremental comp PR |
21:28:27 | * | Hideki_ joined #nim |
21:32:50 | * | Hideki_ quit (Ping timeout: 240 seconds) |
21:33:30 | * | Vladar quit (Remote host closed the connection) |
21:35:08 | * | solitudesf quit (Ping timeout: 276 seconds) |
21:40:44 | * | absolutejam1 quit (Ping timeout: 246 seconds) |
21:47:48 | * | oculux quit (Quit: blah) |
21:49:40 | * | oculux joined #nim |
21:59:54 | * | laaron quit (Remote host closed the connection) |
22:03:04 | * | laaron joined #nim |
22:15:34 | * | absolutejam1 joined #nim |
22:20:38 | * | absolutejam1 quit (Ping timeout: 276 seconds) |
22:30:47 | * | ng0 joined #nim |
22:33:52 | FromGitter | <erhlee-bird> @mratsim I was looking into the Arraymancer fizzbuzz example and trying to get it working for a cuda backend. Did you ever end up porting it? I'm having some trouble getting it to work |
22:34:28 | FromGitter | <mratsim> No, I didn’t, I wanted to rework the low level backend first |
22:35:56 | FromGitter | <mratsim> the main blocker is that I didn’t add cuda support to the domain specific language |
22:36:29 | FromGitter | <mratsim> but lack of time and such |
22:36:38 | FromGitter | <erhlee-bird> gotcha |
22:36:46 | FromGitter | <erhlee-bird> do you still do gpu work in Nim? |
22:37:39 | FromGitter | <erhlee-bird> I'm trying to get started and thought it would be a nice chance to try out arraymancer for some work stuff |
22:42:26 | * | oculux quit (Quit: blah) |
22:43:00 | * | oculux joined #nim |
22:44:09 | FromGitter | <mratsim> I still do, I recently fix everything related to GPU 2 weeks ago in arraymancer |
22:47:01 | FromGitter | <mratsim> for example: https://github.com/mratsim/Arraymancer/pull/372 |
22:49:18 | FromGitter | <erhlee-bird> Awesome, I'll poke around. Thanks for the pointer |
22:50:19 | * | oculux quit (Quit: blah) |
22:50:35 | FromGitter | <mratsim> one useful thing for example would be to wrap Cudnn’s GRU |
22:50:44 | FromGitter | <mratsim> if you like low-level code |
22:50:53 | * | oculux joined #nim |
22:51:00 | * | laaron quit (Remote host closed the connection) |
22:51:51 | FromGitter | <mratsim> otherwise plugging the matmul/convolution to the autograd |
22:52:04 | FromGitter | <mratsim> but unfortunately i didn’t write example code for the cuda part yet |
22:53:35 | * | laaron joined #nim |
22:53:46 | FromGitter | <mratsim> anyway, if you have something you want to do, open an issue, and I can create example code to get you started |
22:53:49 | Araq | is shashlick or PMunch around? |
22:53:50 | FromGitter | <mratsim> or give you pointer |
22:54:05 | FromGitter | <erhlee-bird> I will do that |
22:54:08 | FromGitter | <erhlee-bird> thanks @mratsim |
22:54:16 | * | oculux quit (Client Quit) |
22:54:22 | * | Hideki_ joined #nim |
22:54:49 | * | oculux joined #nim |
22:55:18 | FromGitter | <mratsim> or maybe easier, Cudnn’s maxpool so that we can do the digit recognition on GPU |
22:56:29 | FromGitter | <mratsim> but I find wrapping cudnn routines very annoying, not Fortran level annoying (cc @brentp https://github.com/mratsim/Arraymancer/pull/372) so I suggest you pick something that excites you |
22:56:37 | FromGitter | <mratsim> I can do the low-level stuff |
22:58:52 | * | Hideki_ quit (Ping timeout: 265 seconds) |
22:59:16 | * | abm joined #nim |
23:01:55 | shashlick | here |
23:02:04 | shashlick | @Araq |
23:02:37 | Araq | sent you a personal message |
23:03:20 | shashlick | are you on gitter? |
23:03:33 | Araq | no, but I can join |
23:03:37 | * | Hideki_ joined #nim |
23:04:21 | shashlick | you could ping me on #shashlick on irc |
23:04:44 | shashlick | not sure if it still works though, am bridging so |
23:05:46 | FromGitter | <Araq> hmm |
23:06:03 | * | test151 joined #nim |
23:06:47 | shashlick | logged in with webchat with test151 |
23:08:02 | * | Hideki_ quit (Ping timeout: 240 seconds) |
23:37:47 | FromGitter | <brentp> @mratsim , you mean: https://github.com/mratsim/Arraymancer/issues/376 ? |
23:39:21 | * | Hideki_ joined #nim |
23:40:51 | * | test151 quit (Remote host closed the connection) |
23:43:35 | * | Hideki_ quit (Ping timeout: 246 seconds) |
23:44:59 | * | actuallybatman quit (Ping timeout: 246 seconds) |
23:47:35 | * | absolutejam1 joined #nim |
23:52:23 | * | absolutejam1 quit (Ping timeout: 245 seconds) |
23:58:40 | FromGitter | <erhlee-bird> ahh yeah I just ran into mratsim/Arraymancer#372 |