00:00:07 | * | leorize joined #nim |
00:00:22 | CodeVantage | he correctly grasped the american psyche |
00:00:23 | FromGitter | <krux02> you want to convince idiots to elect you, but you don't want to convince idionts to be part of your community. |
00:00:37 | dom96 | data-man: This should be a real Nim training course :P |
00:00:47 | CodeVantage | krux02 truth you speak |
00:01:00 | FromGitter | <krux02> so bye people I go offline for today |
00:01:02 | CodeVantage | So no sensationalism, lest nim become something we hate? |
00:01:24 | dom96 | CodeVantage: I think it's very likely he didn't actually want to be president |
00:01:54 | dom96 | Fire and Fury implies this strongly and I believe it |
00:03:02 | CodeVantage | well I think he wanted to become president. But now he's no longer interested. I don't really see him clinging to his seat |
00:03:25 | Araq | keep policits out of #nim |
00:03:35 | Araq | I know I started it. |
00:03:42 | Araq | now I'm ending it. |
00:03:55 | CodeVantage | ok |
00:04:18 | CodeVantage | how do I run nim silently? |
00:04:33 | Araq | "one #macro for 4 #iterators, smart move #nim" |
00:04:38 | Araq | ^ like that? |
00:04:44 | FromGitter | <ephja> yep |
00:05:13 | Araq | needs more emojis. |
00:05:26 | CodeVantage | Wow your a pro at this |
00:05:28 | FromGitter | <arnetheduck> what's an easy way to see the expansion of a macro call? |
00:05:37 | FromGitter | <ephja> such iterator đź‘Ť |
00:05:38 | tersec | CodeVantage: not sure if this is what you mean, but I use "nim c "-o:$(mktemp)" --verbosity:0 --hints:off "--nimcache:$(mktemp -d)" --passC:"-O3 -march=native" --run "$@"" |
00:05:47 | tersec | (Obviously, some of that's to taste.) |
00:06:03 | Araq | but Bojack doesn't twitter emojis either. |
00:06:28 | CodeVantage | tersec, thanks. |
00:06:44 | Araq | arnetheduck: macros.expandMacros iirc |
00:08:34 | dom96 | but yeah, this is what #nim-offtopic is for :) |
00:08:38 | FromGitter | <Varriount> Araq: What is a nnkCheckedFieldExpr? Does that have to do with object variants? |
00:09:01 | Araq | varriount: yeah. |
00:09:37 | dom96 | Araq: hah, that's a perfect tweet |
00:09:58 | dom96 | very memeable |
00:10:27 | Araq | well we need to make it true |
00:10:46 | dom96 | is it not true? |
00:10:50 | Araq | 'enumerate' can be used instead of 'pairs' for seqs/arrays |
00:10:53 | FromGitter | <arnetheduck> was more hoping for a command line option that would print the expanded file, like `-E` |
00:11:12 | Araq | arnetheduck: the best solution is to end every complex macro in |
00:11:26 | Araq | when defined(debugFoo): echo repr result |
00:11:34 | Araq | and then compile with -d:debugFoo |
00:11:40 | Araq | all my DSLs do that. |
00:11:59 | Araq | should have a command line switch for this I guess |
00:16:17 | skrylar | shoop |
00:18:05 | skrylar | i see arch has 0.18. should see if any of the stuff i wrote that people care about broke |
00:19:40 | FromGitter | <data-man> I for a long time did not remind of this library: https://github.com/petermora/nimTracelog :) ⏎ Maybe for someone it will be useful. But minor changes will be required for the current version of Nim. |
00:21:27 | * | jrbrt quit (Quit: jrbrt) |
00:21:37 | skrylar | neat. flatbuffers still works |
00:23:57 | * | vlad1777d quit (Ping timeout: 240 seconds) |
00:27:58 | * | xet7 quit (Ping timeout: 265 seconds) |
00:28:52 | * | ftsf joined #nim |
00:30:34 | * | vivus quit (Quit: Leaving) |
00:34:33 | FromGitter | <arnetheduck> @data-man that's a pretty cool lib! |
00:36:40 | * | smt quit (Read error: Connection reset by peer) |
00:37:13 | * | smt joined #nim |
00:39:23 | FromGitter | <data-man> @arnetheduck: Starred it! :) |
00:40:37 | * | xet7 joined #nim |
00:55:33 | * | cspar quit (Ping timeout: 264 seconds) |
00:55:35 | * | dddddd quit (Read error: Connection reset by peer) |
00:56:27 | * | ieatnerds joined #nim |
00:59:31 | ieatnerds | Hey quick question. I can "echo readline("test.txt")" and get the contents of the file. But when I try to do "var txt = readline("test.txt")" The variable is empty. I feel like I'm just doing something dumb, but too tired to see it. |
01:05:16 | ieatnerds | Just realized I didnt ask the question. What am I doing wrong? |
01:08:25 | FromGitter | <data-man> @ieatnerds: ```var txt = readFile("test.txt")``` |
01:10:25 | ieatnerds | Thank you again data-man. Simple, yet I'm too tunnel-visioned to see it on my own. |
01:11:43 | ieatnerds | And everything works now, atleast, just about. |
01:18:46 | FromGitter | <data-man> @ieatnerds: You are welcome! Don't hesitate to ask questions! :) |
01:21:09 | * | xet7 quit (Read error: Connection timed out) |
01:21:35 | * | xet7 joined #nim |
01:23:27 | tersec | Is there a good way to use auto return values with {.async.} procs? |
01:25:58 | * | athenot quit (Remote host closed the connection) |
01:26:36 | * | athenot joined #nim |
01:29:31 | FromGitter | <data-man> @tersec: Something like this https://github.com/nim-lang/Nim/blob/devel/tests/async/treturn_await.nim ? |
01:31:22 | tersec | @data-man: except there the signature on the actual async proc is "proc h(req: ref Request, ctx: Context): Future[Context] {.async.}", i.e. not auto. |
01:38:17 | * | endragor joined #nim |
01:42:57 | * | endragor quit (Ping timeout: 264 seconds) |
01:49:48 | tersec | To be precise, I mean something like proc foo(): auto {.async.} or proc foo(): Future[auto] {.async.} |
01:58:00 | FromGitter | <data-man> ```import async ⏎ proc foo(): Future[auto] {.async.} = ⏎ return 1``` ⏎ ⏎ :) [https://gitter.im/nim-lang/Nim?at=5adfe0a762316e0505f810e5] |
01:58:28 | tersec | Huh, I'll have to return to my actual use case to see why it's not working |
02:10:08 | * | CodeVantage quit (Quit: Leaving) |
02:12:06 | * | Snircle quit (Quit: Textual IRC Client: www.textualapp.com) |
02:19:46 | * | skrylar quit (Remote host closed the connection) |
02:35:58 | * | athenot quit (Remote host closed the connection) |
02:36:40 | * | athenot joined #nim |
02:43:45 | * | smt quit (Ping timeout: 248 seconds) |
03:26:19 | * | endragor joined #nim |
03:30:41 | ieatnerds | Found a weird thing between macos and linux. my macbook is dual booted so I compiled a test program that just does a ton of math. it takes only ~6 seconds on macos and then ~20 from linux. I'm headed to sleep now, but can provide some more info on it later, just thought I'd share now. |
03:32:08 | * | ieatnerds quit (Quit: Leaving) |
03:59:10 | * | leorize quit (Ping timeout: 264 seconds) |
04:00:37 | * | xet7 quit (Read error: Connection timed out) |
04:01:05 | * | xet7 joined #nim |
04:26:21 | * | xet7 quit (Read error: Connection timed out) |
04:27:06 | * | xet7 joined #nim |
04:28:40 | * | xet7 quit (Max SendQ exceeded) |
04:29:02 | * | xet7 joined #nim |
05:09:01 | * | miran joined #nim |
05:17:54 | * | leorize joined #nim |
05:31:59 | * | PMunch joined #nim |
05:48:22 | * | xet7 quit (Read error: Connection timed out) |
05:48:56 | * | xet7 joined #nim |
05:56:05 | FromGitter | <Varriount> Gah, why can't there be a "normalize AST" function. I don't care about derefs or checked fields, so why should I have to take them into account when getting symbols. |
05:56:45 | * | leorize quit (Ping timeout: 264 seconds) |
06:01:29 | Araq | I feel your pain but it's usually not more than one line to handle these weirdos |
06:12:05 | * | nsf joined #nim |
06:12:58 | * | miran quit (Ping timeout: 264 seconds) |
06:14:02 | * | leorize joined #nim |
06:23:07 | shashlick | araq: something weird going on with the gcleak/gcleak2 tests on my server, normal tests run 3 times faster than travis but these two with --gc:boehm are 5 times slower than travis |
06:31:37 | Araq | well boehm is multi-core |
06:31:58 | Araq | maybe your server has too many cores causing too much contention. |
06:32:15 | Araq | or too few cores to compete with travis (more unlikely) |
06:32:40 | Araq | or it's caused by meltdown patches. |
06:34:59 | shashlick | well I have two procs with 4 cores each, 8 threads |
06:36:07 | shashlick | 8 threads each |
06:36:31 | shashlick | from start to finish including git clone, etc, build is done in 22 minutes |
06:36:43 | shashlick | the gc tests run in sequence rather than parallel, doesn't sound like running them in parallel will help will it? |
06:38:49 | FromGitter | <ephja> I want to prevent some karax nodes from being redrawn when events are triggered |
06:45:08 | Araq | ephja: setForeignNodeId, maybe |
06:45:51 | Araq | shashlick: or maybe you simply have a different version of Boehm? |
06:51:20 | * | yglukhov joined #nim |
06:51:43 | * | xet7 quit (Read error: Connection timed out) |
06:52:06 | * | xet7 joined #nim |
06:55:35 | * | yglukhov quit (Read error: Connection reset by peer) |
06:56:09 | * | yglukhov joined #nim |
07:09:41 | FromGitter | <alehander42> @mratsim I think most of the issues you raised yesterday should be fixed now in quicktest, please ping me if uints in some range can't be generated (even the save /repr regressions thing works, but not sure if very useful for you) |
07:12:14 | FromGitter | <ephja> I guess I need to set surpressRedraws to true and then have more than one component so I don't recreate the canvas component |
07:12:59 | * | Vladar joined #nim |
07:26:43 | * | yglukhov quit (Read error: Connection reset by peer) |
07:27:24 | * | yglukhov joined #nim |
07:44:23 | FromGitter | <ephja> I might need DOM nodes rendered by separate components to be siblings somewhere other than at the root then |
07:54:00 | Araq | ephja: maybe give "knete" a shot |
07:54:16 | Araq | it's currently a mess but can re-integrated into the full karax |
07:54:27 | Araq | and keeps the stateful DOM |
07:55:34 | * | r3d9u11 joined #nim |
07:55:49 | Araq | it's Karax's DSL without the DOM diffing, much better JS interop but also more cumbersome to work with because it lacks DOM diffing |
07:56:41 | * | r3d9u11 quit (Client Quit) |
07:56:56 | Araq | or maybe restrict Karax to a <div> that doesn't contain everything (the "ROOT" thing) |
07:57:46 | Araq | I need more feedback before I can improve karax further. |
08:06:37 | FromGitter | <ephja> having multiple components achieves exactly what I said. so tired. can't think |
08:08:59 | * | DarkArctic quit (Read error: Connection reset by peer) |
08:09:46 | * | DarkArctic joined #nim |
08:14:13 | FromGitter | <ephja> I might try it later. I dunno if I need better interop |
08:23:10 | * | Arrrr joined #nim |
08:23:10 | * | Arrrr quit (Changing host) |
08:23:10 | * | Arrrr joined #nim |
08:59:16 | * | sendell joined #nim |
08:59:18 | FromGitter | <Vindaar> @GULPF: since your work (maybe not all?) on the `times` module is merged by now, I guess I can close https://github.com/nim-lang/Nim/issues/7315 right? Awesome work btw :) (cc @Araq) |
09:00:55 | FromGitter | <mratsim> @alehander42 awesome! |
09:09:17 | * | simonsolnes joined #nim |
09:14:53 | * | Senketsu quit (Quit: WeeChat 2.1) |
09:34:16 | Araq | hmm declaration-site .experimental concepts work for the stdlib |
09:34:36 | Araq | I mean, we can use a selected set of concepts for the stdlib |
09:34:59 | Araq | and when users want to write their own they have to enable it explicitly |
09:35:44 | Araq | so they are warned they will have to rewrite them once we have a non-typedesc-skipping syntax. |
09:35:59 | Araq | and maybe an implementation which is not Turing complete ... |
09:36:21 | Araq | ah a boy's dreams. |
09:37:49 | * | SenasOzys quit (Read error: Connection reset by peer) |
10:05:46 | * | leorize quit (Ping timeout: 264 seconds) |
10:07:16 | * | xet7 quit (Read error: Connection timed out) |
10:07:36 | * | xet7 joined #nim |
10:26:53 | * | leorize joined #nim |
10:51:10 | * | codevantage joined #nim |
11:09:57 | FromGitter | <alehander42> @krux02 is there a way to match "rest" somehow? |
11:11:20 | FromGitter | <alehander42> e.g. i am writing now a macro that takes `Stuff(a, b, ..)` and I don't see a way to express I want all the children after 1 of nnkCall to be nnkExprColonExpr |
11:16:45 | * | leorize quit (Ping timeout: 256 seconds) |
11:20:29 | * | smt joined #nim |
11:30:17 | * | simonsolnes quit (Quit: leaving) |
11:33:42 | FromGitter | <alehander42> something like ⏎ ⏎ ```of nnkObjConstr(`componentName`, *nnkExprColonExpr(`names[]`, `values[]`)):``` ⏎ ⏎ would be incredibly useful [https://gitter.im/nim-lang/Nim?at=5ae0679662316e0505fa754a] |
11:35:00 | FromGitter | <alehander42> as now I have to just write three lines of boilerplate |
11:36:32 | FromGitter | <alehander42> I know it's not constructed that way, but a lot of stuff in the ast has variadic properties, how do you match `call(different_number_of_args)` ? |
11:40:27 | FromGitter | <alehander42> otherwise nice to finally use something like that |
11:47:42 | FromGitter | <alehander42> errors are also good |
11:50:34 | * | xet7 quit (Read error: Connection timed out) |
11:51:06 | * | xet7 joined #nim |
12:01:58 | * | SenasOzys joined #nim |
12:03:55 | * | nsf quit (Quit: WeeChat 2.0.1) |
12:10:28 | * | xkapastel quit (Quit: Connection closed for inactivity) |
12:23:44 | * | edcragg quit (*.net *.split) |
12:23:46 | * | craigger quit (*.net *.split) |
12:23:47 | * | d10n quit (*.net *.split) |
12:23:50 | * | skrzyp quit (*.net *.split) |
12:23:50 | * | cornfeedhobo quit (*.net *.split) |
12:26:11 | * | edcragg joined #nim |
12:26:11 | * | craigger joined #nim |
12:26:11 | * | cornfeedhobo joined #nim |
12:26:11 | * | skrzyp joined #nim |
12:26:17 | * | d10n joined #nim |
12:26:51 | * | skrzyp quit (Max SendQ exceeded) |
12:27:38 | * | d10n quit (Changing host) |
12:27:38 | * | d10n joined #nim |
12:27:57 | * | mwbrown quit (Ping timeout: 240 seconds) |
12:28:31 | * | mwbrown joined #nim |
12:28:33 | FromGitter | <mratsim> we need an arity macro that works for proc call |
12:30:09 | shashlick | Does nim doc generate rst or markdown? Wondering if I can use readthedocs.io to host nimgen wrapper docs |
12:30:23 | codevantage | rst |
12:30:45 | codevantage | or rather all nim docs are written in rst |
12:31:18 | codevantage | doesnt nim have a documentation tool |
12:31:22 | FromGitter | <alehander42> @mratsim how would it work |
12:32:12 | * | Guest98328 joined #nim |
12:33:54 | * | leru_ joined #nim |
12:34:48 | leru_ | hi, may it be https://nim-lang.org/docs/httpclient.html is outdated? |
12:35:12 | FromGitter | <gogolxdong> How to translate this string 2018-05-19T02:03:44Z to DateTime? |
12:36:03 | leru_ | i just wanted to write a simple program, but it seems everything is outdated and the compiler tells me "Error: undeclared identifier: 'newHttpClient'" |
12:36:50 | leru_ | sorry, i ment "everything is deprecated", because of the compiler errors |
12:40:15 | * | xet7 quit (Read error: Connection timed out) |
12:40:35 | * | xet7 joined #nim |
12:41:30 | Araq | import asynchttpclient which also has a sync variant |
12:42:18 | * | nc-x joined #nim |
12:43:27 | bodie_ | I'm having a bit of trouble understanding the usage of nimble with this project layout: https://github.com/zacharycarter/nuklear-nim/tree/master/examples |
12:45:11 | nc-x | Araq: Shouldn't it be `import httpclient` which also supports async variant? I don't see any `asynchttpclient` module? |
12:53:51 | * | enthus1ast joined #nim |
12:55:14 | Araq | sorry, I probably confused that with asynchttpserver |
12:56:09 | * | PMunch quit (Quit: Leaving) |
12:58:14 | enthus1ast | leru_: you have to use the newAsyncHttpClient proc from the module httpclient |
12:58:41 | enthus1ast | but then you must write async code |
12:59:29 | enthus1ast | s/have to/should |
13:02:23 | * | nc-x quit (Quit: Page closed) |
13:02:38 | * | bodie_ left #nim ("Leaving") |
13:05:52 | leru_ | so i just tried the async verison from te website, but it doesn't work neither |
13:06:31 | FromGitter | <Vindaar> @gogolxdong "yyyy-MM-dd'T'HH-mm-sszzz" does the trick, iirc |
13:08:32 | enthus1ast | leru_: could you send a nopaste what you have tried and the error message |
13:09:31 | * | leorize joined #nim |
13:12:34 | leru_ | https://pastebin.com/fxTFNjiK |
13:12:45 | leru_ | copied right from https://nim-lang.org/docs/httpclient.html#progress-reporting |
13:13:12 | enthus1ast | import asyncdispatch |
13:13:16 | FromGitter | <gogolxdong> @Vindaar thanks. |
13:13:28 | enthus1ast | leru_: add this line to your imports |
13:14:22 | leru_ | oh, boy.. Error: attempting to call undeclared routine: 'onProgressChanged=' |
13:14:51 | * | Senketsu joined #nim |
13:15:01 | FromGitter | <mratsim> @alehander42 I don’t know, magic? |
13:15:18 | enthus1ast | leru_: https://gist.github.com/enthus1ast/a052d8c4dbf487f0d9fb6f91ddf1dd77 |
13:15:32 | FromGitter | <mratsim> or just counting the proc parameters might do the trick. |
13:16:35 | leru_ | enthus1ast: not working for me |
13:18:03 | * | Senketsu quit (Client Quit) |
13:21:39 | * | SenasOzys quit (Remote host closed the connection) |
13:21:50 | * | xet7 quit (Read error: Connection timed out) |
13:21:58 | enthus1ast | leru_: could you send a nopaste what you have tried and the error message |
13:22:37 | * | xet7 joined #nim |
13:23:24 | leru_ | enthus1ast: your paste. error: mensa.nim(7, 7) Error: attempting to call undeclared routine: 'onProgressChanged=' |
13:24:43 | enthus1ast | leru_: youre probably on an older nim version, try to update it |
13:26:17 | leru_ | enthus1ast: just installed from linux mint repos. aren't they up to date? |
13:27:04 | enthus1ast | i personally use git to keep nim up to date but "choosenim" might work for you |
13:28:04 | enthus1ast | after the git pull i usually compile it with "koch boot -d:release" |
13:29:57 | * | athenot quit (Read error: Connection reset by peer) |
13:30:16 | * | athenot joined #nim |
13:30:23 | leru_ | yes, i'd do that if there wasn't a package in the repo |
13:30:23 | leru_ | someone should remove it if it's not updated anymore |
13:33:27 | shashlick | What version do you have |
13:33:48 | shashlick | nim -v |
13:33:50 | * | SenasOzys joined #nim |
13:34:16 | leru_ | omg |
13:34:17 | leru_ | Nim Compiler Version 0.12.0 (2015-11-02) [Linux: amd64] |
13:34:42 | leru_ | someone remove the package immediately |
13:36:36 | * | dddddd joined #nim |
13:43:56 | enthus1ast | mh we really should provide more copy pastable example code in the docs |
13:48:05 | * | Sentreen joined #nim |
14:02:22 | * | Snircle joined #nim |
14:04:23 | * | miran joined #nim |
14:21:45 | * | xet7 quit (Read error: Connection timed out) |
14:22:07 | * | xet7 joined #nim |
14:23:21 | federico3 | yup |
14:23:29 | * | xet7 quit (Max SendQ exceeded) |
14:23:51 | * | xet7 joined #nim |
14:24:49 | * | nsf joined #nim |
14:33:22 | * | endragor quit (Remote host closed the connection) |
14:33:49 | * | endragor joined #nim |
14:38:05 | * | endragor quit (Ping timeout: 240 seconds) |
14:46:28 | * | leorize quit (Read error: Connection reset by peer) |
14:46:59 | * | Senketsu joined #nim |
14:50:48 | * | CodeVantage_ joined #nim |
14:52:39 | * | leru_ quit (Remote host closed the connection) |
14:55:47 | * | surma quit () |
14:56:06 | * | surma joined #nim |
14:57:05 | * | leorize joined #nim |
14:58:10 | * | xet7 quit (Read error: Connection timed out) |
14:58:36 | * | xet7 joined #nim |
15:00:10 | * | xet7 quit (Max SendQ exceeded) |
15:01:08 | * | leorize quit (*.net *.split) |
15:01:08 | * | CodeVantage_ quit (*.net *.split) |
15:01:09 | * | Sentreen quit (*.net *.split) |
15:01:10 | * | edcragg quit (*.net *.split) |
15:01:10 | * | craigger quit (*.net *.split) |
15:01:12 | * | cornfeedhobo quit (*.net *.split) |
15:01:17 | * | unclechu quit (*.net *.split) |
15:01:18 | * | d10n quit (*.net *.split) |
15:01:18 | * | smt quit (*.net *.split) |
15:01:19 | * | ftsf quit (*.net *.split) |
15:01:19 | * | Lord_Nightmare quit (*.net *.split) |
15:01:20 | * | tersec quit (*.net *.split) |
15:01:20 | * | federico3 quit (*.net *.split) |
15:01:21 | * | brainproxy quit (*.net *.split) |
15:01:21 | * | Tanger quit (*.net *.split) |
15:01:21 | * | pwntus quit (*.net *.split) |
15:01:22 | * | onionhammer1 quit (*.net *.split) |
15:01:22 | * | SenasOzys quit (*.net *.split) |
15:01:24 | * | MonsterAbyss quit (*.net *.split) |
15:01:25 | * | Cthalupa quit (*.net *.split) |
15:01:26 | * | hogeland_ quit (*.net *.split) |
15:01:26 | * | Araq quit (*.net *.split) |
15:01:27 | * | def- quit (*.net *.split) |
15:01:27 | * | Sargun quit (*.net *.split) |
15:01:50 | * | SenasOzys joined #nim |
15:01:50 | * | MonsterAbyss joined #nim |
15:01:50 | * | Cthalupa joined #nim |
15:01:50 | * | hogeland_ joined #nim |
15:01:50 | * | Sargun joined #nim |
15:01:50 | * | Araq joined #nim |
15:01:50 | * | def- joined #nim |
15:03:23 | * | leorize joined #nim |
15:03:23 | * | CodeVantage_ joined #nim |
15:03:23 | * | Sentreen joined #nim |
15:03:23 | * | edcragg joined #nim |
15:03:23 | * | craigger joined #nim |
15:03:23 | * | cornfeedhobo joined #nim |
15:04:13 | * | d10n joined #nim |
15:04:13 | * | smt joined #nim |
15:04:13 | * | ftsf joined #nim |
15:04:13 | * | Lord_Nightmare joined #nim |
15:04:13 | * | tersec joined #nim |
15:04:13 | * | federico3 joined #nim |
15:04:13 | * | brainproxy joined #nim |
15:04:13 | * | Tanger joined #nim |
15:04:13 | * | pwntus joined #nim |
15:04:13 | * | onionhammer1 joined #nim |
15:04:28 | * | Demos[m] quit (Ping timeout: 246 seconds) |
15:04:34 | * | smt quit (Max SendQ exceeded) |
15:04:34 | * | d10n quit (Max SendQ exceeded) |
15:04:39 | * | hohlerde quit (Ping timeout: 255 seconds) |
15:04:51 | * | survivorm[m] quit (Ping timeout: 245 seconds) |
15:04:51 | * | planetis[m] quit (Ping timeout: 245 seconds) |
15:04:52 | * | byteflame quit (Ping timeout: 245 seconds) |
15:04:52 | * | pqflx3[m] quit (Ping timeout: 245 seconds) |
15:04:55 | * | stisa quit (Ping timeout: 246 seconds) |
15:04:55 | * | zielmicha[m]1 quit (Ping timeout: 246 seconds) |
15:04:55 | * | amp907[m] quit (Ping timeout: 246 seconds) |
15:04:55 | * | notdekka[m] quit (Ping timeout: 246 seconds) |
15:04:55 | * | narimiran[m] quit (Ping timeout: 246 seconds) |
15:04:57 | * | solitudesf quit (Ping timeout: 246 seconds) |
15:04:57 | * | Miguelngel[m] quit (Ping timeout: 246 seconds) |
15:04:58 | * | libman[m] quit (Ping timeout: 240 seconds) |
15:04:58 | * | TheManiac quit (Ping timeout: 240 seconds) |
15:05:00 | * | dyce[m] quit (Ping timeout: 246 seconds) |
15:05:04 | * | d10n joined #nim |
15:05:07 | * | Abnegation quit (Ping timeout: 255 seconds) |
15:05:09 | * | krux02[m] quit (Ping timeout: 260 seconds) |
15:05:09 | * | macsek1911[m] quit (Ping timeout: 260 seconds) |
15:05:10 | * | mgdelacroix[m] quit (Ping timeout: 260 seconds) |
15:05:36 | * | xet7 joined #nim |
15:05:37 | * | smt joined #nim |
15:05:39 | * | petersjt014[m] quit (Ping timeout: 276 seconds) |
15:06:08 | * | Guest98328 quit (Ping timeout: 256 seconds) |
15:06:31 | * | d10n quit (Changing host) |
15:06:31 | * | d10n joined #nim |
15:07:30 | * | Guest98328 joined #nim |
15:14:44 | * | MyMind joined #nim |
15:14:45 | * | leorize quit (Ping timeout: 264 seconds) |
15:15:05 | * | Sembei quit (Ping timeout: 240 seconds) |
15:15:31 | * | NimBot joined #nim |
15:16:02 | * | leorize joined #nim |
15:20:00 | * | Sembei joined #nim |
15:35:54 | * | xet7 quit (Read error: Connection timed out) |
15:36:25 | * | xet7 joined #nim |
15:44:33 | * | ftsf quit (Ping timeout: 248 seconds) |
15:50:31 | * | r3d9u11 joined #nim |
15:51:09 | * | leorize quit (Quit: WeeChat 2.1) |
15:54:32 | * | xet7 quit (Read error: Connection timed out) |
15:55:02 | * | xet7 joined #nim |
15:56:00 | * | xkapastel joined #nim |
16:02:20 | * | codevantage quit (Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org) |
16:12:54 | * | mwbrown quit (Ping timeout: 260 seconds) |
16:14:02 | * | pqflx3[m] joined #nim |
16:14:02 | * | pqflx3[m] quit (Changing host) |
16:14:02 | * | pqflx3[m] joined #nim |
16:15:16 | * | mwbrown joined #nim |
16:21:04 | * | xet7 quit (Read error: Connection timed out) |
16:21:26 | * | xet7 joined #nim |
16:23:39 | * | jrbrt joined #nim |
16:30:12 | * | CodeVantage_ is now known as CodeVance |
16:30:29 | * | Abnegation joined #nim |
16:30:30 | * | unclechu joined #nim |
16:30:30 | * | dyce[m] joined #nim |
16:30:30 | * | Miguelngel[m] joined #nim |
16:30:30 | * | solitudesf joined #nim |
16:30:31 | * | mgdelacroix[m] joined #nim |
16:30:31 | * | Demos[m] joined #nim |
16:30:36 | * | narimiran[m] joined #nim |
16:30:36 | * | stisa joined #nim |
16:30:37 | * | TheManiac joined #nim |
16:30:37 | * | survivorm[m] joined #nim |
16:30:37 | * | libman[m] joined #nim |
16:30:37 | * | planetis[m] joined #nim |
16:30:37 | * | petersjt014[m] joined #nim |
16:30:37 | * | krux02[m] joined #nim |
16:30:37 | * | macsek1911[m] joined #nim |
16:30:38 | * | byteflame joined #nim |
16:30:38 | * | amp907[m] joined #nim |
16:30:38 | * | zielmicha[m] joined #nim |
16:30:38 | * | hohlerde joined #nim |
16:30:39 | * | notdekka[m] joined #nim |
16:36:23 | * | Trustable joined #nim |
16:37:31 | * | sendell quit (Remote host closed the connection) |
16:40:54 | FromGitter | <ephja> Element has a querySelector method, but VNode.dom is a Node and karax does not have a corresponding hierarchy, so I guess that means you sometimes have to perform casts for now |
16:49:35 | * | Sembei quit (Ping timeout: 256 seconds) |
16:50:57 | CodeVance | I think there should only be one proc name for del in a seq |
16:51:06 | CodeVance | delete and del is bad |
16:51:07 | CodeVance | and hard to |
16:51:10 | CodeVance | maintain |
17:00:18 | FromDiscord | <claude> theyre different things |
17:00:31 | FromDiscord | <claude> del changes order delete doesnt |
17:00:44 | FromDiscord | <claude> and del is faster |
17:00:54 | CodeVance | hmm. Why is that a good idea? |
17:01:03 | FromDiscord | <claude> because its faster |
17:01:14 | CodeVance | Nothing in the proc's name tells me that |
17:01:31 | FromGitter | <ephja> very creative, but possibly confusing :p |
17:01:44 | FromGitter | <ephja> well it's shorter lol |
17:02:02 | CodeVance | why not call the one replace? |
17:02:04 | CodeVance | and the other del |
17:02:18 | FromDiscord | <claude> del is the less likely name to guess when thinking of the proc to use, and delete is the safer option |
17:02:43 | CodeVance | or something ::: |
17:02:58 | CodeVance | I was trying remove |
17:03:14 | CodeVance | what about fastdel |
17:03:18 | FromGitter | <ephja> it's not very hidden when you use semantic analysis |
17:04:04 | FromGitter | <ephja> fastDel seems like a good name |
17:04:57 | CodeVance | or bitswap... if I understand whats actually happening? |
17:05:09 | CodeVance | I declare my ignorance |
17:05:48 | CodeVance | but I wouldn't be using seq anyway if I wanted something normal. I hope nim gets a plain old list type or package |
17:06:21 | CodeVance | I wanted to do a remove(`first item you find of this`) |
17:07:40 | * | skrylar joined #nim |
17:07:53 | FromDiscord | <claude> `template remove(a, b: untyped): untyped = a.delete(a.find(b))` |
17:08:02 | FromGitter | <ephja> https://nim-lang.org/docs/lists.html? have a look through this https://nim-lang.org/docs/lib.html |
17:08:07 | CodeVance | and making something shorter to type makes it more likely that it would be the proc used. (I did that) |
17:08:30 | CodeVance | ephja thanks |
17:08:32 | CodeVance | is that new? |
17:08:39 | CodeVance | I didn't see it |
17:09:14 | shashlick | why does testament need -d:nimCoroutines? |
17:09:29 | FromGitter | <ephja> it does seem old |
17:09:33 | CodeVance | oh... I have no idea what Doubly linked and singly linked lists are |
17:09:38 | CodeVance | So I didn't use them |
17:10:06 | FromGitter | <ephja> shashlick: maybe it tests coroutines |
17:11:47 | shashlick | okay seems like it is on linux |
17:12:24 | FromGitter | <ephja> no it must be because it's using it for whatever reason. the tests use their owns flags |
17:13:17 | * | Trustable quit (Remote host closed the connection) |
17:15:01 | shashlick | ya see that's what i'm confused about - there's no import coro anywhere |
17:18:35 | * | Arrrr quit (Ping timeout: 240 seconds) |
17:19:35 | CodeVance | how to make an alias of a type? |
17:19:49 | FromDiscord | <claude> type X = Y |
17:21:03 | CodeVance | isn't that a subtype? |
17:21:30 | CodeVance | nvm I see my proc is wrong |
17:22:23 | FromDiscord | <claude> thats type X = distinct Y |
17:48:22 | * | Senketsu quit (Quit: WeeChat 2.1) |
17:53:21 | * | nsf quit (Quit: WeeChat 2.0.1) |
17:54:47 | * | jrbrt quit (Quit: jrbrt) |
17:56:13 | * | xet7 quit (Read error: Connection timed out) |
17:56:36 | * | xet7 joined #nim |
18:01:41 | * | xkapastel quit (Quit: Connection closed for inactivity) |
18:03:49 | * | Senketsu joined #nim |
18:07:38 | * | jjido joined #nim |
18:11:52 | FromGitter | <ephja> https://github.com/nim-lang/Nim/blob/3e33668abc496e0b45183804b9b2d70963869a6a/lib/system/gc.nim#L63 hmm |
18:17:05 | * | Senketsu quit (Quit: WeeChat 2.1) |
18:20:08 | * | jrbrt joined #nim |
18:21:34 | * | jrbrt quit (Client Quit) |
18:23:48 | * | jrbrt joined #nim |
18:24:07 | * | jjido quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
18:25:38 | FromGitter | <ephja> is it relevant without using coro? unless I've missed an import somewhere |
18:29:28 | FromGitter | <ephja> https://youtu.be/8rkdeF0HCto?t=2h58m10s debugging OOP code |
18:32:08 | petersjt014[m] | Any chance I could get feedback on a thing I wrote? |
18:32:26 | petersjt014[m] | https://github.com/petersjt014/eka |
18:33:41 | petersjt014[m] | I'm going to have to go in about 10 min and will be back a few hours after, but any general suggestions/observations would be helpful. :)) |
18:34:20 | * | jjido joined #nim |
18:34:54 | * | jrbrt quit (Quit: jrbrt) |
18:39:09 | * | xet7 quit (Read error: Connection timed out) |
18:39:35 | * | xet7 joined #nim |
18:41:36 | * | jrbrt joined #nim |
18:43:52 | * | r3d9u11 quit (Remote host closed the connection) |
18:48:48 | FromDiscord | <claude> are you open to formatting issues in general? |
18:50:53 | FromDiscord | <claude> like you can do `for n in episode` instead of `episode.items`, should use isNil instead of == nil, don't have to add explicit void return type, can use `echo field, " :: ", content` instead of using &, can use an array instead of a seq when you're iterating over constant strings |
18:53:16 | FromDiscord | <claude> also you shouldn't create a new httpclient every time you call the fetch proc |
18:59:47 | thor77 | petersjt014[m]: i like your readme a lot :) |
18:59:58 | CodeVance | How do you bit shift in nim |
19:00:02 | * | jrbrt quit (Quit: jrbrt) |
19:01:01 | FromGitter | <ephja> CodeVance: with shl and shr |
19:01:14 | CodeVance | ;) |
19:02:16 | * | jjido quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
19:04:01 | FromDiscord | <claude> CodeVance: i think this is the thing youre looking for https://nim-lang.org/docs/system.html |
19:05:11 | CodeVance | Yes. it's long XD |
19:05:53 | CodeVance | I was actually looking for a way to make flags |
19:06:03 | CodeVance | sets seems to be what I want |
19:06:09 | FromGitter | <ephja> it's documented so you might find what you're looking for by searching |
19:06:36 | * | xkapastel joined #nim |
19:06:37 | FromGitter | <ephja> yeah use sets |
19:10:12 | * | jrbrt joined #nim |
19:21:13 | FromGitter | <Varriount> Araq: Is there an AST example on the shape of the checked field and hidden deref trees? |
19:27:49 | skrylar | hum. might port the hidden markov model code over to nim to see how much faster it is |
19:28:05 | * | skrylar wrote a pattern recognizer in smalltalk but is quite slow; 138 training cycles per second ._. |
19:28:15 | * | Vladar quit (Quit: Leaving) |
19:30:49 | * | xet7 quit (Read error: Connection timed out) |
19:31:35 | * | xet7 joined #nim |
19:32:23 | * | nsf joined #nim |
19:33:53 | skrylar | i'm guessing by the number of times flatbuffers has been mentioned, the autoserialize code should get made for that |
19:34:27 | * | endragor joined #nim |
19:37:25 | Araq | varriount: nkCheckedFieldExpr --> continue traversal with n[0] |
19:37:47 | Araq | nkHiddenDeref --> continue traversal with n[0] |
19:39:17 | * | endragor quit (Ping timeout: 268 seconds) |
19:41:28 | FromGitter | <Varriount> Araq: Thanks! |
19:49:43 | * | CodeVance quit (Quit: Leaving) |
19:52:33 | * | endragor joined #nim |
19:56:54 | * | endragor quit (Ping timeout: 260 seconds) |
20:00:43 | * | xet7 quit (Read error: Connection timed out) |
20:01:06 | * | xet7 joined #nim |
20:03:39 | * | yglukhov quit (Ping timeout: 255 seconds) |
20:19:33 | * | CodeVantage joined #nim |
20:22:04 | * | jjido joined #nim |
20:24:47 | * | jjido quit (Client Quit) |
20:31:31 | * | miran quit (Ping timeout: 256 seconds) |
20:32:54 | * | athenot quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
20:46:10 | * | craigger quit (Quit: bye) |
20:46:21 | * | CodeVantage quit (Quit: Leaving) |
20:49:06 | * | craigger joined #nim |
21:02:46 | * | jjido joined #nim |
21:10:51 | skrylar | forgot how weird flatbuffers are to write |
21:17:56 | * | nsf quit (Quit: WeeChat 2.0.1) |
21:21:41 | * | yglukhov joined #nim |
21:24:58 | * | xet7 quit (Read error: Connection timed out) |
21:25:35 | * | xet7 joined #nim |
21:27:32 | * | jxy quit (Quit: leaving) |
21:31:13 | * | jxy joined #nim |
21:47:25 | shashlick | petersjt014[m]: cool that you know about Sanskrit |
21:47:30 | * | jjido quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
21:51:56 | * | yglukhov quit (Remote host closed the connection) |
22:07:20 | * | CodeVantage joined #nim |
22:13:16 | * | xet7 quit (Read error: Connection timed out) |
22:13:36 | * | xet7 joined #nim |
22:16:23 | * | endragor joined #nim |
22:30:56 | * | Snircle quit (Remote host closed the connection) |
22:31:38 | * | jrbrt quit (Quit: jrbrt) |
22:32:06 | * | endragor quit (Remote host closed the connection) |
22:33:39 | * | jrbrt joined #nim |
23:12:00 | * | CodeVantage quit (Quit: Leaving) |
23:12:20 | * | CodeVantage joined #nim |
23:13:22 | * | CodeVantage quit (Client Quit) |
23:18:37 | * | skrylar quit (Remote host closed the connection) |
23:18:58 | * | skrylar joined #nim |
23:23:01 | FromGitter | <zacharycarter> @mratsim - wait... can you explain this to me in non-really-smart terms? - fixed arbitrary precision integer |
23:23:03 | FromGitter | <zacharycarter> idgi |
23:23:12 | FromGitter | <zacharycarter> like is the int sizing precise? |
23:23:40 | FromGitter | <zacharycarter> because I don't see there being much precision in integer based operations |
23:23:46 | FromGitter | <zacharycarter> but I am kind of stupid and naive so |
23:38:44 | FromGitter | <zacharycarter> I'm sure this already got tossed around - but... interesting read I think: https://vorpus.org/blog/notes-on-structured-concurrency-or-go-statement-considered-harmful/#what-is-a-goto-statement-anyway |
23:39:02 | FromGitter | <zacharycarter> sorry - https://vorpus.org/blog/notes-on-structured-concurrency-or-go-statement-considered-harmful/ |
23:39:43 | skrylar | well. thanks to 0.18 being neat, wrote the macro to create vtables via macros |
23:42:59 | skrylar | zacharycarter: does someone actually need fb's or do people just like talking about it |
23:45:26 | FromGitter | <zacharycarter> probably the latter |
23:45:39 | FromGitter | <zacharycarter> someone brought them up the other night |
23:45:44 | FromGitter | <zacharycarter> saying it'd be sweet if Nim had them |
23:45:55 | FromGitter | <zacharycarter> and then krux02 was saying you could easily implement them with nim |
23:45:55 | skrylar | i see them mentioned and someone links my repo |
23:46:36 | FromGitter | <zacharycarter> I mean - maybe folks do - I don't know - dude tbh I'm so like tired of work and fed up with things in my personal life that I haven't been able to concentrate on Nim / programming like I'd like to be lately |
23:46:52 | FromGitter | <zacharycarter> I've been venting to shashlick for like the past 20 mins about it in OT haha |
23:47:18 | skrylar | i put in a few pomodoros for automatic serialization |
23:47:40 | FromGitter | <zacharycarter> I mean I'll say this - I don't think Nim having flatbuffer support is doing us any harm |
23:48:13 | skrylar | no, i just stopped writing nim because 1) life fell apart and 2) always felt like i was writing utility code people asked for but never used |
23:48:41 | FromGitter | <zacharycarter> well - that's an issue with Nim - the userbase is so small code re-use is minimal |
23:48:50 | FromGitter | <zacharycarter> but I think we all just have to be hopeful that the userbase expands |
23:49:05 | skrylar | 0.18 seems upset that i use the same method name even though it has two typedescs |
23:49:08 | FromGitter | <zacharycarter> I don't know - I honestly don't really feel like I have a firm grasp on what Nim wants to be |
23:49:16 | skrylar | proc flatbuffer_inline_sizeof[T:Primitive] (): int = |
23:49:16 | skrylar | proc flatbuffer_inline_sizeof[string] (): int = |
23:49:37 | FromGitter | <zacharycarter> weird |
23:50:04 | skrylar | this seems like a bug |
23:50:55 | * | CodeVantage joined #nim |
23:51:11 | FromGitter | <zacharycarter> it very well could be |
23:51:17 | FromGitter | <zacharycarter> although wait |
23:51:26 | FromGitter | <zacharycarter> is string technically a primitive? |
23:51:35 | skrylar | zacharycarter: seems like a standard problem to me. lot of people working on glory code, not many doing boring unpaid things like heaving 20k lines of GTK definitions |
23:51:49 | skrylar | no: Primitive* = SomeNumber | char | bool ## for generics |
23:51:55 | FromGitter | <zacharycarter> hmmm |
23:52:00 | FromGitter | <zacharycarter> yeah def a bug then I think |
23:52:40 | * | leorize joined #nim |
23:53:00 | skrylar | shame because otherwise this neatness would work: template add*(self: var Vtable; where: voffset; T: typed) = let soz = flatbuffer_inline_sizeof[T]() |
23:53:10 | FromGitter | <zacharycarter> skrylar: I agree - it's just how do we as a community come together and fix that - or do we even care? I hear some folks saying Nim should just stay niche and be good at certain things. I don't know if I agree, or what the overall consensus of the community is. |
23:53:52 | FromGitter | <zacharycarter> and probably a majority of people don't care either way - they just want to consume Nim |
23:54:19 | FromGitter | <zacharycarter> but I mean - I think there are people too who would rally around a cause in the community and contribute - obviously that is the case because Nim itself has contributors |
23:54:28 | FromGitter | <zacharycarter> so like - where do we best spend our time and how do we spend it most effectively? |