00:03:37 | * | Varriount|Phone joined #nim |
00:25:02 | FromGitter | <Varriount> vivus: Which ones are there? |
00:25:54 | vivus | @Varriount I got around it with: filecsv.write("\n") |
00:41:06 | * | rauss joined #nim |
00:41:48 | * | bungoman joined #nim |
00:57:27 | * | yglukhov joined #nim |
01:03:17 | * | yglukhov quit (Ping timeout: 260 seconds) |
01:19:21 | * | Serenitor quit (Quit: Leaving) |
01:36:48 | * | chemist69 quit (Ping timeout: 240 seconds) |
01:50:46 | * | chemist69 joined #nim |
02:34:25 | * | sz0 quit (Quit: Connection closed for inactivity) |
02:50:57 | * | babs_ quit (Read error: Connection reset by peer) |
02:52:31 | * | Nobabs27 joined #nim |
03:13:12 | * | vendethiel- joined #nim |
03:13:24 | * | vendethiel quit (Ping timeout: 260 seconds) |
03:27:00 | * | krux02 quit (Remote host closed the connection) |
03:29:50 | * | user0___ joined #nim |
03:30:27 | * | user0___ quit (Client Quit) |
03:33:25 | * | ludocode joined #nim |
03:46:34 | * | chemist69 quit (Ping timeout: 264 seconds) |
03:48:26 | * | chemist69 joined #nim |
03:48:46 | * | vivus quit (Quit: Leaving) |
04:13:03 | def-pri-pub | /quit |
04:13:05 | * | def-pri-pub quit (Quit: leaving) |
04:27:59 | tyler569 | /buffer clear |
04:28:03 | tyler569 | whoops |
04:36:47 | * | acidx quit (Ping timeout: 260 seconds) |
04:36:58 | * | mal`` quit (Quit: Leaving) |
04:38:09 | * | acidx joined #nim |
04:40:46 | * | rauss quit (Quit: WeeChat 1.7) |
04:41:32 | * | mal`` joined #nim |
04:47:11 | * | Nobabs27 quit (Quit: Leaving) |
05:11:28 | * | ftsf quit (Ping timeout: 260 seconds) |
05:15:32 | * | gmpreussner quit (Ping timeout: 268 seconds) |
05:15:40 | * | gmpreussner joined #nim |
05:18:58 | * | MonsterAbyss quit (Ping timeout: 264 seconds) |
05:22:58 | * | MonsterAbyss joined #nim |
05:28:18 | * | ftsf joined #nim |
05:31:34 | * | bodie_ quit (Ping timeout: 268 seconds) |
05:32:08 | * | MonsterAbyss quit (Ping timeout: 240 seconds) |
05:34:56 | * | MonsterAbyss joined #nim |
05:36:29 | * | bodie_ joined #nim |
05:39:35 | * | gokr joined #nim |
05:48:50 | * | pafmaf joined #nim |
05:52:31 | * | chemist69 quit (Ping timeout: 246 seconds) |
05:57:54 | * | chemist69 joined #nim |
06:10:08 | * | gokr quit (Ping timeout: 240 seconds) |
06:22:00 | * | vendethiel joined #nim |
06:22:05 | * | vendethiel- quit (Ping timeout: 240 seconds) |
06:27:10 | * | ftsf quit (Ping timeout: 246 seconds) |
06:31:21 | * | jmkr quit (Ping timeout: 256 seconds) |
06:31:38 | * | jmkr joined #nim |
06:33:44 | * | nsf joined #nim |
06:39:04 | * | ftsf joined #nim |
06:43:35 | * | rokups joined #nim |
06:48:05 | * | gokr joined #nim |
06:56:05 | * | Andris_zbx joined #nim |
07:02:16 | * | ftsf quit (Remote host closed the connection) |
07:11:01 | * | Tiberium joined #nim |
07:16:12 | * | pafmaf quit (Quit: pafmaf) |
07:17:21 | * | zachcarter quit (Quit: zachcarter) |
07:17:27 | * | jonafato quit (Ping timeout: 240 seconds) |
07:23:33 | * | jonafato joined #nim |
07:48:37 | * | lison joined #nim |
07:48:42 | * | lison left #nim (#nim) |
07:48:55 | * | lison joined #nim |
07:49:01 | * | lison left #nim (#nim) |
07:49:05 | * | peted quit (Ping timeout: 268 seconds) |
07:49:14 | * | lison joined #nim |
07:49:48 | * | lison left #nim (#nim) |
07:52:43 | * | fastrom joined #nim |
08:01:33 | * | chemist69 quit (Ping timeout: 264 seconds) |
08:08:48 | * | Tiberium quit (Remote host closed the connection) |
08:09:40 | * | yglukhov joined #nim |
08:13:10 | * | gokr quit (Remote host closed the connection) |
08:14:28 | * | chemist69 joined #nim |
08:43:11 | FromGitter | <TiberiumPY> hmm, on windows - could not load: libeay64.dll while trying to run "nimble install" |
08:43:22 | FromGitter | <TiberiumPY> I need to compile OpenSSL for 64 bits myself? |
08:46:25 | FromGitter | <TiberiumPY> wtf for real |
08:47:23 | FromGitter | <TiberiumPY> ahahaha |
08:47:37 | FromGitter | <TiberiumPY> I just renamed libeay32.dll and ssleay32.dll to 64 bits |
08:47:39 | FromGitter | <TiberiumPY> and it worked.. |
08:48:40 | cheatfate | yeah, its known Araq's dirty hack :) |
08:51:25 | Araq | it's not a hack, it's a fix |
08:51:36 | Araq | libeay32 are misnamed when then are for 64bits |
08:51:51 | Araq | besides, you should already have these DLLs, Nim ships with them |
08:52:00 | Araq | likewise you should already have nimble.exe |
08:52:06 | Araq | because Nim ships with it. |
08:52:08 | FromGitter | <TiberiumPY> I couldn't install Nim from binary installer |
08:52:11 | FromGitter | <TiberiumPY> I compiled it from source |
08:52:31 | Araq | binary installer is broken, use the .zip |
08:52:55 | FromGitter | <TiberiumPY> hmm, for some reason my program crashes on start... |
08:53:26 | FromGitter | <TiberiumPY> no errors, just crash |
08:53:38 | Araq | you can't just rename the DLL |
08:53:45 | Araq | get the DLL from the zip file please |
08:53:47 | FromGitter | <TiberiumPY> ok |
08:53:53 | FromGitter | <TiberiumPY> but why it worked for Nimble? |
08:56:22 | * | SusWombat quit (Ping timeout: 260 seconds) |
08:57:02 | FromGitter | <TiberiumPY> yay thank you Araq |
09:00:50 | FromGitter | <Varriount> Araq: If the binary installer is broken, why is it still available? |
09:01:25 | FromGitter | <TiberiumPY> So official instruction on installing latest Nim on Windows is: ⏎ Download nim 0.16.0 as a zip ⏎ Clone Nim repo ⏎ Compile latest nim with nim 0.16.0 using some compiler(mingw mingw-w64 etc) ⏎ Done? [https://gitter.im/nim-lang/Nim?at=58dcc966408f90be666e991f] |
09:01:39 | FromGitter | <TiberiumPY> and copy the dll's |
09:02:12 | Araq | ^ that works. |
09:02:27 | Araq | there is little magic involved even though people think so. |
09:02:27 | FromGitter | <TiberiumPY> ok I'll remember that |
09:02:51 | Araq | you can move the .exes around, trim the stdlib, remove the docs |
09:04:24 | Araq | use a mingw in a sibling dir (my favourite) ... everything is flexible. and not officially supported because people get it wrong all the time. |
09:09:41 | Araq | varriount: now that is a very good question. |
09:11:38 | cheatfate | Araq, if it working... is not always very good, just because you are shipping pretty old openssl dlls which are updating more frequently |
09:13:02 | Araq | cheatfate: once I wrote my own custom C++ build tool (just a Nim program of a couple of lines really) I can build these DLLs more frequently |
09:13:44 | cheatfate | so i think openssl dll names must stay original... |
09:14:11 | Araq | but the original is broken and we have the same problem with eg pcre |
09:14:18 | Araq | 32 vs 64bit builds |
09:14:30 | cheatfate | why original is broken? |
09:14:48 | Araq | because Nim supports 32 vs 64 bit builds. |
09:15:06 | Araq | and you can only have 1 openssl.dll in bin/ |
09:15:13 | Araq | it's doomed. |
09:15:42 | cheatfate | microsoft always make 2 directories `x86` and `amd64` and this is proper way |
09:16:26 | Araq | how so? they have to ship with a custom long .bat file to make this all work out |
09:16:28 | cheatfate | and on windows with nim 32bit you can't build 64 bit binaries |
09:16:37 | Araq | you can. |
09:16:54 | Araq | I do it all the time, --cpu:amd64 and proper mingw in path |
09:17:55 | cheatfate | ok, so ask yourself, will you update nim official binaries everytime openssl get updates? |
09:19:09 | Araq | no why would I. use an old enough openssl and it doesn't have the security bugs that then were fixed again :P |
09:20:34 | cheatfate | ok one more question do you know, that you are modify openssl.dlls so they can't satisfy official MD5/SHA checksums on openssl site? |
09:21:03 | FromGitter | <TiberiumPY> btw, just curious - does Nim supports openssl 1.1.0? |
09:21:54 | cheatfate | nobody will check what you have modified in ssleay64.dll to load libeay64.dll, but checksums is wrong... |
09:22:18 | Araq | cheatfate: I don't know. :-) |
09:23:08 | cheatfate | that's why its not a fix, its dirty hack |
09:23:15 | Araq | these are all arguments for a native Nim implementation of ssl, IMO |
09:24:18 | cheatfate | native nim implementation of ssl will takes even longer, then new website |
09:24:20 | FromGitter | <Varriount> Or a wrapper that uses SChannel on Windows, and OpenSSL on *nix |
09:24:33 | * | dyce[m] quit (Remote host closed the connection) |
09:24:34 | * | M-Quora quit (Write error: Connection reset by peer) |
09:24:34 | * | TheManiac quit (Remote host closed the connection) |
09:24:34 | * | Guest73656[m] quit (Remote host closed the connection) |
09:24:36 | * | jivank[m] quit (Read error: Connection reset by peer) |
09:24:36 | * | MrAxilus[m] quit (Read error: Connection reset by peer) |
09:24:36 | * | hohlerde quit (Read error: Connection reset by peer) |
09:24:37 | * | ehmry[m] quit (Write error: Connection reset by peer) |
09:24:37 | * | Jipok[m] quit (Write error: Connection reset by peer) |
09:24:37 | * | stisa quit (Write error: Connection reset by peer) |
09:24:40 | FromGitter | <Varriount> Which would probably be less work that a new implementation. |
09:24:45 | Araq | varriount: we have established we don't want SChannel |
09:24:48 | cheatfate | Lets stop talking about SChannel, there was already discussion about it, and why it stupid |
09:25:14 | FromGitter | <Varriount> Well, there must be some native Windows SSL api |
09:26:02 | cheatfate | Varriount, omg, please take a look in irc logs about windows native ssl api and why its bad |
09:26:20 | Araq | cheatfate: ok, consider me convinced. |
09:26:31 | FromGitter | <Varriount> cheatfate: What date? |
09:26:37 | Araq | will change this setup slightly for new release |
09:27:17 | * | dyce[m] joined #nim |
09:27:21 | cheatfate | Varriount: Native windows SSL implementation on Windows XP/Vista don't support TLS 1.2 and supports only deprecated cipher suites |
09:27:22 | Araq | will introduce dlls32 and dlls64 dirs and the installer adds one more entry to PATH |
09:28:04 | FromGitter | <Varriount> cheatfate: And we should support XP because...? |
09:28:22 | Araq | varriount: because it rules and should never have been abandoned by MS |
09:28:25 | Araq | :D |
09:28:36 | cheatfate | Varriount: because there 8% of users using Windows XP, and only 2% uses Linux |
09:28:56 | * | SusWombat joined #nim |
09:29:14 | cheatfate | ^^ and this data from 2017 |
09:33:10 | * | MrAxilus[m] joined #nim |
09:33:10 | * | M-Quora joined #nim |
09:33:11 | * | ehmry[m] joined #nim |
09:33:17 | * | Jipok[m] joined #nim |
09:33:17 | * | hohlerde joined #nim |
09:33:17 | * | TheManiac joined #nim |
09:33:17 | * | stisa joined #nim |
09:33:17 | * | Guest73656[m] joined #nim |
09:33:17 | * | jivank[m] joined #nim |
09:35:33 | cheatfate | before somebody will finish pure nim ssl implementation, i think its better to have better ssl wrapper, which will support not only openssl, but libressl, wolfssl and all other widely used ssl implementations |
09:35:59 | cheatfate | this wrapper also needs mechanism to automatically detect available shared objects |
09:54:24 | * | ngc joined #nim |
09:56:28 | ngc | Hello, I have problems installing the 64 version of nim via the exe installer. Download of additional components by the installer fails with timeout. Anyone experiencing the same problem? |
09:56:29 | * | Arrrr joined #nim |
09:56:29 | * | Arrrr quit (Changing host) |
09:56:29 | * | Arrrr joined #nim |
09:58:54 | Araq | ngc: I'm fixing it. |
09:59:21 | Araq | or rather, I'm changing the website to reflect reality |
09:59:25 | ngc | Thanks a lot @Araq |
10:05:34 | * | chemist69 quit (Ping timeout: 246 seconds) |
10:05:57 | * | chemist69 joined #nim |
10:09:41 | FromGitter | <vegansk> Added support of ADTs to ``boost`` library :-) Compatible with ``patty``'s pattern matching ⏎ ⏎ ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=58dcd9654cb8d091733faaee] |
10:10:53 | Araq | ngc: updated, please have a look |
10:13:39 | * | Tiberium joined #nim |
10:16:37 | ngc | downloading via the installer failed again. But I see you updated the website (removed the installer). Shall I try the zip files? |
10:19:54 | ngc | araq: perhaps you can link the aporia.zip package on the website? |
10:24:31 | Araq | the installer cannot deal with https |
10:29:26 | FromGitter | <andreaferretti> @vegansk great! :-) |
10:30:31 | Araq | ngc: I don't want to. aporia is moribund |
10:31:01 | ngc | manual installation by extracting the zip files worked. |
10:31:01 | FromGitter | <vegansk> @andreaferretti, hi :smile: If I implement the possibility of adding common fields to ADT, will it break the compatibility with patty? |
10:32:30 | FromGitter | <andreaferretti> I don't think so, but I guess the best way is to try and check! |
10:33:23 | * | Vladar joined #nim |
10:33:54 | FromGitter | <vegansk> Ok :-) will try it tomorrow |
10:36:09 | * | SusWombat quit (Ping timeout: 256 seconds) |
10:36:28 | * | SusWombat joined #nim |
10:47:46 | * | vendethiel quit (Ping timeout: 264 seconds) |
11:04:37 | * | Matthias247 joined #nim |
11:04:46 | * | bjz joined #nim |
11:07:18 | * | zachcarter joined #nim |
11:14:32 | * | zachcarter quit (Ping timeout: 260 seconds) |
11:15:45 | * | zachcarter joined #nim |
11:24:09 | * | Matthias247 quit (Read error: Connection reset by peer) |
11:28:58 | * | fastrom1 joined #nim |
11:30:04 | * | fastrom quit (Ping timeout: 240 seconds) |
11:34:47 | Tiberium | btw, can nim compiler somehow statically include OpenSSL (and another used libs) in Windows compilation? |
11:34:56 | Tiberium | or it does it already? |
11:36:54 | * | fastrom joined #nim |
11:38:20 | * | fastrom1 quit (Ping timeout: 260 seconds) |
11:47:45 | Tiberium | ok, another question - how to configure appveyor for building my app? I need latest devel |
11:50:11 | * | fastrom1 joined #nim |
11:51:21 | * | fastrom quit (Ping timeout: 260 seconds) |
12:00:59 | Tiberium | well, thanks nim has it's own appveyor.yml |
12:03:13 | * | vlad1777d joined #nim |
12:06:34 | flyx | Tiberium: did you see https://github.com/nim-lang/Nim/wiki/BuildServices |
12:06:43 | Tiberium | flyx, I need latest nim devel :) |
12:06:50 | Tiberium | because nim 0.16.0 fails to build my project |
12:08:38 | flyx | well that works with TravisCI, don't know about appveyor |
12:08:50 | Tiberium | flyx, I already done travis :) |
12:08:56 | flyx | ah kay |
12:09:00 | Tiberium | copied almost everything from Nim's appveyor |
12:09:05 | Tiberium | trying now |
12:10:33 | * | chemist69 quit (Ping timeout: 264 seconds) |
12:10:34 | * | fastrom1 quit (Ping timeout: 240 seconds) |
12:10:37 | * | fastrom joined #nim |
12:12:41 | * | chemist69 joined #nim |
12:13:16 | * | fastrom1 joined #nim |
12:14:58 | * | fastrom quit (Ping timeout: 258 seconds) |
12:16:19 | Tiberium | Araq, do I need to provide openssl 64 bit libs from nim 0.16.0 zip file with my app, if it uses SSL on Windows? |
12:16:33 | Tiberium | or maybe there's a way to "append" dll's into exe |
12:19:18 | * | Sentreen quit (Quit: WeeChat 1.4) |
12:22:38 | * | fastrom1 quit (Ping timeout: 258 seconds) |
12:23:05 | * | antranigv quit (Ping timeout: 240 seconds) |
12:23:59 | * | fastrom joined #nim |
12:26:30 | FromGitter | <dom96> "varriount: we have established we don't want SChannel" |
12:26:33 | FromGitter | <dom96> We established no such thing |
12:28:13 | * | bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
12:28:30 | FromGitter | <dom96> Tiberium: You do. There might be a way to statically link it, but I doubt it's easy. |
12:30:02 | * | antranigv joined #nim |
12:31:26 | * | zachcarter_ joined #nim |
12:33:48 | * | zachcarter quit (Ping timeout: 240 seconds) |
12:33:48 | * | zachcarter_ is now known as zachcarter |
12:45:58 | * | fastrom quit (Ping timeout: 264 seconds) |
12:46:40 | * | fastrom joined #nim |
12:52:57 | * | ftsf joined #nim |
13:02:21 | * | krux02 joined #nim |
13:04:51 | FromGitter | <Varriount> Dom96: And I'm not sure that Windows Vista is actually insecure. |
13:05:04 | FromGitter | <Varriount> I mean, regarding SChannel |
13:06:44 | cheatfate | Varriount: i know you thinking i'm totally ignorant, so you dont trust my words. So check this link https://msdn.microsoft.com/en-us/library/windows/desktop/ff468651(v=vs.85).aspx |
13:07:09 | * | BitPuffin|osx joined #nim |
13:17:09 | FromGitter | <Varriount> Cheatfate: I don't think your ignorant, I just think Microsoft's documentation is a mess |
13:17:44 | cheatfate | lol |
13:18:45 | * | vlad1777d quit (Remote host closed the connection) |
13:19:05 | FromGitter | <Varriount> Anyway, I still think an abstraction layer over both APIs would be best. |
13:19:22 | FromGitter | <Varriount> That way you could force use of OpenSSL if you want. |
13:20:31 | FromGitter | <Varriount> The reason I prefer SChannel is because any openssl dll is likely to be outdated eventually on Windows |
13:21:59 | cheatfate | Varriount: in modern world of crypto, if you making wrapper/library and if you know how to make it, you must not allow such abstractions, just because end-users of your library will be very disappointed when application, which uses your library, for some reason uses weak cryptography (just because you allowed some abstractions) |
13:23:05 | FromGitter | <Varriount> What? Using an abstraction doesn't prevent use of strong cryptography. |
13:24:15 | cheatfate | what will do application with nim ssl wrapper (which uses schannel and openssl), if was executed without openssl dlls on windows xp/vista? |
13:25:22 | cheatfate | it will show exception: no strong ciphers available... or exception: could not load OpenSSL... |
13:25:34 | cheatfate | or it will start to use weak schannel |
13:25:59 | cheatfate | what abstraction you like in such case? |
13:27:46 | cheatfate | also in modern world application which uses weak schannel will not be able to connect to any https servers, just because they will disconnect such client... |
13:39:48 | * | Varriount|Phone quit (Ping timeout: 240 seconds) |
13:44:25 | Tiberium | hmm, how to do something like this in Nim? (python) s = range(3, n + 1, 2) so it's range(start, stop, step) |
13:45:25 | Araq | there is only countup(start, endInclusive, step) iterator |
13:46:07 | Tiberium | Araq, thanks |
13:49:11 | zachcarter | bleh https://gist.github.com/zacharycarter/67a4e3959bb39a70755e73a2eb58e8a1 |
13:49:15 | zachcarter | spine parser |
13:49:21 | zachcarter | spine *JSON parser |
13:49:52 | zachcarter | no tests yet |
13:51:46 | zachcarter | still wish I had been able to use flyx’s NimYaml but the JSON is just too variable for the deserializer to handle it |
13:52:05 | zachcarter | and I couldn’t figure out how to write a custom deserializer for just a small section of a JSON doc with NimYaml |
13:57:09 | * | Varriount|Phone joined #nim |
14:03:23 | chemist69 | zachcarter: you wrote that in one day? I am really impressed. |
14:03:31 | zachcarter | thanks |
14:03:53 | zachcarter | not the best code in the world but rapidity will do that to you :P |
14:04:47 | * | chemist69 realizes he's not coding at professional level AT ALL... |
14:05:59 | zachcarter | haha well I wouldn’t consider myself a pro :P best leave that title to the nim maintainers and contributors :) |
14:06:15 | zachcarter | I am pretty quick with Nim though in terms of producing functioning code |
14:06:25 | zachcarter | but I think I can still improve a lot |
14:14:33 | FromGitter | <dom96> zachcarter: you can use `{}`instead of getOrDefault IIRC. Should make your code much easier to reason about :) |
14:15:03 | zachcarter | thank you dom96 |
14:15:09 | Tiberium | badges yay https://github.com/TiberiumN/Nickel |
14:15:21 | Tiberium | easy to copy CI configuration from Nim repo :) |
14:15:33 | zachcarter | also: I think I just got the bindings to the spine C runtime working |
14:15:45 | Tiberium | zachcarter, so you can work on framework itself? |
14:15:54 | zachcarter | potentially |
14:16:02 | zachcarter | I can hold off on building this Nim runtime for Spine |
14:16:06 | zachcarter | and just use the bindings instead |
14:16:19 | zachcarter | gotta verify though that things are working as I suspect they are, but I was finally able to get my function pointers invoked from C |
14:18:05 | Tiberium | btw, is it normal if I start my app - it takes ~6mb, and after it receive some commands from users (from web api), usage grows to ~16-17mb and stays like this? |
14:20:15 | zachcarter | well GC is done locally per thread |
14:20:23 | zachcarter | so I imagine you would see normal GC behavior |
14:20:30 | zachcarter | memory usage going up and then going back down |
14:20:34 | zachcarter | when the GC cycles |
14:21:08 | zachcarter | someone more familiar with the intracices of the GC could reply though |
14:24:21 | Tiberium | zachcarter, it just going up to 15752 kilobytes and stays there even if I send some commands to it :) |
14:24:36 | Tiberium | anyway that's small |
14:24:41 | zachcarter | well I guess that’s not the worst thing in the world :P |
14:24:52 | zachcarter | btw I’m curious as to what you’re building |
14:24:54 | zachcarter | I can’t read Russian :P |
14:25:13 | zachcarter | although I’d like to be able to - cool language |
14:25:13 | Tiberium | zachcarter, it's a command chat-bot for Russian social network |
14:25:20 | zachcarter | oh cool! |
14:26:15 | Tiberium | so like you type "hello" bot answers, or you type "rate" and it gives you current ruble's exchange rate to usd/gbp/eur |
14:27:02 | Tiberium | I've done it in Python already, but I started learning Nim, so I'm rewriting it from scratch :) |
14:29:56 | zachcarter | very cool |
14:32:40 | Tiberium | zachcarter, but your frag is better :) |
14:32:44 | Tiberium | my project is small |
14:33:07 | zachcarter | ah well it’s totally different, plus I’ve been working on frag with a little help for a few months now |
14:33:14 | zachcarter | I wish it was smaller sometimes haha |
14:44:32 | * | vlad1777d joined #nim |
15:06:24 | * | Matthias247 joined #nim |
15:08:40 | zachcarter | hrm I’m having trouble casting an unchecked array into anything usable |
15:08:51 | zachcarter | ideally I’d like to cast it into an array |
15:09:14 | zachcarter | I have the size stored in another varaible but if I try to access that variable in my cast statement, I get - cannot evaluate at compile time |
15:09:47 | zachcarter | https://gist.github.com/zacharycarter/b6a8f5a0382cb449d738a8f499d3c41e |
15:10:56 | FromGitter | <andreaferretti> makes sense |
15:11:05 | euantor | The array length would need to be known at compile time |
15:11:20 | FromGitter | <andreaferretti> an array is stored contigously |
15:11:30 | FromGitter | <andreaferretti> the compiler needs to know the size to reserve at compile time |
15:11:34 | zachcarter | ah okay |
15:11:37 | * | tyler569 left #nim ("WeeChat 1.6") |
15:11:58 | zachcarter | I guess I’m stuck manually building a seq / array then? |
15:12:14 | FromGitter | <andreaferretti> yes, you have to copy stuff into a sequence |
15:12:19 | zachcarter | :/ |
15:12:20 | zachcarter | alright |
15:12:27 | zachcarter | thank you |
15:12:27 | FromGitter | <andreaferretti> or use an uncheked array |
15:12:59 | FromGitter | <andreaferretti> I see you already ahve one |
15:13:30 | FromGitter | <andreaferretti> then you can directly use it, provided you pay attention not to go over the bounds |
15:13:58 | FromGitter | <andreaferretti> but it may be simpler to copy it into a seq if this is not a critical section of code |
15:14:12 | zachcarter | okay I’ll just do that thank you |
15:14:17 | zachcarter | makes sense though |
15:14:39 | zachcarter | why what I’m doing is failing, didn’t even think about that |
15:16:52 | * | Matthias247 quit (Read error: Connection reset by peer) |
15:25:51 | * | yglukhov quit (Remote host closed the connection) |
15:26:36 | * | Andris_zbx quit (Remote host closed the connection) |
15:30:46 | * | sz0 joined #nim |
15:46:49 | * | rauss joined #nim |
16:02:33 | dom96 | Regarding the discussion on SChannel and Windows XP. You've got bigger security problems than SSL if you're using Windows XP... |
16:03:13 | dom96 | And come on, you can still use OpenSSL for Windows XP if you care about it so much! |
16:03:55 | dom96 | You can even write some code that forces the use of OpenSSL on Windows XP only. |
16:04:59 | Tiberium | dom96, honestly, from my (beginner) POV - using SChannel will help me - I would distribute only one executable file, not two/three files (with dll/s) |
16:05:28 | dom96 | Indeed. It would help a lot of people. |
16:05:52 | dom96 | And just because it's there doesn't mean you have to use it if you're so worried about security |
16:06:53 | * | arnetheduck quit (Ping timeout: 258 seconds) |
16:08:11 | * | Trustable joined #nim |
16:14:45 | FromGitter | <Varriount> @dom96 My vision would be an abstraction library (or at least, async supporting both) |
16:15:17 | FromGitter | <Varriount> Then developers could pass in something like `-d:alwaysUseOpenSSL` when targeting Windows XP |
16:24:14 | * | Jesin joined #nim |
16:28:24 | Tiberium | or maybe -ssl:openssl |
16:34:29 | Tiberium | just wondering - can I (in theory) get any performance gains if I pass this to GCC: "-03 -fno-strict-aliasing -ffunction-sections -fdata-sections -flto -Ofast -fwhole-program -march=native" and "-Wl,--gc-sections -flto" for link-time? |
16:37:32 | demi- | you are passing two optimization flags |
16:37:52 | Tiberium | demi-, ah yes |
16:38:16 | demi- | and adding `lto` may not be desired when debugging |
16:38:25 | Tiberium | demi-, why? |
16:38:32 | demi- | as that can break lookup and symbol resolution in the debugger |
16:38:44 | Tiberium | ah, I don't debug release binaries anyway |
16:47:49 | * | nsf quit (Quit: WeeChat 1.7) |
16:48:41 | dom96 | Varriount: Sure. The implementation is up for debate, but it's largely a separate issue. |
16:48:47 | dom96 | Araq and cheatfate don't want it at all. |
16:49:06 | dom96 | Which is just annoying, seeing as somebody was volunteering to write it! |
16:49:22 | dom96 | Tiberium: Yeah, I like --ssl:openssl better :) |
16:53:40 | * | PMunch joined #nim |
17:03:48 | * | yglukhov joined #nim |
17:06:09 | FromGitter | <Varriount> dom96: Who was volunteering? |
17:06:36 | dom96 | couven92 IIRC |
17:06:42 | FromGitter | <Varriount> :< |
17:11:41 | * | yglukhov quit (Remote host closed the connection) |
17:15:45 | * | yglukhov joined #nim |
17:18:28 | * | yglukhov quit (Remote host closed the connection) |
17:22:23 | * | elrood joined #nim |
17:23:24 | * | yglukhov joined #nim |
17:33:39 | * | Nobabs27 joined #nim |
17:44:47 | * | kunev quit (Ping timeout: 268 seconds) |
17:46:04 | * | kunev joined #nim |
17:54:29 | * | Syneh__ joined #nim |
17:54:42 | * | subsetpark_ joined #nim |
17:57:18 | * | pleiosau1 joined #nim |
17:59:33 | * | heinrich5991 quit (Ping timeout: 276 seconds) |
17:59:34 | * | subsetpark quit (Ping timeout: 276 seconds) |
17:59:34 | * | flyx quit (Ping timeout: 276 seconds) |
17:59:35 | * | dom96 quit (Ping timeout: 276 seconds) |
17:59:35 | * | askatasuna quit (Ping timeout: 276 seconds) |
17:59:35 | * | stisa quit (Ping timeout: 276 seconds) |
17:59:35 | * | Syneh_ quit (Ping timeout: 276 seconds) |
17:59:36 | * | pleiosaur quit (Ping timeout: 276 seconds) |
17:59:41 | * | subsetpark_ is now known as subsetpark |
17:59:50 | * | Syneh__ is now known as Syneh_ |
17:59:54 | * | yglukhov quit (Remote host closed the connection) |
18:00:36 | * | flyx joined #nim |
18:00:53 | * | stisa joined #nim |
18:01:02 | * | askatasuna joined #nim |
18:03:08 | * | dom96 joined #nim |
18:10:31 | zachcarter | YEAHHHH BOI http://imgur.com/a/eqrly |
18:10:49 | zachcarter | indexed drawing with spine :D |
18:12:14 | * | heinrich5991 joined #nim |
18:12:50 | cheatfate | Varriount if you don't trust me and microsoft, maybe you can check this table https://en.wikipedia.org/wiki/Comparison_of_TLS_implementations#Protocol_support |
18:12:51 | * | yglukhov joined #nim |
18:17:03 | * | yglukhov quit (Ping timeout: 240 seconds) |
18:23:44 | * | yglukhov joined #nim |
18:24:21 | * | yglukhov quit (Remote host closed the connection) |
18:29:51 | * | libman joined #nim |
18:32:35 | Tiberium | how can I convert string in Nim to something like this "\u043F\u0440\u0438\u0432\u0435\u0442" ? |
18:32:40 | Tiberium | to send it to web api |
18:33:59 | PMunch | Tiberium, https://nim-lang.org/docs/unicode.html |
18:34:20 | PMunch | for i in 0..runeLen(str): |
18:34:52 | PMunch | "\u" & $runeAt(str,i) |
18:34:55 | PMunch | Something like that |
18:35:35 | Tiberium | PMunch, thanks :) It's even simpler with "runes" iterator |
18:36:33 | PMunch | Oh yeah, I just scrolled through the doc until I had the info I needed :P |
18:36:42 | PMunch | You might need to change that to hex though |
18:40:38 | dom96 | zachcarter: niceee |
18:40:48 | zachcarter | dom96: thank you! |
18:41:17 | dom96 | Tiberium: I think you can also use escapeJson (from the json module) |
18:41:22 | Tiberium | zachcarter, i liked your tweet xD |
18:41:31 | zachcarter | I saw that :D I liked yours too! haha |
18:41:45 | zachcarter | I can only hope someone will make a AAA game with frag eventually |
18:41:47 | zachcarter | that’d be too cool :P |
18:44:10 | dom96 | Tiberium: what's your twitter? |
18:44:15 | * | yglukhov joined #nim |
18:44:17 | Tiberium | dom96, @TiberiumDEV :) |
18:45:28 | dom96 | zachcarter: what's yours? |
18:45:45 | Tiberium | @Hahaitsfunny |
18:47:09 | dom96 | ahh cool |
18:48:02 | * | nsf joined #nim |
18:48:21 | zachcarter | sorry was afk |
18:49:30 | zachcarter | yay thanks for the RTs! |
18:51:31 | Tiberium | wow, retweet from Nim itself :P |
18:51:41 | zachcarter | :) |
18:52:05 | zachcarter | I’m going to start working on docu tonight - any suggestions on workflows for that? Is just the standard Nim doc tool good enough? |
18:52:32 | dom96 | :) |
18:52:44 | dom96 | 819 followers. @nim_lang is doing pretty well |
18:53:03 | dom96 | I need to more actively tweet using it I think |
18:53:32 | zachcarter | cool project idea for a Nim newbie: official / unofficial Nim twitter bot |
18:53:37 | zachcarter | that retweets tweets about Nim |
18:53:56 | * | yglukhov quit (Remote host closed the connection) |
18:54:25 | * | yglukhov joined #nim |
18:54:33 | PMunch | Hmm, the --app:gui flag crashes on Linux. Should this maybe be implemented as a nop on Linux instead? |
18:57:50 | subsetpark | dom96, I see how it is, zachcarter gets a retweet from nim itself and I have to settle for some swiss dude |
18:58:00 | zachcarter | ahahaha |
18:58:24 | dom96 | lol, there you go |
18:58:43 | dom96 | Also, just because I live in Switzerland doesn't mean I'm Swiss :P |
18:59:03 | subsetpark | even worse, some dude pretending to be swiss! |
18:59:13 | ldlework | dom96: one thing to do is retweet nim-based project updates |
18:59:45 | dom96 | ldlework: Yes, unfortunately most of the time people don't mention @nim_lang *hint hint* |
19:00:04 | subsetpark | hmmmm, point taken... |
19:00:54 | ldlework | dom96: I mean just have a bot do it |
19:01:11 | Tiberium | for example - https://twitter.com/melpa_emacs/status/845930343676862466 |
19:01:11 | zachcarter | I normally do mention nimlang, forgot to this time should def have |
19:01:16 | Tiberium | no @nim_lang mention :( |
19:01:18 | ldlework | dont you have unlimited freetime |
19:02:08 | dom96 | I'm too lazy to set up bots for this stuff |
19:02:13 | Tiberium | or again |
19:02:15 | Tiberium | no @nim_lang |
19:02:17 | Tiberium | https://twitter.com/queersorceress/status/843228271114440704 |
19:02:24 | dom96 | Plus, retweeting every mention sounds like a bad idea |
19:02:29 | * | yglukhov quit (Remote host closed the connection) |
19:02:35 | ldlework | hehe |
19:03:54 | * | yglukhov joined #nim |
19:05:44 | zachcarter | there I made up for it :P |
19:06:51 | Tiberium | btw, do you know - termcolor.nim from January 2011 still works it latest Nim... :) |
19:07:07 | Tiberium | I use it for logging |
19:08:55 | zachcarter | anyone have any advice on the docu stuff? |
19:10:27 | dom96 | Not really, just do what we do in the stdlib. You may wish to write separate documents containing lengthy explanation/examples and only add documentation to procedures/types in your source code. |
19:13:14 | * | yglukhov quit (Remote host closed the connection) |
19:13:20 | zachcarter | alright thanks |
19:17:40 | * | yglukhov joined #nim |
19:19:16 | * | Arrrr quit (Quit: Leaving.) |
19:24:25 | * | sz0 quit (Quit: Connection closed for inactivity) |
19:26:57 | dom96 | Aww, my server crashed again |
19:28:49 | zachcarter | :O |
19:31:01 | zachcarter | is that why the forums are all poopy atm? |
19:31:23 | zachcarter | https://forum.nim-lang.org/t/2886/2 |
19:31:37 | zachcarter | even though the forums say a page 2 exists |
19:31:56 | Tiberium | wait |
19:32:04 | Tiberium | nim website is running on jester? |
19:32:05 | Tiberium | wow |
19:32:23 | Tiberium | zachcarter, maybe someone deleted reply on second page? |
19:32:26 | Tiberium | just don't know |
19:32:33 | zachcarter | maybe |
19:35:09 | ldlework | I really should have popularized my ECS before other people started writing game frameworks that don't use it :( |
19:35:11 | * | ldlework sighs. |
19:36:00 | zachcarter | I don’t like ECS :/ |
19:36:40 | zachcarter | the only decent ECS I’ve come across is : https://github.com/slide-rs/specs |
19:37:03 | zachcarter | ECS tends to overly complicate game code with little benefit |
19:37:22 | ldlework | Yes this is why everyone should /my/ ECS |
19:37:40 | ldlework | Which uses Nim metaprogramming to the N-th degree to make for the absolute finest end-user ECS api in existene. |
19:37:56 | zachcarter | I’d rather an ECS be built on top of a framework |
19:37:58 | zachcarter | than a framework incorporating one |
19:38:04 | zachcarter | that way the ECS is totally optional |
19:38:16 | ldlework | Which draws into question your actual experience with ECS. |
19:38:31 | zachcarter | okay |
19:38:56 | zachcarter | I tend to build roguelike games, ECS get in my way generally, I’ll just leave it at that |
19:39:16 | ldlework | I built my ECS to build a Cataclysm clone so.. |
19:39:19 | zachcarter | you can hold whatever opinion on ECS’s you want to |
19:39:27 | ldlework | Thanks for the permission? lol |
19:39:49 | zachcarter | but that’s not going to influence whether I incorproate an ECS into anything I build |
19:40:08 | ldlework | Yeah, doing what you want goes both ways. So we've stated the obvious. |
19:40:20 | zachcarter | I generally don’t like talking to you |
19:40:27 | zachcarter | just getting that out there |
19:40:45 | zachcarter | you’re extremely argumentative and when I state an opinion you take it as a personal attack and then start the insult train |
19:40:47 | ldlework | Oh should I around telling people how unpleasant they are to talk to/ |
19:40:52 | ldlework | Is that how one becomes likable? |
19:41:19 | ldlework | Should I conflate open discourse for advice and then battle against that imaginary advice? |
19:41:39 | ldlework | Jesus. |
19:41:42 | zachcarter | Jesus is right |
19:41:58 | ldlework | I said something draws into question your experience with a thing. |
19:42:04 | zachcarter | I think maybe if you want your ECS in framework so badly you should build one yourseflf |
19:42:08 | ldlework | If that's a personal attack to you, then you must have a bad time a lot of the time. |
19:42:16 | * | rokups quit (Quit: Connection closed for inactivity) |
19:42:17 | ldlework | It says nothing about your character or personhood. |
19:42:18 | zachcarter | lately only when talking with you |
19:42:20 | ldlework | On the otherhand |
19:42:23 | ldlework | That's exactly what you're doing to me |
19:42:29 | ldlework | Be shocked that I'm not convinced. |
19:42:46 | ldlework | Since we never talk to each other basically ever. I don't even know who you are. |
19:43:12 | zachcarter | We have chatted in this channel previously |
19:43:17 | ldlework | lately? |
19:43:23 | zachcarter | with pretty much the same outcome |
19:43:25 | ldlework | is lately a time so long that one forgets who the other is? |
19:43:26 | zachcarter | in the past two weeks |
19:43:29 | zachcarter | that’s on you |
19:43:30 | ldlework | Oh you're just hyperbolizing |
19:43:41 | ldlework | So that you can justify your personal attacks |
19:43:51 | zachcarter | no I can remember the specifi conversation |
19:43:53 | ldlework | Hypocrisy and hyperbolization, good partners. |
19:43:55 | zachcarter | it was about Nim and C |
19:44:02 | zachcarter | and how one is influenced by the other |
19:44:07 | ldlework | zachcarter: have I attacked your personhood or character? |
19:44:14 | ldlework | Have you? |
19:44:18 | ldlework | Its simple arithmatic. |
19:44:43 | zachcarter | again, I generally don’t enjoy speaking to you so I’m going to refrain from doing so in the future |
19:44:44 | ldlework | Lets engage in more hyperbolie and hypocrisy so you can leave this interaction feeling good about yourself. |
19:45:07 | ldlework | Remember you get to do what you want. |
19:45:14 | ldlework | So telling us is just more virtue signaling and personal insulting. |
19:45:24 | ldlework | You're so full of character, I have a lot to learn. |
19:46:01 | * | Matthias247 joined #nim |
19:46:56 | zachcarter | I recommend you just stop being a dick |
19:47:01 | zachcarter | it would go a long way |
19:47:10 | zachcarter | and I’ll leave it at that |
19:47:28 | ldlework | Drawing into your experience isn't being a dick |
19:47:34 | ldlework | drawing into someone's personhood and calling them a dick is |
19:47:42 | ldlework | Its pretty simple. |
19:47:55 | zachcarter | yes you can keep repeating the same three sentences over and over |
19:47:57 | ldlework | I'll continue to make statements like "that tells me you don't know much about that" and not "You're a dick" |
19:48:01 | zachcarter | you’re still acting like a dick |
19:48:16 | ldlework | I think we ontologically disagree what that means. |
19:48:19 | zachcarter | if you want to talk about ECS’s and what makes them good or bad that’s fine |
19:48:24 | ldlework | So you can go ahead and do that thing |
19:48:27 | ldlework | Where you made a big deal |
19:48:29 | ldlework | about not talking to me |
19:48:38 | ldlework | that would actually cause yout to cease personally insulting me |
19:48:42 | ldlework | because you're insecure |
19:48:45 | zachcarter | lmao |
19:48:46 | ldlework | about your experience with ecs |
19:49:01 | ldlework | is that a personal attack? |
19:49:06 | ldlework | to refer to the way you've blown up |
19:49:14 | ldlework | regarding my commentary about your experience with ECS? |
19:49:23 | ldlework | my one line |
19:49:27 | zachcarter | First of all, please stop using enter as punctuation it makes speaking with you impossible |
19:49:31 | ldlework | compared to your rant about how I'm a bad person? |
19:49:52 | ldlework | I think I'll stick with my moral philosophy, I think yours is poor and self-refuting. |
19:50:27 | ldlework | 19:48 zachcarter │ if you want to talk about ECS’s and what makes them good or bad that’s fine |
19:50:31 | zachcarter | rght |
19:50:36 | zachcarter | right |
19:50:37 | ldlework | you should take your own advice |
19:50:44 | zachcarter | I was talking about that |
19:51:04 | ldlework | really it seems addressed to me |
19:51:07 | ldlework | strange. |
19:51:28 | zachcarter | zachcarter: I don’t like ECS |
19:51:29 | zachcarter | [3:36pm] zachcarter: the only decent ECS I’ve come across is : https://github.com/slide-rs/specs |
19:51:30 | zachcarter | [3:37pm] zachcarter: ECS tends to overly complicate game code with little benefit |
19:51:32 | zachcarter | [3:37pm] ldlework: Yes this is why everyone should /my/ ECS |
19:51:33 | zachcarter | [3:37pm] ldlework: Which uses Nim metaprogramming to the N-th degree to make for the absolute finest end-user ECS api in existene. |
19:51:35 | zachcarter | [3:37pm] zachcarter: I’d rather an ECS be built on top of a framework |
19:51:36 | zachcarter | [3:37pm] zachcarter: than a framework incorporating one |
19:51:37 | zachcarter | [3:38pm] zachcarter: that way the ECS is totally optional |
19:51:38 | zachcarter | [3:38pm] |
19:51:42 | zachcarter | I guess I wasn’t talking about ECS’s I was just insulting you |
19:51:49 | ldlework | Oh yes because we're all idiots |
19:51:51 | ldlework | with short memories |
19:51:56 | ldlework | and forget how you changed that topic |
19:51:59 | ldlework | to how horrible of a person I am |
19:52:04 | * | Varriount|Phone quit (Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )) |
19:52:07 | ldlework | that justifies your behavior |
19:52:26 | def- | i think you can have your personal conversations in #nim-offtopic or PM. This doesn't look very nim related to me |
19:53:22 | * | bjz joined #nim |
19:53:27 | ldlework | It does look like Frag is quite nice |
19:53:34 | zachcarter | whatever man |
19:53:36 | zachcarter | we’re good |
19:53:38 | zachcarter | :D |
19:53:51 | ldlework | Looks like it is no toy and well thought out |
19:54:09 | PMunch | What's Frag? |
19:54:27 | dom96 | zachcarter: fixed. A user that posted in the thread was moderated. |
19:54:32 | ldlework | https://github.com/fragworks/frag |
19:54:38 | def- | PMunch: https://forum.nim-lang.org/t/2886 |
19:54:40 | zachcarter | dom96: ah interesting |
19:54:49 | ldlework | dom96: did you fix the data or the code :D |
19:55:00 | dom96 | The data. |
19:55:27 | PMunch | Hmm, interesting |
19:56:08 | ldlework | the most interesting part is https://github.com/bkaradzic/bgfx |
19:56:32 | dom96 | God damn, why does iOS 10 ignore user-scalable :\ |
19:57:38 | PMunch | I'm up to 18k views now on the GUI post I did :) |
19:58:21 | PMunch | Nim posts are definitely the most popular on my DevLog |
19:58:32 | ldlework | PMunch: oh can I get a link? |
19:58:54 | PMunch | Sure: http://serv.peterme.net/devlog/cross-platform-guis-and-nim-macros.html |
19:59:42 | ldlework | PMunch: 'Exit LibUI' |
19:59:45 | ldlework | I snorted |
20:00:03 | PMunch | Haha, it's written to mimic Novaks post |
20:00:16 | PMunch | Which it is written as a response to |
20:01:58 | Xe | Araq: if i wanted to just send the nim dev team money without any conditions or bountysource whatever attached to it, how should I? |
20:02:23 | ldlework | PMunch: neat so you wrote a DSL for wx? |
20:02:28 | PMunch | Yup |
20:02:35 | ldlework | haha that's useful! |
20:03:18 | PMunch | Yeah, it's pretty neat |
20:03:27 | PMunch | https://github.com/PMunch/wxnim/tree/master/examples/genuimacro |
20:03:30 | PMunch | There are some examples |
20:04:28 | ldlework | thanks for writing that |
20:04:59 | PMunch | No problem :) GUIs are something which have always bothered me, now it's dead simple |
20:05:14 | ldlework | do we have the equivalent of an "urwid" library for Nim? |
20:05:23 | ldlework | which is basically windowing ontop of curses |
20:05:28 | Tiberium | last step would be to create something like "microsoft blend" to generate code like PMunch's examples |
20:05:42 | PMunch | Microsoft blend? |
20:05:52 | Tiberium | yeah |
20:05:58 | Tiberium | it's like delphi gui designer |
20:06:00 | Tiberium | but for C# |
20:06:05 | Tiberium | integrated into Visual Studio |
20:06:22 | PMunch | Ah, like Glade for Gtk |
20:06:25 | Tiberium | yeah |
20:06:38 | Tiberium | https://blogs.msdn.microsoft.com/visualstudio/2014/11/13/blend-for-visual-studio-2015-preview/ |
20:07:18 | ldlework | I remember when I made a packet sniffer in VB when I was like 12 and I spent weeks implementing like every single UI event handler and made it do something |
20:07:26 | ldlework | it was like using a hacker tool from the movies |
20:07:37 | ldlework | even though it was just a simple windows form ^_^ |
20:07:59 | zachcarter | maybe someone could wrap : https://github.com/nsf/termbox ? |
20:08:11 | zachcarter | or nsf could provide us with a nim port :P |
20:08:22 | def- | zachcarter: https://github.com/fowlmouth/nim-termbox |
20:08:28 | Tiberium | wow |
20:08:28 | ldlework | neat |
20:08:29 | Tiberium | that was fast |
20:08:31 | Tiberium | xD |
20:08:33 | ldlework | haha |
20:08:51 | zachcarter | oh |
20:08:52 | zachcarter | there you go |
20:08:54 | ldlework | I wonder how termbox compares to urwid |
20:08:57 | zachcarter | no clue |
20:08:57 | def- | and i did that once, but I guess it needs some work again: https://github.com/def-/nim-termbox/commit/9c6c1f8814cce301e30bff014c28e310cf90de8b |
20:09:08 | Tiberium | urwid is python, no? |
20:09:12 | Tiberium | http://urwid.org/ |
20:09:17 | Tiberium | CUI library for Python |
20:09:24 | ldlework | yep |
20:09:29 | ldlework | I've used it for a half dozen tools |
20:10:46 | ldlework | integrates nicely with twisted |
20:12:19 | * | PMunch quit (Quit: leaving) |
20:14:49 | Tiberium | how can I implement template like a block, so inside this block I can just write strings separated by newline? |
20:15:21 | Tiberium | https://gist.github.com/TiberiumN/86c9cec447d700ccedb2cc653ae5b633 |
20:15:27 | Tiberium | or I don't understand template system? |
20:15:54 | * | xet7 quit (Quit: Leaving) |
20:16:06 | ldlework | Probably easier with a macro |
20:16:19 | Tiberium | ldlework, how? |
20:16:21 | ldlework | since you'd just iterate over the varargs or whatever nim calls it |
20:16:24 | Tiberium | yeah |
20:16:25 | ldlework | and make a new string node |
20:16:27 | ldlework | and return it |
20:16:34 | ldlework | like three or four lines probably in my head |
20:17:37 | ldlework | Is there a nim playground yet? |
20:18:04 | zachcarter | glot.io |
20:18:05 | ldlework | Tiberium: what you working towards |
20:18:07 | zachcarter | https://glot.io/new/nim |
20:18:09 | ldlework | thanks |
20:18:19 | ldlework | ooh that has a lot of languages |
20:18:29 | zachcarter | yeah it’s nice |
20:18:39 | Tiberium | ldlework, I have something like this: https://gist.github.com/TiberiumN/fc317a8b0caad440fe35e1637351ad32 and I will eventually add new lines to it |
20:18:49 | Tiberium | so I want to remove call on every line for better code :) |
20:19:57 | ldlework | Tiberium: you should make the macro take a style object as the first param |
20:20:06 | ldlework | then you should make the style objects stateful and return new style objects |
20:20:11 | ldlework | so you can chain properties together |
20:20:13 | ldlework | like |
20:20:27 | ldlework | a = font('somefont') |
20:20:31 | ldlework | b = a.red() |
20:20:33 | ldlework | etc |
20:21:41 | Tiberium | ldlework, i mean I just want to translate block like "log:\n "some string"\n "some string" " to log("some another string")\n log("some another string") |
20:22:10 | ldlework | Sure, then make your style object callable too, if Nim can do that :D |
20:22:25 | ldlework | but yeah I see what you're getting at |
20:22:56 | ldlework | I feel like my Nim is fading, I can't remember what it does anymore |
20:23:08 | ldlework | I learned too much C# and Golang since I last used it heavily. |
20:23:14 | ldlework | And I bet Nim changed some |
20:23:25 | ldlework | anyway I failed to write the macro you're on your own! |
20:23:27 | ldlework | :D |
20:24:24 | Tiberium | ok :) |
20:26:30 | Tiberium | OK, I'll do it tomorrow |
20:30:55 | * | Tiberium quit (Remote host closed the connection) |
20:34:15 | * | bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
20:40:45 | libman | stisa: did you see https://forum.nim-lang.org/t/2891? :) |
20:49:39 | * | xet7 joined #nim |
20:54:26 | * | Vladar quit (Quit: Leaving) |
21:01:29 | FromGitter | <TiberiumPY> I would be interested in this too |
21:02:22 | FromGitter | <TiberiumPY> Because for now I use GNUROOT (I don't have root on my phone), and this app is slow |
21:05:55 | FromGitter | <TiberiumPY> I want to use all power of my phone :) |
21:10:53 | * | Trustable quit (Remote host closed the connection) |
21:12:24 | * | PMunch joined #nim |
21:16:22 | * | rauss quit (Quit: WeeChat 1.7) |
21:17:46 | * | peted joined #nim |
21:21:21 | FromGitter | <stisa> libman : nope, I'll have a try at it tomorrow-ish. I kind of remember some changes I had to make to get it to work, I might try to get a termux package going if I get it to work |
21:24:21 | libman | Fixing barriers to cross-compiling and deploying software written in Nim to Android (ex. the getTempDir issue) should be a priority. Getting Nim itself running on them low-power platforms: less of a priority. |
21:25:32 | libman | There will soon be computers the size of a bloodcell. But that doesn't mean one should compile on them. |
21:38:08 | * | askatasuna quit (Ping timeout: 240 seconds) |
21:39:58 | * | bjz joined #nim |
21:42:21 | cheatfate | libman, you are too optimistic... |
21:42:33 | cheatfate | i mean computers the size of bloodcell |
21:43:00 | cheatfate | bloodcell don't have enough ram and storage for modern programmers/developers |
21:43:03 | libman | I'm a lunatic actually. ;) |
21:45:14 | cheatfate | so we need to wait for bloodcell servers cloud... |
21:48:56 | * | askatasuna joined #nim |
21:49:55 | PMunch | cheatfate, there was actually some recent research into coding binary data onto DNA |
21:50:27 | PMunch | So if you made a "computer" protein that ran on this DNA it could potentially be in the bloodcell size realm |
21:51:01 | cheatfate | DNA is a future storage space, nothing more |
21:51:18 | * | vlad1777d quit (Remote host closed the connection) |
21:52:20 | libman | My point was that there are growing trends of compiler intelligence as well as CPU power inequality among computers, and both are a good thing. But that means not all computers we want to target should be used for compiling. |
21:52:24 | FromGitter | <Varriount> Xe: I would just use BountySource |
21:52:43 | FromGitter | <Varriount> Xe: I have a monthly donation set up for Nim. :D |
21:53:30 | FromGitter | <Varriount> libman: I have a computer in me. |
21:54:20 | FromGitter | <Varriount> It's composed of neurons, and uses electrical signals and protein signalling to regulate a bioregulatory feedback system |
21:58:27 | * | libman has a thing for tiny robots that can swim / crawl around inside the human body and clean up problems. |
21:59:57 | libman | Computational power inequality between smallest computers and mainframes used to be within 1-2 orders of magnitude, but it grew ever since on both ends. |
22:00:02 | * | bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
22:11:36 | * | ludocode quit (Disconnected by services) |
22:11:37 | * | ludocode_ joined #nim |
22:16:09 | * | nsf quit (Quit: WeeChat 1.7) |
22:21:34 | * | elrood quit (Quit: Leaving) |
22:31:04 | * | peted quit (Ping timeout: 246 seconds) |
22:34:32 | * | peted joined #nim |
22:41:15 | * | Matthias247 quit (Read error: Connection reset by peer) |
22:59:17 | * | yglukhov quit (Remote host closed the connection) |
22:59:35 | * | yglukhov joined #nim |
23:00:08 | * | yglukhov quit (Remote host closed the connection) |
23:54:57 | * | chemist69 quit (Ping timeout: 264 seconds) |
23:57:40 | * | chemist69 joined #nim |