00:12:41 | * | yglukhov quit (Remote host closed the connection) |
00:27:18 | * | Jesin quit (Quit: Leaving) |
00:31:02 | * | zachk quit (Quit: night) |
00:50:58 | * | Jesin joined #nim |
01:13:11 | * | yglukhov joined #nim |
01:18:11 | * | yglukhov quit (Ping timeout: 240 seconds) |
01:23:18 | * | vivus joined #nim |
01:32:31 | * | jjido_ joined #nim |
01:36:17 | * | jjido quit (Ping timeout: 246 seconds) |
01:47:26 | * | adeohluwa quit (Quit: Connection closed for inactivity) |
01:50:09 | * | chemist69 quit (Ping timeout: 252 seconds) |
02:03:26 | * | Ven`` joined #nim |
02:04:10 | * | chemist69 joined #nim |
02:15:11 | * | Ven`` quit (Ping timeout: 240 seconds) |
02:16:56 | * | EastByte quit (Ping timeout: 255 seconds) |
02:17:51 | * | EastByte joined #nim |
02:22:03 | * | vivus quit (Quit: Leaving) |
02:39:13 | * | endragor quit (Remote host closed the connection) |
02:40:18 | * | dddddd quit (Remote host closed the connection) |
02:41:05 | * | jjido_ quit (Ping timeout: 248 seconds) |
02:44:15 | * | yglukhov joined #nim |
02:49:00 | * | yglukhov quit (Ping timeout: 252 seconds) |
03:12:43 | * | jackv joined #nim |
03:29:49 | * | Jesin quit (Read error: Connection reset by peer) |
03:50:22 | * | relax joined #nim |
03:51:59 | * | rirc_3083 quit (Ping timeout: 248 seconds) |
03:55:42 | * | dave24 joined #nim |
04:14:45 | * | wishi quit (Ping timeout: 246 seconds) |
04:19:53 | * | wishi joined #nim |
04:32:09 | * | endragor joined #nim |
04:32:53 | * | endragor quit (Remote host closed the connection) |
04:33:21 | * | gmpreussner quit (Ping timeout: 240 seconds) |
04:33:45 | * | endragor joined #nim |
05:02:34 | * | gmpreussner joined #nim |
05:02:41 | * | Snircle quit (Quit: Textual IRC Client: www.textualapp.com) |
05:15:50 | * | jjido joined #nim |
05:44:39 | * | BigEpsilon joined #nim |
05:46:06 | * | kunev joined #nim |
05:52:03 | * | Arrrr joined #nim |
05:52:03 | * | Arrrr quit (Changing host) |
05:52:03 | * | Arrrr joined #nim |
05:59:35 | * | Arrrr quit (Ping timeout: 240 seconds) |
05:59:43 | * | Arrrr joined #nim |
05:59:43 | * | Arrrr quit (Changing host) |
05:59:43 | * | Arrrr joined #nim |
06:01:11 | ftsf | o/ |
06:04:54 | relax | \o |
06:05:45 | FromGitter | <Grabli66> Hi. Will Nim work on ARMv7 processor? |
06:06:36 | ftsf | Grabli66 it can certainly compile for armv7, i haven't tried running the compiler on armv7 yet |
06:09:12 | * | relax quit (Ping timeout: 252 seconds) |
06:10:28 | FromGitter | <Grabli66> Did you use cross-compilation? Nim compiler can do that? |
06:10:33 | ftsf | yep |
06:10:48 | ftsf | remember nim compiles to C (and other things) so it can do whatever your C compiler does |
06:12:09 | FromGitter | <Grabli66> You translated source to C, and then cross-compile with gcc? |
06:13:06 | ftsf | effectively that's what Nim does. |
06:13:47 | * | solitudesf joined #nim |
06:15:57 | * | PMunch joined #nim |
06:16:38 | * | rauss quit (Read error: Connection reset by peer) |
06:18:46 | * | rauss joined #nim |
06:21:42 | * | Vladar joined #nim |
06:21:58 | * | Arrrr quit (Disconnected by services) |
06:21:58 | * | Arrrr1 joined #nim |
06:22:06 | * | Arrrr1 quit (Client Quit) |
06:22:52 | * | kier quit (Ping timeout: 260 seconds) |
06:28:27 | * | nsf joined #nim |
06:28:48 | * | claudiuinberlin joined #nim |
06:44:58 | * | gokr joined #nim |
07:09:37 | FromGitter | <Bennyelg> Hey, ⏎ Im trying to run this command: ⏎ ⏎ ```code paste, see link``` ⏎ ... [https://gitter.im/nim-lang/Nim?at=59cca031b59d55b823484189] |
07:14:03 | FromGitter | <Varriount> @Bennyelg Are you compiling with --threads:on ? |
07:14:07 | FromGitter | <Bennyelg> yes |
07:14:35 | FromGitter | <Bennyelg> `nim c -d:release --threads:on "/Users/benny/Desktop/s.nim" ` |
07:14:49 | FromGitter | <Bennyelg> freaking drive me instance |
07:14:55 | FromGitter | <Bennyelg> insane |
07:38:13 | * | yglukhov joined #nim |
07:39:03 | Araq | bennyelg: do not import channels |
07:39:27 | Araq | https://nim-lang.org/docs/channels.html |
07:39:34 | Araq | Note: This is part of the system module. Do not import it directly. To activate thread support you need to compile with the --threads:on command line switch. |
07:46:20 | * | jjido quit (Ping timeout: 255 seconds) |
07:52:37 | * | kier joined #nim |
07:57:46 | * | dddddd joined #nim |
08:07:14 | * | chemist69 quit (Ping timeout: 246 seconds) |
08:16:50 | FromGitter | <Bennyelg> @Araq Thanks! this confusing :| |
08:18:17 | Araq | true but |
08:18:36 | Araq | nimgrep --recursive --ext:nim Channel tests |
08:18:57 | Araq | lists plenty of examples you can look at to see none imports channels :P |
08:19:15 | FromGitter | <Bennyelg> Thanks! |
08:19:24 | * | endragor quit (Remote host closed the connection) |
08:20:31 | * | endragor joined #nim |
08:20:32 | FromGitter | <Grabli66> How i can use variable, that i declare in template? Sorry, nim playground can't create gist :) ⏎ ⏎ template test(name: string, code: stmt) = ⏎ let some = "some" ⏎ code ... [https://gitter.im/nim-lang/Nim?at=59ccb0d0bac826f0540b4348] |
08:21:14 | * | chemist69 joined #nim |
08:21:17 | * | endragor quit (Remote host closed the connection) |
08:22:33 | * | endragor joined #nim |
08:23:11 | euantor | You need to use the `{.inject.}` pragma. See this thread: https://forum.nim-lang.org/t/3199 |
08:25:56 | FromGitter | <Grabli66> It works. Thanks :) |
08:27:17 | * | endragor quit (Ping timeout: 255 seconds) |
08:30:01 | * | solitudesf quit (Ping timeout: 240 seconds) |
08:31:13 | * | jjido joined #nim |
08:42:03 | * | skrylar joined #nim |
08:42:40 | FromGitter | <mohamedmoussa89> Hey guys. How do i pass a var string to a C function? Compiler is raising an error telling me the string variable needs to be var, even though it is. |
08:44:44 | * | endragor joined #nim |
08:47:55 | FromGitter | <mohamedmoussa89> Using dynlib pragma to import from DLL |
08:48:21 | Araq | what's the signature? |
08:50:03 | FromGitter | <mohamedmoussa89> Not on hand atm but basically proc func(s: var cstring): int |
08:51:35 | * | taaperotassu quit (Ping timeout: 240 seconds) |
08:55:58 | Araq | that means you need to do: var x: cstring; f(x); $x |
08:56:15 | Araq | it wants to give you cstring back, can't do that with Nim's string |
08:56:59 | FromGitter | <mohamedmoussa89> Yep ok. I need to allocate the cstring first though. I couldnt figure out how to do that. |
08:58:19 | euantor | `var x = cstring("")` should do it |
09:01:10 | * | thomasross quit (Remote host closed the connection) |
09:01:36 | * | thomasross joined #nim |
09:02:46 | Araq | euantor: no. |
09:03:09 | * | plexigras joined #nim |
09:03:19 | euantor | SHould it be `newStringOfCap` then or something? |
09:03:20 | Araq | if you need to allocate, why does it take a pointer to a pointer then? makes little sense |
09:03:53 | Araq | euantor: yes but don't convert to cstring immediately, save the owner properly |
09:04:06 | euantor | ok, makes sense |
09:04:50 | * | taaperotassu joined #nim |
09:06:37 | FromGitter | <mohamedmoussa89> To be clear the signature could be wrong. So var cstring is actually char**? If i want char* i should simply use cstring? |
09:06:50 | FromGitter | <mohamedmoussa89> Char** |
09:07:27 | FromGitter | <mohamedmoussa89> Sorry, messing up the formatting it seems. Hope my message made sense. |
09:07:31 | Araq | yes |
09:07:40 | Araq | var cstring is char** |
09:07:47 | FromGitter | <mohamedmoussa89> Alrighty, cheers. That makes sense. |
09:07:56 | Araq | could have asked c2nim ;-) |
09:08:31 | FromGitter | <mohamedmoussa89> Well actually im working off a Delphi header |
09:09:15 | chemist69 | Disclaimer: I am completely inexperienced with Nim macros. |
09:09:22 | chemist69 | Has there been a recent change that NimNode.name does not contain the asterisk export marker anymore? |
09:09:30 | chemist69 | Because nim-pymod is now always complaining "can't exportpy proc `nim_ext` because it isn't marked for export from the module", when the marker clearly is present in my code. |
09:09:40 | chemist69 | I could narrow the error down to these two lines in the nim-pymod source: 1. let proc_name_node = proc_def_node.name; 2. if not proc_name.endsWith("*"):...; |
09:09:46 | FromGitter | <mohamedmoussa89> On delphi its var CharString where CharString is a type alias of a char array |
09:10:06 | FromGitter | <mohamedmoussa89> Anyway ill give it a go when i head back to the office tomorrow |
09:13:01 | Araq | chemist69: yes :D |
09:13:30 | Araq | I thought that always was the intention of 'name', to return the name |
09:13:38 | Araq | without any markers |
09:15:32 | * | jjido quit (Ping timeout: 260 seconds) |
09:16:11 | * | jjido joined #nim |
09:16:11 | chemist69 | Can I find out in a different way, if a proc is marked for export? |
09:16:44 | chemist69 | I would then patch nim-pymod accordingly (have already forked it, as it seems dead). |
09:19:56 | Araq | chemist69: replace 'name(x)' by 'x[0]' and that's it |
09:21:42 | * | skrylar quit (Quit: Leaving) |
09:23:50 | * | chemist69 is trying that... |
09:26:24 | chemist69 | That works. Thanks a lot, Araq. Nim-Pymod is fixed in my fork, will pubish now. |
09:27:46 | FromGitter | <Yardanico> @Grabli66 sorry, but also a few things: ⏎ Nim to C is not translation, it's a compilation :) ⏎ And don't use "stmt", it's deprecated |
09:28:56 | FromGitter | <andreaferretti> @chemist69 it is just this fix or are you evolving NimPymod? |
09:30:39 | chemist69 | andreaferretti: I would love to, but my Nim skills are probably no sufficient for this. Just fixes atm. |
09:31:39 | Araq | chemist69: that's also backwards compatible with older Nims |
09:32:19 | chemist69 | Ok, thanks Araq. I love sustainable solutions... ;) |
09:32:37 | Araq | yardanico: "translation" is fine -- I only hate "transpilation" :P |
09:33:12 | chemist69 | that always sounds like "transpiration" to me. |
09:33:35 | Araq | cause it's like "ok, I dunno what translation or compilation means so I'm merging these terms" |
09:34:48 | Araq | transintercompilation |
09:39:58 | * | gokr quit (Ping timeout: 264 seconds) |
09:45:53 | * | Arrrr joined #nim |
09:45:53 | * | Arrrr quit (Changing host) |
09:45:53 | * | Arrrr joined #nim |
09:47:13 | Arrrr | Hello. How can i make sure a proc is not a closure? nosideeffect si too restrictive. |
09:48:57 | Arrrr | My usecase is to avoid nested procs to produce closures |
09:58:21 | FromGitter | <Grabli66> @Yardanico, i dont agree with you. Nim translates code to C. And then nim call a real compilator, like vcc, gcc, clang. |
09:58:42 | FromGitter | <Yardanico> nim is a compiler itself btw |
09:59:17 | FromGitter | <Yardanico> maybe gcc is a translator too? it translates C to machine code |
09:59:28 | FromGitter | <yglukhov> @Grabli66, then vcc translates c to asm? |
09:59:38 | FromGitter | <yglukhov> @Yardanico )) |
10:00:13 | FromGitter | <Grabli66> vcc translates to asm? Why? |
10:00:56 | FromGitter | <Yardanico> Do you know what "compiler" is ? :) |
10:00:57 | FromGitter | <Grabli66> Machine code is not a language. |
10:00:58 | FromGitter | <Yardanico> "A compiler is computer software that transforms computer code written in one programming language (the source language) into another computer language (the target language). " |
10:01:13 | FromGitter | <Yardanico> source: nim, target: C |
10:01:57 | FromGitter | <Grabli66> You are wrong :) |
10:03:17 | FromGitter | <yglukhov> @Grabli66: given that machine code has one-to-one correspondence with asm, and asm is considered to be a language.... well... you get the point. |
10:03:19 | FromGitter | <Grabli66> Compiler is translator to code near or machine code. |
10:03:35 | FromGitter | <Grabli66> Not to another language. |
10:06:23 | FromGitter | <yglukhov> another theory. nim produces the binaries in machine code. you don't need to know that it uses gcc under the hood. so why nim is not a compiler if it provides compiler functionality from user perspective? =) |
10:06:55 | * | PMunch quit (Ping timeout: 248 seconds) |
10:08:29 | FromGitter | <yglukhov> another theory. translation sounds more like one-to-one. e.g. coffescript translates to js and provides little to no additional semantics. nim on the other hand provides a very sophisticated semantics that is not trivial to hand-code in C. |
10:08:54 | FromGitter | <yglukhov> actually, impossible =) |
10:09:09 | * | PMunch joined #nim |
10:09:53 | FromGitter | <Yardanico> @Grabli66 you don't know how many times users said that nim is a transpiler |
10:10:02 | FromGitter | <Yardanico> I mean newbies mostly :) |
10:10:15 | FromGitter | <Yardanico> back in the day C++ was compiled to VC |
10:10:17 | FromGitter | <Yardanico> *C |
10:10:19 | FromGitter | <Grabli66> Ok. It doesn't matter. Relax. Nim is awesome :) |
10:10:36 | FromGitter | <Grabli66> And nim is transpiler/translator :) |
10:11:13 | * | Arrrr quit (Ping timeout: 248 seconds) |
10:11:15 | FromGitter | <Yardanico> @Grabli66 check this then - https://news.ycombinator.com/item?id=15160347 |
10:11:21 | FromGitter | <Yardanico> Back in the mid-80s, I frequented BIX (the BYTE Information eXchange). There was a discussion group for the C programming language, and someone mentioned this new C++ language. I naively asked, "C++? That's a preprocessor, isn't it?" I was thinking of the original Cfront, of course, which translated C++ to C. ⏎ Bjarne Stroustrup jumped in and gently chewed me out: "The Cfront compiler is not a preprocessor! It is a |
10:11:21 | FromGitter | ... full-fledged compiler just like any other. Sure, it uses C as the compilation target right now, but it won't always be that way. It could generate native code, but compiling to C let us get up and running more quickly and on more hardware architectures than we could if we targeted machine code right away." |
10:12:22 | FromGitter | <yglukhov> And if you trust wikipedia - https://en.wikipedia.org/wiki/Compiler |
10:12:33 | FromGitter | <Grabli66> I will never agree, cause i dont want agree. |
10:12:53 | FromGitter | <Yardanico> ok then |
10:13:59 | FromGitter | <yglukhov> now thats a nice position. true programmer detected. =) |
10:14:06 | FromGitter | <zacharycarter> lol |
10:14:18 | FromGitter | <Yardanico> It's like flat eathers |
10:14:25 | FromGitter | <zacharycarter> a program that converts instructions into a machine-code or lower-level form so that they can be read and executed by a computer. |
10:14:36 | FromGitter | <zacharycarter> sounds like nim is a compiler to me |
10:15:08 | FromGitter | <yglukhov> as well as coffescript, looks like =) |
10:15:29 | FromGitter | <zacharycarter> nah coffeescript is interpreted isn't it? |
10:15:43 | FromGitter | <zacharycarter> oh it is compiled |
10:15:44 | FromGitter | <zacharycarter> my bad |
10:16:04 | FromGitter | <yglukhov> coffescript translates (compiles? =)) to js |
10:16:17 | FromGitter | <zacharycarter> does anyone even use coffeescript anymore? |
10:16:23 | FromGitter | <zacharycarter> apple should just give it up |
10:16:24 | FromGitter | <yglukhov> atom |
10:16:29 | FromGitter | <yglukhov> thats not apple |
10:16:36 | FromGitter | <alehander42> coffeescript is not apple's :D |
10:16:49 | FromGitter | <zacharycarter> I thought it was |
10:17:06 | FromGitter | <yglukhov> nope, never was |
10:17:12 | * | FromGitter * zacharycarter shrugs |
10:17:14 | FromGitter | <yglukhov> applescript was |
10:17:15 | FromGitter | <yglukhov> =) |
10:20:20 | * | PMunch_ joined #nim |
10:22:01 | FromGitter | <Yardanico> also, @Grabli66 , assembly is a symbolic representation of machine code. |
10:22:37 | FromGitter | <Yardanico> well sometimes it can have some additional features |
10:23:07 | FromGitter | <zacharycarter> my pops codes in assembly |
10:23:10 | FromGitter | <zacharycarter> for work still somehow |
10:23:12 | * | PMunch quit (Ping timeout: 260 seconds) |
10:23:18 | * | Arrrr joined #nim |
10:23:18 | * | Arrrr quit (Changing host) |
10:23:18 | * | Arrrr joined #nim |
10:23:38 | FromGitter | <Yardanico> well it *may* be neccesary sometimes |
10:24:00 | FromGitter | <zacharycarter> it's necessary for him 100% of the time |
10:24:00 | FromGitter | <Yardanico> but not very often |
10:24:03 | FromGitter | <zacharycarter> he still works on mainframes |
10:24:13 | FromGitter | <Yardanico> also |
10:25:19 | FromGitter | <Yardanico> https://board.asm32.info/ is a forum written in fasm :P |
10:25:35 | FromGitter | <Yardanico> if you speak russian, there is an article about that forum: https://habrahabr.ru/post/318916/ |
10:25:35 | FromGitter | <zacharycarter> heh |
10:25:39 | FromGitter | <zacharycarter> I should learn some assembly lang |
10:25:47 | FromGitter | <zacharycarter> anyone have any recommendations for getting started / tutorials? |
10:37:38 | FromGitter | <alehander42> I started with assembly a month ago, does anybody has pref about at&t vs intel syntax ? I use at&t as it seems more linux-conventional and I dislike the intel type markers , very verbose |
10:42:21 | Araq | alehander42: really? IMO at&t is unusable |
10:42:37 | * | libman quit (Quit: Connection closed for inactivity) |
10:42:59 | Araq | full of weird stuff and the order in 'mov' is reversed, that drives me crazy |
10:55:28 | * | jjido_ joined #nim |
10:55:46 | FromGitter | <alehander42> why? source, dest just seems more natural to me |
10:57:15 | FromGitter | <alehander42> the action "moves" from left to right, it makes more sense to me(but it differs from <left> = <right> indeed) |
10:58:21 | * | jjido quit (Ping timeout: 240 seconds) |
11:01:24 | * | BitPuffin|osx joined #nim |
11:09:09 | Araq | alehander42: I read 'mov' as 'assignment' |
11:09:24 | Araq | it doesn't move anything anyway, the source is left untouched |
11:09:56 | Araq | stupid misnomer but at&t didn't fix it either |
11:12:37 | FromGitter | <alehander42> well it's easy to map "mov" to "copyTo" mentally , so I am already used to it (but yeah, it should be at least called differently ) |
11:12:51 | * | fredrik92 joined #nim |
11:15:06 | FromGitter | <alehander42> I think that [base+index*scale+disp] vs the at&t equivalent is a bigger plus for intel |
11:18:49 | * | dddddd quit (Remote host closed the connection) |
11:19:48 | FromGitter | <ephja> I'm also more used to source parameter appearing first, but the order for Nim procs is often reversed |
11:20:02 | FromGitter | <ephja> named parameters to the rescue |
11:25:58 | * | PMunch joined #nim |
11:27:57 | * | PMunch_ quit (Ping timeout: 260 seconds) |
11:39:10 | * | Elronnd quit (Ping timeout: 276 seconds) |
11:58:21 | * | couven92 quit (Disconnected by services) |
11:58:25 | * | fredrik92 is now known as couven92 |
11:58:49 | * | fredrik92 joined #nim |
12:08:07 | couven92 | Araq, BTW I agree: AT&T is unusable... I still shiver from the year in CPU architecture where we had to write in Assembly, and had to use AT&T syntax... |
12:08:38 | couven92 | I went so far, that I even found myself a tool, that converted Intel to AT&T because I got so fed up about it :P |
12:13:53 | * | Arrrr quit (Ping timeout: 248 seconds) |
12:15:28 | * | Arrrr joined #nim |
12:15:29 | * | Arrrr quit (Changing host) |
12:15:29 | * | Arrrr joined #nim |
12:16:17 | couven92 | `koch distrohelper` is the one that creates the Linux install commands, right? |
12:25:56 | Araq | couven92: probably yes |
12:27:43 | couven92 | I don't know linux! I find it REALLY hard to deal with install.sh asking me where to install... why should I choose `/usr/bin` over `/usr/local/bin` WTF is `/opt` and which one should I choose? |
12:27:55 | FromGitter | <Yardanico> btw, I found that there's IdentStartChars and IdentChars in strutils :) |
12:28:17 | FromGitter | <Yardanico> and they're actually useful for me |
12:29:46 | Araq | couven92: don't install Nim, edit your ~/.bashrc |
12:30:07 | Araq | export PATH=/home/me/nim/bin:$PATH |
12:30:31 | couven92 | Araq, gladly, but could you elaborate why? |
12:32:21 | Araq | because otherwise it's like octopus sex, different parts spread over other parts and it's hard to untangle the mess later |
12:32:44 | couven92 | ah, nice metaphor! :) |
12:33:18 | FromGitter | <Yardanico> or, as @dom96 would say: "use choosenim" :) |
12:34:25 | FromGitter | <Yardanico> but not always |
12:34:36 | FromGitter | <Yardanico> e.g. if you use devel almost always, it's better to have raw nim repo |
12:34:49 | dom96 | yep |
12:35:11 | Araq | does choosenim set the PATH? |
12:35:21 | FromGitter | <Yardanico> welp, no :P |
12:35:32 | FromGitter | <zetashift> On windows it doesn't |
12:35:44 | couven92 | shouldn't it? |
12:35:51 | FromGitter | <Yardanico> AFAIK it doesn't do it on linux, but I think it can be implemented for windows |
12:35:58 | FromGitter | <Yardanico> for linux it's the mess, so many shells |
12:36:09 | FromGitter | <zetashift> I don't know it's really easy to do it manually so I didn't give it second thoughts |
12:36:35 | Araq | many users stumble over this. |
12:36:38 | dom96 | Indeed, it's so easy you don't even give it a second thought ;) |
12:36:43 | dom96 | hear that Araq? |
12:37:06 | couven92 | BTW, if I put the repo in /opt/nim, I have to do everything in sudo... But when I do stuff in sudo, the final binaries are not set executable for all users, meaning I afterwards after to run `chmod a+x bin/*` to use Nim normally |
12:37:46 | FromGitter | <Yardanico> well you wouldn't do it manually |
12:37:56 | FromGitter | <Yardanico> most of the time scripts install programs into /opt and do the same thing |
12:39:12 | FromGitter | <zetashift> yeah fair enough ahah, but I guess other users/OSs could have trouble with it. |
12:39:47 | FromGitter | <zetashift> I remember rustup(rust's install tool) being able to add the dir to Path on windows |
12:39:51 | * | rokups joined #nim |
12:40:42 | Araq | zetashift: run finish.exe on Windows |
12:40:48 | Araq | it can set the PATH for you |
12:41:02 | FromGitter | <Yardanico> hmm, maybe port it to choosenim? |
12:41:31 | couven92 | Araq, does it detect if Nim already is in the PATH? There is a hard-limit on the length of PATH you know... |
12:41:40 | FromGitter | <zetashift> Ah yea I used choosenim and choosenim says add it to the path, which worked. |
12:41:46 | Araq | couven92: it does everythin. |
12:41:51 | couven92 | :D |
12:42:08 | FromGitter | <Yardanico> lol, I found this |
12:42:09 | FromGitter | <Yardanico> https://software.intel.com/en-us/articles/limitation-to-the-length-of-the-system-path-variable |
12:42:52 | FromGitter | <Yardanico> on intel website :P |
12:43:40 | FromGitter | <Yardanico> hmm |
12:43:41 | FromGitter | <Yardanico> The maximum size of a user-defined environment variable is 32,767 characters. |
12:43:51 | FromGitter | <Yardanico> There is no technical limitation on the size of the environment block. However, there are practical limits depending on the mechanism used to access the block. For example, a batch file cannot set a variable that is longer than the maximum command line length. |
12:43:54 | Araq | Nim's installer still works much better than choosenim ;-) |
12:44:45 | dom96 | By what metric? |
12:45:00 | FromGitter | <zetashift> I like the ease of handling multiple versions of choosenim |
12:45:34 | Araq | dom96: by the "it's not broken" metric. |
12:46:03 | dom96 | choosenim isn't broken |
12:47:12 | yglukhov | regarding the "broken"... can we do anything about nimble? =) |
12:47:59 | FromGitter | <Bennyelg> ```code paste, see link``` ⏎ ⏎ Why not work:( [https://gitter.im/nim-lang/Nim?at=59ccef7f614889d4754d118b] |
12:48:25 | dom96 | yglukhov: what's wrong with Nimble? |
12:48:43 | yglukhov | my prs not merged? =) |
12:50:21 | dom96 | Right. |
12:50:50 | Araq | dom96: as long as an issue marked with the euphemism "Araq's wishlist" is open, it's broken |
12:51:24 | dom96 | That's not a fair way to label it. |
12:53:04 | yglukhov | Bennyelg: your for loop on `peek` doesnt make sense |
12:53:19 | FromGitter | <Bennyelg> why? |
12:55:32 | * | sz0 joined #nim |
12:56:31 | yglukhov | Bennyelg: ok, it kinda does, but youre doing inclusive range |
12:56:41 | yglukhov | so your for body is executed 3 times in total |
12:56:49 | yglukhov | and the channel has only 2 messages |
12:56:51 | FromGitter | <Yardanico> wait, I can't create different object variants based on runtime kind? |
12:56:56 | FromGitter | <Yardanico> ah, nvm |
12:57:38 | yglukhov | Bennyelg: so third time you'll just hang in recv forever |
12:57:51 | * | BitPuffin|osx quit (Remote host closed the connection) |
12:58:12 | yglukhov | but anyway, `peek` usage is discouraged |
12:58:19 | couven92 | what's the difference between `nim doc` and `nim doc2`? |
12:58:22 | yglukhov | not to mention other races in your code =) |
12:59:52 | Araq | couven92: 'nim doc2' is what should be used |
13:00:02 | couven92 | ok |
13:00:54 | FromGitter | <Bennyelg> @yglukhov thanks |
13:08:07 | subsetpark | Araq are there any plans to migrate `doc` to `doc2`? |
13:08:43 | Araq | subsetpark: I can name 'doc2' to 'doc' and 'doc' to 'doc0' if you want to. |
13:08:52 | dom96 | is static[T] stable enough to be used for a Matrix implementation? |
13:09:03 | subsetpark | ha, that's a start, but i was referring to removing to `doc` altogether... |
13:09:13 | dom96 | there are cases where 'doc2' doesn't work IIRC |
13:09:31 | yglukhov | dom96: using it, and relying on it. seems to work. |
13:09:37 | subsetpark | so maybe `doc2` -> `doc` and `doc` -> `doc-safe`, something like that |
13:09:53 | Araq | it's not 'doc-safe', it's more like 'doc-barbaric' |
13:09:59 | subsetpark | or even `doc --safe` |
13:10:01 | subsetpark | (or whatever) |
13:10:24 | yglukhov | dom96: https://github.com/yglukhov/nimx/blob/master/nimx/matrixes.nim |
13:11:41 | dom96 | awesome. There is a basic3d module in the stdlib and it badly needs cleaning up |
13:11:46 | dom96 | (and basic2d) |
13:12:33 | dom96 | I was thinking about adding support for matrices of any dimensions. |
13:12:49 | * | gokr joined #nim |
13:14:55 | dom96 | bbl |
13:16:32 | * | Arrrr1 joined #nim |
13:16:32 | * | Arrrr quit (Disconnected by services) |
13:16:37 | * | Arrrr1 quit (Client Quit) |
13:23:17 | Araq | dom96: I've gone through the docgen bugs and doc2 is as stable as doc afaict |
13:25:27 | * | dddddd joined #nim |
13:26:18 | * | miran joined #nim |
13:26:45 | euantor | I've had some issues with `doc2` in the past, but haven't tried it since 0.17.2 |
13:35:43 | * | BitPuffin|osx joined #nim |
13:43:29 | * | BigEpsilon quit (Quit: Leaving) |
13:43:37 | PMunch | Just generated a doc with doc2 and I noticed that the source and edit links just points to something which seems to be relative paths on GitHub. Maybe a sprinkle of JavaScript to check if the site is actually GitHub before showing those would be nice? |
13:45:41 | * | miran quit (Ping timeout: 246 seconds) |
13:48:26 | FromGitter | <andreaferretti> @dom96 linalg had matrices of static dimension https://github.com/unicredit/linear-algebra/blob/master/linalg/private/types.nim#L18-L23 |
13:48:47 | FromGitter | <andreaferretti> although nowadays I have deprecated it in favour of Neo, which tracks dimensions at runtime |
13:49:27 | * | solitudesf joined #nim |
13:55:54 | * | relax joined #nim |
14:01:28 | * | jsgrant quit (Quit: jsgrant) |
14:01:54 | * | PMunch quit (Quit: Leaving) |
14:01:55 | * | jsgrant joined #nim |
14:03:24 | FromGitter | <mratsim> Static dimensions in matrices is not really useful imho. Maybe for 2d, 3d, 4d but I think in OpenGL math and stuff people use Array of struct or struct of array or something right? |
14:04:10 | FromGitter | <mratsim> And for scientific computing the static dimension is quite restrictive be cause you can't do a collection of matrices then |
14:06:24 | * | jsgrant quit (Client Quit) |
14:06:45 | * | jsgrant joined #nim |
14:07:55 | * | Jesin joined #nim |
14:29:51 | FromGitter | <Dave31> Hi all - recently found Nim and am trying to learn about it. ⏎ I have a problem passing a procedure with default arguments to a template. ⏎ Procedure... proc getlabel(stream=stdin, terminator="&"): seq[string] = ⏎ Template.... proc groupT (fn: proc: T, groupsize: int): seq[T] = ⏎ Compile error: var x = groupseq[string (getx, 2) ... [https://gitter.im/nim-lang/Nim?at=59cd075fbac826f0540d26e0] |
14:31:07 | FromGitter | <Yardanico> @Dave31 can you past your message on gist or pastebin? gitter treats some chars as markdown |
14:31:15 | FromGitter | <Dave31> umm, some of the square brackets around T don't appear in that |
14:31:37 | FromGitter | <Dave31> I'll look - not used either of those before |
14:33:28 | * | gokr quit (Read error: Connection reset by peer) |
14:33:57 | * | jjido_ quit (Ping timeout: 258 seconds) |
14:34:04 | FromGitter | <Dave31> does this look ok? https://pastebin.com/7pN7jxBn |
14:35:37 | couven92 | yaih, I now got nim running on my raspberry Pi! :) |
14:35:44 | couven92 | Live's good! :D |
14:35:58 | couven92 | s/Live/life/^ |
14:36:07 | * | jjido joined #nim |
14:48:07 | couven92 | BTW, Araq, I am thinking about setting about some buildchains for Nim on my TFS Server (once I get that up and running again)... Since the GitHub CI already does Windows x64 and Linux GCC, I was thinking of setting up regular builds using VCC on Windows |
14:48:35 | couven92 | Now that my Pi is up and running, I might even schedule ARM builds on my Pi just for fun :) |
14:49:12 | FromGitter | <Varriount> @dom96 Ugh, it's so annoying when people delete their repositories. |
14:49:17 | couven92 | And I guess you probably still want regular builds on Windows XP, right? |
14:50:04 | FromGitter | <Varriount> @couven92 Don't forget Windows 3.1 |
14:50:45 | couven92 | @Varriount, nah... I don't want to do that... But if you want to, go ahead! :D |
14:51:24 | couven92 | Once I have repaired my phone, I can go back to using my old HTC DHD to build nim on Android! :D |
14:52:15 | couven92 | Probably will take ages on the DHD, but hey... it's not like I need for anything elese :P |
14:52:29 | * | chemist69 quit (Ping timeout: 255 seconds) |
14:52:54 | * | chemist69 joined #nim |
14:53:43 | FromGitter | <genotrance> @Dave31: where is getx declared? |
14:56:45 | FromGitter | <Dave31> oops - sorry, getx is getlabel. I was editing stuff. |
14:58:32 | FromGitter | <Dave31> Full unedited text is https://pastebin.com/4D1xFtVG |
15:00:11 | FromGitter | <Yardanico> is there a way to automatically ident expression with parentheses (example - AST representation) ? ⏎ I have tkPlus(tkMinus(tkNum(12.0), tkVar(`someVar`)), tkFunc(`someFunc`, (tkNum(1.0), tkNum(6.0)))) , and I want to have new nodes on new lines |
15:00:28 | FromGitter | <Yardanico> AST is like this: ⏎ ⏎ ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=59cd0e8c210ac2692081faa0] |
15:01:23 | FromGitter | <Yardanico> it's not specific to nim though |
15:01:31 | FromGitter | <Yardanico> just wanted to ask is someone knows the best way :P |
15:07:50 | * | nsf quit (Quit: WeeChat 1.9) |
15:15:17 | FromGitter | <Yardanico> I'm just adding parsing to AST to my math evaluator, but it's not "correct" in terms of separating things, e.g. my parser also computes some constant expressions (like "1 + 2 - 3" would be precomputed to 0 before evaluation) |
15:15:44 | FromGitter | <Yardanico> because why not ? :P |
15:17:02 | FromGitter | <Yardanico> also I had to disable feature allowed to call functions like "sqrt 100", because it would be not easy to detect if it's a func or variable at the parsing time |
15:26:37 | * | endragor quit (Remote host closed the connection) |
15:27:23 | * | yglukhov quit (Remote host closed the connection) |
15:31:44 | * | yglukhov joined #nim |
15:36:01 | * | yglukhov quit (Ping timeout: 248 seconds) |
15:44:39 | * | endragor joined #nim |
15:44:49 | * | endragor quit (Remote host closed the connection) |
15:45:45 | * | endragor joined #nim |
16:06:18 | * | PMunch joined #nim |
16:15:46 | * | endragor quit (Remote host closed the connection) |
16:16:13 | * | jsgrant quit (Read error: Connection reset by peer) |
16:16:18 | * | endragor joined #nim |
16:19:00 | * | Trustable joined #nim |
16:20:49 | * | endragor quit (Ping timeout: 248 seconds) |
16:22:51 | * | solitudesf quit (Quit: Leaving) |
16:25:54 | FromGitter | <mratsim> I am completely lost in methods with generics. Am I doing something wrong here: ⏎ ⏎ ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=59cd2292b20c6424299a9b21] |
16:26:48 | FromGitter | <mratsim> ah no silly me |
16:27:02 | FromGitter | <mratsim> forgot the input param for newLinearLayer |
16:34:26 | * | libman joined #nim |
16:39:46 | * | elronnd joined #nim |
16:40:34 | * | solitudesf joined #nim |
16:41:05 | * | elronnd is now known as Elronnd |
16:43:39 | * | vivus joined #nim |
16:44:12 | * | yglukhov joined #nim |
16:45:11 | * | sz0 quit (Quit: Connection closed for inactivity) |
16:48:40 | * | yglukhov quit (Ping timeout: 240 seconds) |
17:13:07 | * | solitudesf quit (Remote host closed the connection) |
17:13:41 | * | couven92 quit (Quit: Client disconnecting) |
17:18:36 | * | zachk joined #nim |
17:22:39 | * | yglukhov joined #nim |
17:31:30 | * | Ven`` joined #nim |
17:39:28 | * | endragor joined #nim |
17:40:47 | * | gmpreussner quit (Ping timeout: 255 seconds) |
17:44:05 | * | endragor quit (Ping timeout: 258 seconds) |
17:44:41 | * | jsgrant joined #nim |
17:51:36 | FromGitter | <Varriount> @mratsim You must be really stressing the compiler's generic-handling code. |
17:52:08 | FromGitter | <mratsim> you bet |
17:52:20 | FromGitter | <mratsim> (https://files.gitter.im/nim-lang/Nim/lqlm/2017-09-28_18-05-57.png) |
17:52:22 | FromGitter | <mratsim> (https://files.gitter.im/nim-lang/Nim/dsQN/2017-09-28_18-15-35.png) |
17:53:16 | * | fredrik92 is now known as couven92 |
18:02:29 | * | Arrrr joined #nim |
18:17:47 | * | gokr joined #nim |
18:18:43 | * | miran joined #nim |
18:19:27 | * | rokups quit (Quit: Connection closed for inactivity) |
18:20:04 | * | arnetheduck_ quit (Remote host closed the connection) |
18:21:38 | PMunch | Hmm, is there anything like sscanf in Nim? |
18:21:41 | * | gokr quit (Read error: Connection reset by peer) |
18:21:47 | PMunch | I want to parse an IP |
18:22:05 | yglukhov | PMunch: pegs? |
18:22:54 | PMunch | Hmm, I guess pegs would work |
18:23:53 | PMunch | https://nim-lang.org/docs/strscans.html |
18:24:00 | PMunch | That seems like what I need :) |
18:24:48 | yglukhov | cool, i was not even aware of it |
18:25:49 | FromGitter | <zacharycarter> strscans |
18:25:50 | FromGitter | <zacharycarter> I think |
18:25:58 | FromGitter | <zacharycarter> https://nim-lang.org/docs/strscans.html |
18:26:04 | FromGitter | <zacharycarter> doh |
18:26:12 | FromGitter | <zacharycarter> sorry didn't realize PMunch linked it already |
18:26:16 | PMunch | Thanks zacharycarter, but a bit late :P |
18:26:25 | FromGitter | <zacharycarter> lol yeah apparently I can't read |
18:35:36 | FromGitter | <genotrance> @pmunch, @zacharycarter: thanks for sharing strscans, will prove useful |
18:39:54 | * | endragor joined #nim |
18:39:58 | FromGitter | <Yardanico> https://nim-lang.org/docs/lib.html :P |
18:41:28 | * | gokr joined #nim |
18:43:01 | PMunch | Hmm, too bad we're not able to do "$i", uint8 for example with it |
18:44:10 | * | libman quit (Quit: Connection closed for inactivity) |
18:44:16 | * | endragor quit (Ping timeout: 258 seconds) |
18:44:18 | FromGitter | <Yardanico> add it :P |
18:44:39 | FromGitter | <Yardanico> $uint8 :D |
18:47:20 | * | gokr quit (Ping timeout: 258 seconds) |
18:47:31 | PMunch | Or just u8 |
18:47:38 | PMunch | To match the style of 'u8 |
18:53:41 | FromGitter | <Grabli66> How i can set additional src path in nimble file? There are shared modules. And i dont want write import ../../shared/mystream, but import mystream |
18:53:42 | PMunch | I just discovered Ctrl+Z today by accident while playing NetHack. It's really a game changer for my workflow |
18:55:13 | dom96 | You get paid to play NetHack? :) |
18:55:28 | PMunch | Haha, I guess I technically do :P |
18:56:12 | PMunch | I'm new at my workplace and they are just starting up a new project. So there isn't a whole lot for me to do.. Which ends up with me sitting around playing NetHack for most of the day |
18:57:09 | Arrrr | lol |
18:57:28 | Arrrr | what does control+z do? |
18:57:48 | PMunch | Suspends the currently running terminal program |
18:58:04 | PMunch | So if you're running vim you can hit Ctrl+Z and it drops you back in the terminal |
18:58:14 | PMunch | fg will bring the process back |
18:58:20 | Arrrr | Ah, i thought it was something specific to nethack |
18:59:03 | PMunch | Oh no, I just hit Ctrl+Z while I meant to do Shift+Z. Nearly had a heart attack trying to figure out what happened. Thought I had just forced closed the game in the middle of a fight.. |
18:59:26 | Arrrr | What is the coolest thing you have found while playing? |
18:59:27 | PMunch | Shift+Z to cast one of your known spells |
18:59:44 | PMunch | Well, today I got to the Sokkoban level for the first time |
19:00:01 | PMunch | So that's pretty cool |
19:00:07 | PMunch | And I met my first unicorn :) |
19:00:26 | PMunch | Well, "met" killed him while he was stuck in a bear-trap.. |
19:01:34 | Arrrr | I don't want to met you |
19:01:52 | PMunch | ? |
19:01:57 | PMunch | Oh :P |
19:02:24 | PMunch | Just make sure you're marked as "Human (peaceful)" and you should be fine :P |
19:07:32 | Elronnd | PMunch: you're playing nethack? |
19:07:33 | Elronnd | :3 |
19:07:56 | PMunch | Yup |
19:08:04 | PMunch | Been playing it on and off for years |
19:08:26 | PMunch | (Mostly off) |
19:08:36 | Elronnd | :P same |
19:08:38 | Elronnd | try slex |
19:08:45 | * | Arrrr quit (Quit: Leaving.) |
19:09:13 | PMunch | SLashEm eX? |
19:09:27 | Elronnd | slashem extended |
19:09:27 | PMunch | Ah Extended |
19:09:46 | PMunch | Yeah I've seen many entries in the Wiki having a "In SLASHEM ..." |
19:09:46 | Elronnd | it's crazy |
19:09:57 | PMunch | What're the main differences? |
19:10:05 | Elronnd | ....everything? |
19:10:10 | PMunch | Haha |
19:10:19 | Elronnd | just start playing it |
19:10:20 | Elronnd | it's crazy |
19:10:22 | Elronnd | it's a wild ride |
19:10:32 | Elronnd | you can play at em.slashem.me |
19:10:45 | PMunch | Oh wait: "This variant is actively being developed by the one-woman dev team of User:Bluescreenofdeath (a.k.a. Amy). (and more recently User:Elronnd, so a 2 person dev-team now)" |
19:10:51 | PMunch | You're one of the devs? |
19:11:02 | Elronnd | eh, kind of |
19:11:04 | Elronnd | I don't do that much |
19:11:10 | Elronnd | amy's the main dev |
19:11:20 | PMunch | Uhm, with the link you gave me I just got the nginx default site.. |
19:11:29 | Elronnd | ssh [email protected] |
19:11:34 | Elronnd | I'll fix it when I get a chance |
19:12:20 | PMunch | Haha, that's cool, never thought about running NetHack over ssh :P |
19:12:41 | Elronnd | there are quite a few public servers for nethack |
19:12:47 | Elronnd | the biggest and most popular is nethack.org |
19:12:52 | PMunch | Too bad this keyboard doesn't have a NumPad and is running Dvorak so the keybindings are all kinds of fucked up.. |
19:13:26 | Elronnd | you can remap most keys in slex |
19:13:32 | Elronnd | all keys but the movement keys, that is :P |
19:14:12 | PMunch | Yeah, those are the most important for me to remap :P |
19:14:34 | dom96 | oh cool! I should give it a try, only ever played NetHack |
19:14:35 | PMunch | hjkl is scattered all around the board on Dvorak |
19:14:47 | Elronnd | I looked into making those remappable, but the way you move is, for no good reason, completely different from the way you do other commands |
19:15:13 | PMunch | Haha, I guess NetHack and friends have a bit of luggage in their codebase |
19:15:17 | Elronnd | yep |
19:18:29 | PMunch | I'm actually thinking of writing a small roguelike in Nim |
19:18:46 | PMunch | Mostly just to play with terminal graphics and procedural generation |
19:19:07 | Elronnd | terminal graphics aren't something you want to play with |
19:19:16 | Elronnd | ncurses is kind of a kludge |
19:19:27 | Elronnd | you'll want to abstract all the terminal graphics away so taht you interact with them as little as possible |
19:20:59 | PMunch | Yeah, but doing that might be fun |
19:21:42 | * | Jesin quit (Quit: Leaving) |
19:22:16 | FromGitter | <zacharycarter> PMunch: https://github.com/zacharycarter/NimRL |
19:22:33 | FromGitter | <Yardanico> bah, nested parentheses are killers of recursive descent parsers performance :P |
19:23:06 | PMunch | Oh yeah I found that zacharycarter while looking around for roguelikes written in Nim |
19:23:19 | FromGitter | <zacharycarter> I plan on adding a lot more to it |
19:23:21 | FromGitter | <zacharycarter> FOV algos etc |
19:23:31 | FromGitter | <zacharycarter> but it may give you a starting point for proc gen if you need one |
19:23:58 | PMunch | Yeah, I'll definitely keep it in mind if I decide to do it |
19:24:03 | PMunch | https://github.com/PMunch/drawille-nim |
19:24:11 | PMunch | That could also be fun to add to the mix |
19:26:57 | * | jjido quit (Ping timeout: 248 seconds) |
19:26:59 | * | miran quit (Ping timeout: 255 seconds) |
19:28:33 | * | jjido joined #nim |
19:29:10 | * | ofelas joined #nim |
19:31:45 | FromGitter | <Bennyelg> Does nim have something like phantum JS / |
19:31:48 | FromGitter | <Bennyelg> ? |
19:32:12 | FromGitter | <Yardanico> you can use selenium with it's json api |
19:32:15 | FromGitter | <Yardanico> it's very highlevel |
19:32:32 | FromGitter | <Yardanico> but no, AFAIK no wrappers of phantom js or selenium |
19:39:34 | * | endragor joined #nim |
19:40:48 | * | Jesin joined #nim |
19:42:12 | Elronnd | PMunch: not nim, but I write an algo in d that produces cool-looking dungeons |
19:42:23 | Elronnd | fairly simple, should map direcly into nim |
19:42:31 | PMunch | Oh cool, link? |
19:42:54 | Elronnd | one sec |
19:43:15 | Elronnd | http://repo.or.cz/SmugglerRL.git/blob/refs/heads/old-d:/src/mapgen.d#l56 |
19:43:25 | Elronnd | I have a screenshot of what dungeons look like, somewhere too |
19:44:10 | * | endragor quit (Ping timeout: 240 seconds) |
19:47:09 | FromGitter | <zetashift> Elronnd, how are you liking Nim in comparison to D? I like both of em personally |
19:47:36 | Elronnd | zetashift: I don't like the significant whitespace |
19:47:40 | Elronnd | but I like the idea of actual macros |
19:47:49 | Elronnd | I haven't actually made anything significant in nim yet |
19:48:02 | Elronnd | I made an irc bot, though, and hacked ssl support onto the irc library |
19:58:05 | * | ipjk joined #nim |
19:58:25 | * | ofelas quit (Quit: shutdown -h now) |
20:04:38 | FromGitter | <krux02> good evening humans |
20:06:00 | PMunch | Hmm, when I build with "--debugger:native --debuginfo" and run gdb on the output the "list" command gives me some random lines from system.nim.. |
20:06:08 | FromGitter | <ephja> hello... human? |
20:06:24 | FromGitter | <Yardanico> @krux02 we are nimians, not humans :D |
20:06:45 | FromGitter | <krux02> of course |
20:06:55 | FromGitter | <ephja> yeah. sure |
20:08:33 | * | relax quit (Ping timeout: 248 seconds) |
20:16:00 | * | Vladar quit (Quit: Leaving) |
20:16:16 | FromGitter | <krux02> I would be interested if anybody here knows how to publish nim to the web via emscripten |
20:16:32 | FromGitter | <krux02> I would like to have an SDL2 application on the web |
20:18:45 | FromGitter | <Yardanico> Maybe https://github.com/Jipok/Nim-SDL2-and-Emscripten ? |
20:20:00 | FromGitter | <Yardanico> But be aware that "ex211_opengl - Emscripten does not support OpenGL. Only OpenGL ES and WebGL" |
20:20:52 | FromGitter | <krux02> isn't WebGL the official opengl ES binding for javascript? |
20:21:19 | FromGitter | <zacharycarter> yay got skeletal animation working in webassembly finally |
20:21:23 | FromGitter | <krux02> but I am unaware of the version of OpneglES that is webgl |
20:21:37 | FromGitter | <krux02> @zacharycarter wow, cool |
20:21:56 | FromGitter | <zacharycarter> @krux02 thanks LD |
20:21:57 | FromGitter | <zacharycarter> :D |
20:22:03 | FromGitter | <krux02> I have skeletal animation, but I would really like to have webassembly support |
20:22:49 | FromGitter | <krux02> the problem with skeletal animation, I now have it, but I don't know what to do with it :P |
20:22:57 | FromGitter | <krux02> I can't model skeletal animation |
20:23:52 | FromGitter | <krux02> I would really like to support WebAssembly in my application, as well |
20:24:11 | FromGitter | <krux02> does it support sdl2? |
20:25:22 | FromGitter | <zacharycarter> yup |
20:25:44 | FromGitter | <zacharycarter> I'm using sdl2 and opengl and it's working well |
20:25:51 | FromGitter | <krux02> I recently changed from sdl2 to sdl2_nim |
20:25:55 | FromGitter | <zacharycarter> :/ |
20:25:59 | FromGitter | <krux02> because I somehow prefer that structure |
20:26:29 | FromGitter | <krux02> can you show me the project or is it secret? |
20:26:49 | FromGitter | <Bennyelg> How Can I create universal type of DbConn which Undefined untill runtime ⏎ ⏎ example: ⏎ ⏎ ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=59cd5b09b20c6424299bef50] |
20:27:09 | FromGitter | <Bennyelg> ignore the bad indention |
20:27:12 | FromGitter | <krux02> I hope that if I get webassemply support as well, that you can eventually execute my samples in the browser |
20:29:43 | * | solitudesf joined #nim |
20:30:21 | FromGitter | <Yardanico> @Bennyelg generics? |
20:30:43 | FromGitter | <krux02> @Bennyelg: I have no idea about the database api. So take my advise with a grain of salt. what you do looks quite ok, I would just put the dbtype in an enum |
20:30:45 | FromGitter | <Bennyelg> Didnt get to this section in the book yet :D i'll go manual |
20:31:10 | dom96 | This is cool: https://twitter.com/Gankro/status/913292356023091202 |
20:31:14 | dom96 | I wonder if it's the case for Nim |
20:31:14 | FromGitter | <Bennyelg> @krux02 can u elaborate ? |
20:31:55 | FromGitter | <krux02> not really |
20:33:21 | * | jjido quit (Ping timeout: 240 seconds) |
20:36:14 | * | jjido joined #nim |
20:37:24 | FromGitter | <krux02> dom96: I have no idea what a "trusting-trust attack" is |
20:37:52 | dom96 | read the RT'd tweet |
20:38:04 | FromGitter | <Bennyelg> I tried ⏎ type ⏎ DbConnection = enum ⏎ ⏎ ```mysql = db_mysql.open, postgres = db_postgres.open, sqlite = db_sqlite.open``` [https://gitter.im/nim-lang/Nim?at=59cd5dacf7299e8f53848d6d] |
20:38:12 | FromGitter | <Bennyelg> Error: ordinal type expected hehe |
20:39:19 | FromGitter | <Yardanico> Did you really read whole language manual? |
20:39:30 | FromGitter | <Bennyelg> sure not |
20:39:32 | * | masternave joined #nim |
20:39:37 | * | masternave left #nim ("WeeChat 1.9") |
20:40:32 | FromGitter | <Yardanico> You're trying to do some weird thing with enums, you can't assign values here |
20:40:57 | FromGitter | <Bennyelg> I saw that Understand it and remove this Just pass the type DbConn |
20:41:01 | FromGitter | <Bennyelg> but without success |
20:42:48 | FromGitter | <Yardanico> Did you try generics? |
20:43:00 | FromGitter | <Bennyelg> nop I am now reading about it |
20:43:10 | Araq | oh god not "trusting-trust" again |
20:45:39 | * | PMunch quit (Quit: leaving) |
20:46:12 | FromGitter | <zacharycarter> wtf is trusting-trust? |
20:46:16 | FromGitter | <zacharycarter> sorry for my ignorance |
20:47:11 | * | relax joined #nim |
20:47:46 | FromGitter | <krux02> well I read the other tweet, but to be honest, I don't like twitter |
20:47:56 | FromGitter | <krux02> it just seems bothering |
20:48:29 | FromGitter | <zacharycarter> I still don't get it but whatever |
20:49:32 | Elronnd | zacharycarter, look here https://www.ece.cmu.edu/~ganger/712.fall02/papers/p761-thompson.pdf and here http://wiki.c2.com/?TheKenThompsonHack |
20:49:51 | FromGitter | <zacharycarter> thanks |
20:49:54 | Elronnd | it can be defeated through diverse double compiling, https://www.schneier.com/blog/archives/2006/01/countering_trus.html |
20:51:10 | Araq | it doesn't have to be defeated because it was never done successfully in practice |
20:51:31 | Elronnd | "In August 2009 a virus utilizing the Ken Thompson hack was seen in the wild. It infected Delphi 4 through 7 and applications genereated with it. http://www.h-online.com/security/Virus-infects-development-environment--/news/114031" |
20:51:42 | Araq | wait what? |
20:51:51 | * | gokr joined #nim |
20:52:43 | Araq | that link doesn't say anything like that? |
20:53:00 | Elronnd | last I checked the link was dead? |
20:53:40 | FromGitter | <Yardanico> https://www.wilderssecurity.com/threads/new-virus-infects-programs-built-with-delphi.251325/ |
20:53:41 | FromGitter | <Yardanico> ? |
20:55:09 | FromGitter | <Yardanico> From comments: |
20:55:13 | FromGitter | <Yardanico> "A lot of Malware is written in Delphi, so it's ( possible ) that this Malware could infect other Malware that might be on, or get on, peoples PC's. That would be interesting lol." |
20:56:52 | Araq | that's not the Ken Thompson hack IMO. |
20:57:10 | Araq | just a virus targeting a compiler. |
21:00:07 | FromGitter | <zacharycarter> roar |
21:00:30 | FromGitter | <zacharycarter> (https://files.gitter.im/nim-lang/Nim/gmBd/Screen-Shot-2017-09-28-at-4.59.58-PM.png) |
21:01:04 | FromGitter | <krux02> yay |
21:01:25 | Elronnd | nice! |
21:01:28 | FromGitter | <zacharycarter> thanks |
21:01:39 | FromGitter | <zacharycarter> time to sit in traffic, be back soon |
21:01:54 | FromGitter | <krux02> I think I will be in bed soon |
21:04:19 | * | thomasross quit (Read error: Connection reset by peer) |
21:07:15 | * | derlafff quit (Read error: Connection reset by peer) |
21:07:27 | * | derlafff joined #nim |
21:07:52 | Araq | krux02: a protoss terran zerg hybrid? |
21:08:49 | FromGitter | <krux02> there is also a bit of Predator in it |
21:09:21 | FromGitter | <krux02> how do I install the development head version of a package via nimble? |
21:09:27 | * | claudiuinberlin quit (Quit: Textual IRC Client: www.textualapp.com) |
21:18:49 | Demos[m] | @ara |
21:18:55 | Demos[m] | @araq, cool orm brah |
21:21:05 | dom96 | krux02: nimble install pkg@#head |
21:21:09 | FromGitter | <Yardanico> @krux02 iirc it's package@#head |
21:32:59 | FromGitter | <krux02> thanks |
21:33:38 | FromGitter | <krux02> i have to use quotes on zsh thoou |
21:34:29 | FromGitter | <Yardanico> Why? It worked without them for me |
21:34:51 | * | solitudesf quit (Ping timeout: 258 seconds) |
21:37:36 | * | Trustable quit (Remote host closed the connection) |
21:39:37 | * | Guest99393 joined #nim |
21:40:21 | * | def-pri-pub joined #nim |
21:41:05 | * | relax quit (Ping timeout: 240 seconds) |
21:42:33 | * | dave24 quit (Ping timeout: 252 seconds) |
21:44:44 | * | dave24 joined #nim |
21:48:22 | Araq | Demos[m]: thanks |
21:48:37 | FromGitter | <krux02> ok good night |
21:48:43 | FromGitter | <krux02> need some sleep. |
21:53:56 | Demos[m] | Araq: can you control the joins explicitly |
21:54:03 | Demos[m] | nat joins can gum up the query planner |
21:54:08 | Araq | sure |
21:54:16 | Demos[m] | (even if they are not actually nat joins) |
21:54:41 | Demos[m] | I'm still gunna work on my raw sql library sometime tho :| |
21:58:12 | FromGitter | <zacharycarter> I guess I need to make a zengine website now since I can make wasm demos |
22:01:35 | * | Guest99393 quit (Quit: Guest99393) |
22:01:52 | * | Guest99393 joined #nim |
22:03:40 | * | Ven`` quit (Ping timeout: 240 seconds) |
22:14:30 | * | def-pri-pub quit (Quit: Leaving.) |
22:16:18 | * | libman joined #nim |
22:27:24 | * | relax joined #nim |
22:27:50 | * | Demos joined #nim |
22:30:44 | * | Guest99393 quit (Quit: Guest99393) |
22:31:11 | * | Guest99393 joined #nim |
22:31:29 | * | relax quit (Ping timeout: 248 seconds) |
22:33:45 | * | gmpreussner joined #nim |
22:42:49 | * | Guest99393 quit (Quit: Guest99393) |
22:43:13 | * | Guest99393 joined #nim |
22:52:40 | * | gokr quit (Ping timeout: 240 seconds) |
22:56:31 | * | Guest99393 quit (Quit: Guest99393) |
22:57:01 | * | Guest99393 joined #nim |
23:02:46 | * | kunev quit (Ping timeout: 264 seconds) |
23:22:21 | * | def-pri-pub joined #nim |
23:24:05 | * | Guest99393 quit (Quit: Guest99393) |
23:36:04 | * | def-pri-pub quit (Quit: Leaving.) |
23:36:18 | * | Nobabs27 joined #nim |
23:41:55 | * | Demos quit (Quit: Demos) |
23:45:53 | * | yglukhov quit (Remote host closed the connection) |
23:48:46 | * | arnetheduck joined #nim |
23:56:37 | * | voice_ftp quit (Quit: Leaving) |
23:59:32 | * | voiceftp joined #nim |