00:08:03 | * | abm quit (Ping timeout: 246 seconds) |
00:08:31 | * | abm joined #nim |
00:10:50 | FromGitter | <mratsim> in the example, it seems like you need to import the specific files |
00:11:16 | FromGitter | <mratsim> like import random.xorshift |
00:13:20 | * | laaron quit (Remote host closed the connection) |
00:15:18 | * | theelous3 quit (Ping timeout: 268 seconds) |
00:15:29 | * | laaron joined #nim |
00:20:20 | * | cyberjpn joined #nim |
00:40:35 | * | actuallybatman joined #nim |
00:43:27 | * | laaron quit (Remote host closed the connection) |
00:45:18 | * | laaron joined #nim |
00:49:24 | * | abm quit (Quit: Leaving) |
01:07:51 | * | btop joined #nim |
01:08:53 | * | dddddd quit (Remote host closed the connection) |
01:22:58 | * | laaron quit (Quit: ZNC 1.7.1 - https://znc.in) |
01:23:20 | * | laaron joined #nim |
01:38:20 | * | btop quit (Ping timeout: 276 seconds) |
01:41:40 | * | ZORR0W quit (Read error: Connection reset by peer) |
01:44:14 | * | ZORR0W joined #nim |
01:57:15 | leorize | also, there's the `pkg/` prefix that can be used to force import from nimble |
02:07:53 | * | btop joined #nim |
02:12:39 | * | btop quit (Ping timeout: 246 seconds) |
02:13:30 | FromGitter | <juancarlospaco> Hello. :) |
02:13:36 | FromGitter | <juancarlospaco> https://play.nim-lang.org Down?. |
02:13:59 | leorize | appears so |
02:16:49 | FromGitter | <juancarlospaco> When is the next Nim Video/Stream ?, long time since last one. :P |
02:42:02 | * | cyberjpn quit (Ping timeout: 240 seconds) |
02:54:40 | * | rockcavera quit (Remote host closed the connection) |
03:12:56 | * | theelous3 joined #nim |
03:13:48 | * | theelous3 quit (Read error: Connection reset by peer) |
03:28:36 | * | thomasross is now known as Guest41246 |
03:28:36 | * | thomasross_ joined #nim |
03:28:37 | * | Guest41246 quit (Killed (hitchcock.freenode.net (Nickname regained by services))) |
03:28:37 | * | thomasross_ is now known as thomasross |
03:32:05 | * | chemist69 quit (Ping timeout: 250 seconds) |
03:34:13 | * | chemist69 joined #nim |
03:59:45 | * | laaron quit (Remote host closed the connection) |
04:02:10 | * | laaron joined #nim |
04:14:25 | * | cgfuh quit (Ping timeout: 244 seconds) |
04:36:45 | * | nsf joined #nim |
04:42:26 | * | ZORR0W quit (Ping timeout: 240 seconds) |
04:43:58 | * | narimiran joined #nim |
04:44:21 | * | ZORR0W joined #nim |
04:55:13 | * | laaron quit (Remote host closed the connection) |
04:58:33 | * | laaron joined #nim |
05:17:36 | * | laaron quit (Remote host closed the connection) |
05:21:10 | * | laaron joined #nim |
05:47:19 | * | absolutejam3 joined #nim |
05:53:26 | * | fjellfras joined #nim |
05:58:47 | * | solitudesf joined #nim |
06:07:03 | * | alex92 joined #nim |
06:08:22 | FromGitter | <alehander42> @cheatfate does |
06:08:27 | FromGitter | <alehander42> asynctools still work reliably |
06:08:40 | FromGitter | <alehander42> i am trying to use it because of async process/ async pipe |
06:08:55 | FromGitter | <alehander42> and i wondered if it's still maintained (still using asyncdispatch) |
06:10:03 | * | btop joined #nim |
06:10:10 | * | laaron quit (Remote host closed the connection) |
06:12:06 | FromGitter | <gogolxdong> How to reset a array[6,int] to [0,0,0,0,0,0,0]? |
06:12:57 | * | laaron joined #nim |
06:16:15 | FromGitter | <alehander42> hm, one of my processes .. just dies on the first epoll_wait |
06:16:21 | FromGitter | <alehander42> but it doesnt seem to make sense to me |
06:16:32 | FromGitter | <alehander42> @gogolxdong just memcpy i guess |
06:16:33 | * | PMunch joined #nim |
06:16:38 | FromGitter | <alehander42> if it's on the c backend |
06:17:01 | Araq | a = [0,0,0,0,0,0] |
06:17:02 | FromGitter | <alehander42> if not, you can write a helper that loops |
06:20:18 | leorize | PMunch: the playground is offline |
06:21:39 | leorize | @gogolxdong: reset() also works |
06:21:59 | PMunch | leorize, well that's not good.. |
06:22:26 | PMunch | Hmm, seems like it ran out of disk |
06:22:54 | leorize | there aren't any log collector? :P |
06:24:11 | FromGitter | <zacharycarter> PMunch: are you using docker for it? |
06:24:36 | leorize | afaik the playground works by having a docker spawned per request |
06:25:05 | FromGitter | <zacharycarter> well that's how it worked in the initial version I built |
06:25:13 | FromGitter | <zacharycarter> but I'm not sure if PMunch changed it when he took it over |
06:25:16 | leorize | so my best guess is just some log rotation daemon got misconfigured and didn't clean some big logs |
06:25:31 | PMunch | Yeah, that's how it still works |
06:25:34 | FromGitter | <zacharycarter> docker is a PITA when it comes to disk space |
06:25:38 | PMunch | Yeah.. |
06:26:08 | PMunch | It's done this before, IIRC it's that the docker containers leaves a little trace behind, which slowly accumulates |
06:26:14 | FromGitter | <zacharycarter> yup |
06:26:51 | FromGitter | <zacharycarter> amazes me that docker has been around THIS long and still has major issues like this |
06:29:28 | FromGitter | <gogolxdong> Can I cast array[35, int] to nested array[5,array[0..6,int]]? |
06:31:29 | PMunch | gogolxdong, think so yeah |
06:32:34 | FromGitter | <gogolxdong> What about seq? |
06:32:51 | PMunch | Probably not |
06:33:15 | PMunch | A seq has two fields in front of the data, its size and capacity |
06:33:54 | PMunch | But you could cast the first position in the seq to an array |
06:34:13 | FromGitter | <alehander42> @gogolxdong you can not i think |
06:34:23 | FromGitter | <alehander42> if you use javascript |
06:34:33 | FromGitter | <alehander42> it really depend on your backend |
06:34:41 | FromGitter | <alehander42> do you use the c or the javascript backend |
06:35:54 | FromGitter | <alehander42> why would epoll_wait stop a program started by my script |
06:39:07 | alex92 | hm i forgot strace **-f** |
06:50:12 | * | btop quit (Ping timeout: 246 seconds) |
06:50:20 | * | absolutejam3 quit (Ping timeout: 276 seconds) |
06:50:49 | * | krux02 joined #nim |
06:53:22 | PMunch | Okay, leorize playground is back up and running now |
06:54:08 | PMunch | I went looking for solutions to this problem, apparently docker stores some metadata about every time you've run a container.. Which as you might imagine happens quite often on the playground |
06:54:42 | PMunch | What I did now was just delete the container, stop docker, manually delete all the files, start docker, and rebuild the container. |
06:54:53 | PMunch | This works, but it's not exactly a clean solution.. |
07:00:00 | * | gmpreussner quit (Quit: kthxbye) |
07:00:36 | FromGitter | <zacharycarter> I think I wrote a script to basically do all of that on a periodic basis |
07:00:39 | FromGitter | <zacharycarter> but I don't think it worked |
07:04:07 | PMunch | Yeah, I saw a lot of people trying different things |
07:04:43 | * | gmpreussner joined #nim |
07:17:24 | FromGitter | <gogolxdong> cast flat array to nested array works on C backend, not on JS backend. |
07:17:43 | * | alex92 quit (Ping timeout: 268 seconds) |
07:19:49 | krux02 | Araq: btw I found out more about the empty struct in c/c++. In gcc sizeof(EmptyStruct) is 0 in g++ sizeof(EmptyStruct) is 1 |
07:20:46 | krux02 | for gcc is in an extension, for g++ it is an official language feature. |
07:21:18 | * | btop joined #nim |
07:23:25 | Araq | sizeof(array) / sizeof(element) --> bug for 0 sized structs |
07:23:33 | * | floppydh joined #nim |
07:24:53 | * | absolutejam3 joined #nim |
07:26:08 | * | owl_000 joined #nim |
07:26:15 | * | btop quit (Ping timeout: 246 seconds) |
07:28:05 | krux02 | well, in nim you would probably just write array.len |
07:29:01 | Araq | http://janvitek.org/pubs/oopsla19b.pdf |
07:29:02 | * | owl joined #nim |
07:29:20 | * | owl quit (Client Quit) |
07:30:05 | krux02 | yea, I already know that scala implicits are everywhere, I think it is also a reason why scala compiles so slowly. |
07:30:33 | krux02 | In scala you can't even call an extension method without an implicit conversion. |
07:31:35 | krux02 | in scala implicit parameters are often used as a crutch, not as something you want. |
07:31:56 | Araq | you do know this, but many never used Scala :P |
07:32:22 | * | owl_000 quit (Ping timeout: 246 seconds) |
07:33:40 | * | ZORR0W quit (Read error: Connection reset by peer) |
07:33:46 | krux02 | for example, you can't have two methods with ``def foo(arg: Seq[int])`` and ``def foo(arg: Seq[float])``, because of type erasure. In the jvm Seq[float] is identical to Seq[int]. So you have to attach an implicit parameter to one of them to make them look distinct to the jvm. This parameter has no value in the function itself. |
07:35:14 | Araq | Scala doesn't have to follow the JVM's type erasure, it could do code specializations |
07:36:33 | krux02 | it does follow JVM's type erasure, to be callable from java without additional name mangleing |
07:36:57 | krux02 | and scala does have a feature for specializations, but it never really worked as far as I know. |
07:39:08 | * | ZORR0W joined #nim |
07:43:27 | krux02 | As much as I can tell you, we are in much better waters considering implicits. |
07:43:52 | krux02 | We have implicit conversions, but they are not required for anything unlike scala. |
07:57:09 | * | btop joined #nim |
08:02:44 | * | btop quit (Ping timeout: 268 seconds) |
08:32:06 | * | fredrik92 joined #nim |
08:32:11 | * | fredrik92 is now known as couven92 |
08:51:33 | * | Vladar joined #nim |
08:56:12 | * | chemist69 quit (Ping timeout: 246 seconds) |
09:01:38 | * | actuallybatman quit (Ping timeout: 276 seconds) |
09:13:03 | * | btop joined #nim |
09:18:15 | * | btop quit (Ping timeout: 246 seconds) |
09:18:19 | * | Vladar quit (Read error: Connection timed out) |
09:18:45 | * | Vladar joined #nim |
09:30:25 | * | btop joined #nim |
09:35:40 | * | owl_000 joined #nim |
09:48:21 | * | ZORR0W quit (Ping timeout: 246 seconds) |
09:50:58 | * | absolutejam3 quit (Ping timeout: 246 seconds) |
09:58:47 | * | ZORR0W joined #nim |
09:59:40 | * | absolutejam3 joined #nim |
10:04:01 | * | hoijui joined #nim |
10:17:00 | * | ZORR0W quit (Quit: leaving) |
10:22:46 | * | chemist69 joined #nim |
10:27:33 | * | dddddd joined #nim |
10:30:41 | * | alexander92 joined #nim |
10:31:30 | * | alexander92 quit (Client Quit) |
10:31:46 | * | alexander92 joined #nim |
10:33:07 | alexander92 | so , concepts |
10:33:14 | alexander92 | are the hot topic |
10:33:22 | * | btop quit (Ping timeout: 245 seconds) |
10:34:39 | alexander92 | " In the worst case, we could |
10:34:41 | alexander92 | add enableif for this without bloating the concept's design. |
10:35:49 | alexander92 | so you want two smaller features rather than one bigger? |
10:36:57 | * | ng0 joined #nim |
10:37:38 | Araq | I want type-checked generics and concepts can give me these |
10:39:38 | alexander92 | ok, i see |
10:39:46 | alexander92 | the one thing i dont get from design point is |
10:40:51 | alexander92 | why should `proc` and `iterator` be special , but not e.g. `template` `func` or `field` |
10:41:44 | alexander92 | if i am a new user, i would not expect concept proc test to match my type with template test (but maybe the "read the spec" point applies here ..) |
10:45:27 | * | fjellfras quit (Quit: Leaving) |
10:47:36 | Araq | I asked the question, "what does it take to type-check 'sort', 'find', hash tables" and came up with a clear design that should work. The old concepts don't solve that. |
10:50:37 | * | btop joined #nim |
10:51:32 | * | laaron quit (Remote host closed the connection) |
10:54:03 | * | laaron joined #nim |
10:54:30 | alexander92 | hm, i thought those work with current ones |
10:55:28 | * | btop quit (Ping timeout: 245 seconds) |
10:57:13 | * | laaron quit (Client Quit) |
10:57:59 | * | laaron joined #nim |
10:58:49 | * | laaron quit (Remote host closed the connection) |
11:00:01 | * | laaron joined #nim |
11:01:10 | * | laaron quit (Client Quit) |
11:07:03 | * | laaron joined #nim |
11:12:52 | Araq | look, currently generic proc bodies are not type-checked. It doesn't matter if you use concepts or not, they are not type checked. |
11:13:22 | Araq | for type-checking you need to say what 'T' must be capable of. |
11:13:43 | Araq | so you write generic constraints for T, aka concepts |
11:19:06 | alexander92 | ahh |
11:19:12 | alexander92 | i didn't know they trigger it |
11:19:16 | alexander92 | i thought only specializations |
11:19:29 | alexander92 | make the compiler typecheck bodies |
11:21:00 | alexander92 | sorry, so what i dont get then is what is missing from current concepts to make a good sort or hash table constraint (i thought both proposals are capable of similar things for matching functions and var-ity) |
11:21:52 | * | hoijui quit (Quit: Leaving) |
11:34:29 | Araq | with the existing concept syntax it's effectively guesswork what 'T' must be able to do, which operations are meant when you say |
11:34:45 | Araq | for x in c: foo(x) is int |
11:35:14 | Araq | is this 'int' evaluated in the instantiation scope or in the declaration scope? |
11:35:54 | Araq | and is the 'is' operator still the one from system.nim? |
11:36:34 | Araq | it's madness, effectively you need to give the concept body a real sublanguage/grammar to be able to figure out these things |
11:38:23 | Araq | does your for loop rely on the 'items' iterator? what if 'c' is itself an iterator? can iterators match concepts? |
11:39:20 | alexander92 | well, i'd guess instantiation scope? |
11:39:32 | alexander92 | honestly i dont know this for your proposal as well |
11:39:47 | alexander92 | the `int` thing* |
11:40:00 | Araq | it's the declaration scope, obviously |
11:40:05 | alexander92 | i agree that `is` overloading might seem strange |
11:40:29 | Araq | the stuff that you introduce comes after the 'proc', iterator or 'each' keywords |
11:40:44 | alexander92 | but i dont agree about the iterators: it seems natural to me to also match an iterator in this case (the concept says "stuff that can be typechecked like that", so obviously such an iterator is ok) |
11:41:52 | alexander92 | but on the other hand, it isn't possible to call an iterator like `c` right |
11:41:55 | alexander92 | you have to `c()` |
11:42:12 | alexander92 | so maybe there can't be ambiguity here |
11:42:52 | alexander92 | anyway, so it's a design discussion, that's what i wanted to understand, ok |
11:57:05 | * | ng0 quit (Quit: Alexa, when is the end of world?) |
12:05:00 | * | btop joined #nim |
12:07:51 | * | Kaivo joined #nim |
12:08:38 | * | abm joined #nim |
12:10:27 | * | btop quit (Ping timeout: 240 seconds) |
12:15:19 | * | sacredfrog joined #nim |
12:15:55 | FromGitter | <kaushalmodi> @gogolxdong You can use `reset` to reset the array. example: https://play.nim-lang.org/#ix=1UJe |
12:25:34 | PMunch | `reset` is nice :) |
12:39:18 | FromGitter | <gogolxdong> Good to know.Thanks. |
12:43:26 | * | rockcavera joined #nim |
12:52:34 | * | alexander92 quit (Ping timeout: 268 seconds) |
13:03:09 | * | fichtl quit (Read error: Connection reset by peer) |
13:03:34 | * | alexander92 joined #nim |
13:05:28 | * | pbb quit (Quit: http://quassel-irc.org - Chat comfortably. Anywhere.) |
13:06:05 | * | pbb joined #nim |
13:06:17 | * | nsf quit (Quit: WeeChat 2.5) |
13:07:53 | * | cgfuh joined #nim |
13:08:56 | * | pbb quit (Client Quit) |
13:09:55 | * | pbb joined #nim |
13:11:30 | owl_000 | is /zah/nim.vim plugin still working? |
13:12:03 | PMunch | I still use it :) |
13:12:14 | PMunch | So it at least gives you syntax highlighting |
13:12:57 | * | laaron quit (Quit: ZNC 1.7.1 - https://znc.in) |
13:13:14 | * | laaron joined #nim |
13:13:26 | owl_000 | PMunch you have a blog, peter's devlog? fantastic blog. and your presentation skill is good. |
13:14:35 | owl_000 | yesterday i found your blog, after seeing your name i remember it |
13:14:56 | owl_000 | ---- |
13:15:40 | owl_000 | by the way, i am not able to use nim.vim. i dont know what is the problem. i will try again |
13:16:12 | PMunch | Oh, thanks :) |
13:16:33 | PMunch | What parts of nim.vim are you trying to use? |
13:17:20 | owl_000 | at least syntax highlighting auto bracket closing. |
13:17:22 | PMunch | I pretty much just use syntax highlighting, but with nim.vim and nimlsp you can get tab completion and definition lookups and such as well |
13:17:56 | PMunch | Not sure if nim.vim ever had auto bracket closing, I tend to dislike it when my editor tries to do stuff for me.. |
13:19:25 | owl_000 | lol, then i don't need that. currently i am using nano. i modified python.nanorc and port it for nim. |
13:22:11 | PMunch | Have you tried nimlsp? |
13:22:31 | owl_000 | https://github.com/nim-lang/Nim/wiki/Editor-Support here nim can add nano, because just providing a nim.nanorc is enough for it. |
13:22:53 | owl_000 | nimlsp, no, |
13:23:22 | owl_000 | ok let me google |
13:23:44 | livcd | PMunch: can you buy pmunch.org ? |
13:23:44 | livcd | :D |
13:25:58 | PMunch | I mean I could.. But why would I? |
13:26:03 | PMunch | I already have peterme.net |
13:26:25 | PMunch | Or wait, doesn't .org need an organization behind them |
13:26:42 | livcd | so I can find your blog easily |
13:26:44 | livcd | selfish reasons |
13:27:10 | PMunch | Oh, because the PMunch -> peterme mapping is too hard? :P |
13:27:52 | livcd | yeah |
13:28:26 | livcd | you cant find it by googlin "PMunch nim blog" |
13:28:49 | PMunch | Well that is just poor SEO from my part :P |
13:33:32 | * | ng0 joined #nim |
13:42:57 | * | drewr quit (Quit: ERC (IRC client for Emacs 26.3)) |
13:46:04 | * | drewr joined #nim |
13:46:20 | * | ng0 quit (Ping timeout: 260 seconds) |
13:51:18 | * | ng0 joined #nim |
13:53:13 | * | btop joined #nim |
13:55:17 | lqdev[m] | PMunch: |
13:55:18 | lqdev[m] | > This is an open TLD; any person or entity is permitted to register. Originally intended for use by non-profit organizations, and still primarily used by some. |
13:55:19 | lqdev[m] | from wikipedia |
13:55:43 | lqdev[m] | so no, you don't have to be an organization to get a .org domain. |
13:56:53 | disruptek | i've had many org'ies in my day. |
13:57:54 | * | btop quit (Ping timeout: 246 seconds) |
13:57:54 | * | alexander92 quit (Read error: Connection reset by peer) |
13:58:34 | * | a_b_m joined #nim |
13:59:16 | disruptek | selling nookie.net is one of my early 'net regrets. |
13:59:47 | * | gangstacat quit (Quit: Ĝis!) |
14:02:06 | * | abm quit (Ping timeout: 246 seconds) |
14:03:11 | * | PMunch quit (Remote host closed the connection) |
14:03:57 | * | alexander92 joined #nim |
14:15:13 | * | gangstacat joined #nim |
14:25:48 | Zevv | what is your latest? |
14:26:35 | disruptek | TSLA |
14:29:32 | * | NimBot joined #nim |
14:46:24 | * | floppydh quit (Quit: WeeChat 2.5) |
14:53:10 | * | a_b_m quit (Quit: Leaving) |
14:59:31 | * | laaron quit (Remote host closed the connection) |
15:04:38 | * | laaron joined #nim |
15:04:39 | * | Mister_Magister quit (Excess Flood) |
15:04:57 | * | Mister_Magister joined #nim |
15:16:41 | * | couven92 quit (Ping timeout: 276 seconds) |
15:17:20 | * | absolutejam3 quit (Ping timeout: 276 seconds) |
15:25:41 | * | chun joined #nim |
15:28:15 | * | abm joined #nim |
15:41:16 | * | btop joined #nim |
15:44:26 | * | chun quit (Quit: Leaving) |
15:46:28 | * | btop quit (Ping timeout: 268 seconds) |
16:11:14 | * | alexander92 quit (Ping timeout: 240 seconds) |
16:16:34 | * | nsf joined #nim |
17:08:51 | * | actuallybatman joined #nim |
17:15:24 | * | btop joined #nim |
17:25:23 | * | laaron quit (Quit: ZNC 1.7.1 - https://znc.in) |
17:28:23 | * | wildtrees joined #nim |
17:28:47 | leorize | owl_000: if you use neovim, you can try nim.nvim, which is much better compared to the unmaintained nim.vim :P |
17:35:47 | leorize | disruptek: can you switch back to the 'refactoring' branch? |
17:36:01 | disruptek | yeah, but my freeze isn't fixed. :-/ |
17:36:13 | leorize | I've an idea on how to debug that 'out of fd' error |
17:36:55 | disruptek | did you push something? |
17:37:11 | leorize | nope, just manage to figure out some debugging procs |
17:37:17 | disruptek | okie, lemme know. |
17:37:39 | leorize | so :echo nvim_list_chans() should tell you how many fds does nvim keep |
17:38:32 | disruptek | alright, i'll check it periodically. |
17:39:08 | leorize | has your freeze always been there? |
17:39:22 | leorize | or is it a new thing due to nim.nvim? |
17:39:40 | disruptek | that's what i'm trying to figure out. i took gitgutter out today. |
17:41:37 | leorize | does the profiling highlight any hotspot? |
17:43:30 | leorize | also, if you want to check if nim.nvim causes trouble, then you can disable the semantic highlighter (which is probably the heaviest thing in the plugin) by commenting the second `autocmd` in `ftdetect/nim.vim` |
17:44:48 | disruptek | yeah, it's one of the two profile peaks. |
17:46:59 | leorize | is s:HighlightBuffer peak? |
17:47:23 | leorize | if it's just the handler then it's just async being profiled incorrectly |
17:47:36 | * | Trustable joined #nim |
17:48:26 | * | laaron joined #nim |
17:51:53 | disruptek | it looks like ~4mil setup and calls to nvim_buf_add_highlight |
17:52:23 | disruptek | i'm not 100% sure this run captured a freeze, though. |
17:53:50 | disruptek | BufferedCallback has a discrepancy between total time (~62s) and "self" time (~27s); what we used to call "stupid time", when it corresponded to the time it took you to switch floppies in a long installation process. 😉 |
17:56:52 | leorize | I never understand how nvim profiles async procs |
17:57:51 | leorize | apparantly if you call a proc 2000+ times it stops making sense in both columns :P |
17:58:37 | disruptek | well, BufferedCallback was called ~57k times, so... |
18:08:18 | * | shashlick quit (Ping timeout: 268 seconds) |
18:22:22 | * | a_b_m joined #nim |
18:25:53 | * | abm quit (Ping timeout: 244 seconds) |
18:26:45 | FromGitter | <zacharycarter> added some splat map texturing to the terrain thing: |
18:26:58 | FromGitter | <zacharycarter> (https://files.gitter.im/nim-lang/Nim/hueH/image.png) |
18:34:29 | FromGitter | <zacharycarter> another pic: |
18:34:37 | FromGitter | <zacharycarter> (https://files.gitter.im/nim-lang/Nim/RzJB/image.png) |
18:37:05 | FromGitter | <awr1> looks very nice :) |
18:37:12 | FromGitter | <awr1> add some shadow mapping! |
18:38:46 | FromGitter | <zacharycarter> yeah, that's next :) |
18:41:43 | FromGitter | <zacharycarter> and thanks! |
18:52:12 | Zevv | sweet! |
18:52:14 | * | absolutejam3 joined #nim |
18:52:38 | * | ng0 quit (Quit: Alexa, when is the end of world?) |
18:55:33 | FromGitter | <zacharycarter> a skybox would look nice too - I guess I have my work cut out for me the rest of this week / weekend |
18:57:01 | * | absolutejam4 joined #nim |
18:58:59 | * | absolutejam3 quit (Ping timeout: 276 seconds) |
19:05:23 | * | alexander92 joined #nim |
19:18:36 | * | adeohluwa joined #nim |
19:25:11 | * | laaron quit (Remote host closed the connection) |
19:27:10 | * | laaron joined #nim |
19:29:52 | * | laaron quit (Remote host closed the connection) |
19:30:27 | * | Ven`` joined #nim |
19:31:37 | * | laaron joined #nim |
19:36:19 | * | EastByte_ quit (Quit: WeeChat 2.4) |
19:45:39 | * | EastByte joined #nim |
19:49:14 | * | narimiran quit (Ping timeout: 240 seconds) |
20:07:13 | * | adeohluwa quit (Remote host closed the connection) |
20:20:13 | * | adeohluwa joined #nim |
20:33:14 | * | adeohluwa quit (Ping timeout: 240 seconds) |
20:42:22 | * | adeohluwa joined #nim |
20:46:47 | * | adeohluwa quit (Remote host closed the connection) |
20:49:39 | * | alexander92 quit (Ping timeout: 240 seconds) |
20:51:18 | FromGitter | <Varriount> @zacharycarter You are amaaaazing! :D |
20:51:42 | * | Vladar quit (Remote host closed the connection) |
20:52:42 | * | nsf quit (Quit: WeeChat 2.5) |
20:58:12 | * | Trustable quit (Remote host closed the connection) |
20:59:39 | * | adeohluwa joined #nim |
21:03:07 | lqdev[m] | shashlick: can you make nimterop support compilers that are not gcc? |
21:03:16 | lqdev[m] | I'm trying to compile to windows using clang. |
21:03:37 | lqdev[m] | because mingw is a buggy mess. |
21:05:04 | * | adeohluwa quit (Ping timeout: 246 seconds) |
21:05:35 | * | ng0 joined #nim |
21:07:04 | * | a_b_m quit (Quit: Leaving) |
21:12:40 | * | gangstacat quit (Quit: Ĝis!) |
21:21:03 | * | adeohluwa joined #nim |
21:26:12 | * | adeohluwa quit (Ping timeout: 244 seconds) |
21:27:06 | FromGitter | <awr1> do you know what specifically is preventing clang from working with nimterop |
21:29:57 | FromGitter | <awr1> i mean you still need to use the mingw toolchain with clang on windows... |
21:31:47 | skrylar[m] | i haven't had many issues with mingw in my days ._. none that weren't just general autoconf pain back in the day |
21:33:54 | FromGitter | <awr1> yeah mingw on windows is fine. the only issues i've had with it that come to mind is that it's somewhat annoying to install plus G++ doesn't allow interfacing with COM objects in quite the same syntax as MSVC (i.e. `->lpVtbl->`) |
21:33:57 | FromGitter | <awr1> oh yeah |
21:34:12 | FromGitter | <awr1> and for some reason i can't get NVAPI to link with mingw |
21:34:28 | FromGitter | <awr1> that was like a year ago though |
21:37:48 | * | solitudesf quit (Ping timeout: 246 seconds) |
22:08:09 | * | Ven`` quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
22:10:13 | * | ng0 quit (Quit: Alexa, when is the end of world?) |
22:11:25 | lqdev[m] | @awr1 it's gcc hardcoded into some commands nimterop executes during compile time |
22:20:09 | * | absolutejam4 quit (Ping timeout: 246 seconds) |
22:27:53 | disruptek | what kinda container does an nnkImportStmt live in? |
22:29:08 | disruptek | to put that another way, how can i macro an import in addition to some other statements? |
22:37:53 | Araq | nnkStmtList |
22:38:06 | disruptek | but doesn't that mean the import isn't at the top level? |
22:39:33 | FromGitter | <mratsim> there is an nnkStmtList at the top level that contains everything else |
22:39:47 | disruptek | i guess it worked; thanks. i coulda sworn i tried it already. |
22:41:00 | * | absolutejam4 joined #nim |
23:00:28 | * | Ven`` joined #nim |
23:00:32 | FromGitter | <Varriount> Agh, there are, like, 100+ assumptions baked into posix naming conventions. |
23:00:56 | FromGitter | <Varriount> For example, there's no way to escape the colon in chown, meaning no usernames with colons |
23:01:45 | disruptek | what a shame. |
23:02:13 | disruptek | would be fun recording those in /etc/passwd. |
23:02:37 | FromGitter | <Varriount> disruptek: I just dislike the arbitrariness of it. |
23:02:56 | disruptek | yeah, it's annoying to have to code around. |
23:03:46 | disruptek | how long did it take them to add the warning to `chmod -x`? almost 20 years. |
23:05:02 | Araq | the unix illusion of perfection breaks down quickly when you improve the software so that's what they never do |
23:05:20 | * | Ven`` quit (Ping timeout: 276 seconds) |
23:05:32 | disruptek | well, i wish they did a better job of leaving it alone. |
23:05:38 | FromGitter | <Varriount> "File paths can be any possible character except null or forward slash" |
23:06:09 | FromGitter | <Varriount> Oh wait, except for colons (used as a separator for various variable lists) |
23:06:54 | FromGitter | <Varriount> newlines (what if we have fragile shell scripts relying on the default IFS variable?) |
23:06:58 | FromGitter | <Varriount> etc |
23:10:51 | * | juturnas joined #nim |
23:12:56 | * | btop quit (Ping timeout: 268 seconds) |
23:16:01 | * | btop joined #nim |
23:23:09 | * | absolutejam4 quit (Ping timeout: 246 seconds) |
23:33:49 | juturnas | Is it possible to prevent the use of default values for an object's fields? In order to e.g. make it an error to instantiate that type without providing a value for the field |
23:34:08 | Araq | .requiresInit |
23:34:24 | juturnas | Thanks |
23:37:50 | * | btop quit (Ping timeout: 276 seconds) |
23:38:28 | juturnas | I have a type `NodeRef = ref object ...` and a type `Node = NodeRef not nil`. I have a function that iterats over a `seq[Node]` and in some cases the iterator is returning a `nil` Node. Am I misunderstanding the guarantees of `not nil`, or is there likely something else at play? |
23:38:29 | * | krux02_ joined #nim |
23:41:28 | * | krux02 quit (Ping timeout: 264 seconds) |
23:50:11 | FromGitter | <awr1> interesting, didn't know about that pragma |
23:55:41 | FromGitter | <mratsim> probably a bug |
23:56:17 | FromGitter | <mratsim> if you can open one on the nim repo with a reproduction example that would be helpful |