00:02:59 | * | bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
00:17:00 | * | brson quit (Ping timeout: 260 seconds) |
00:36:10 | * | derlafff quit (Remote host closed the connection) |
00:43:12 | * | derlafff joined #nim |
00:47:46 | libman | Added Nim to https://en.wikipedia.org/wiki/Visual_Studio_Code#Features |
00:49:31 | * | yglukhov joined #nim |
00:50:20 | libman | Maybe if the "skins" possibility was more widely advertised (hint hint Araq's blog), some devs who currently don't like Nim's syntax would jump in and make their own... |
00:52:37 | * | ftsf_ quit (Ping timeout: 240 seconds) |
00:54:08 | * | libman quit (Remote host closed the connection) |
00:54:08 | * | yglukhov quit (Ping timeout: 250 seconds) |
00:58:24 | * | saml_ joined #nim |
01:05:00 | * | ftsf_ joined #nim |
01:26:38 | * | chemist69 quit (Ping timeout: 250 seconds) |
01:39:06 | * | chemist69 joined #nim |
01:43:40 | * | kulelu88 quit (Quit: Leaving) |
01:45:16 | * | enthus1ast quit (Ping timeout: 250 seconds) |
02:08:58 | * | saml_ quit (Quit: Leaving) |
02:51:04 | * | yglukhov joined #nim |
02:55:17 | * | yglukhov quit (Ping timeout: 240 seconds) |
03:00:30 | * | Snircle quit (Quit: Textual IRC Client: www.textualapp.com) |
04:23:43 | * | qwertfisch quit (*.net *.split) |
04:23:51 | * | qwertfisch joined #nim |
04:45:41 | * | chemist69 quit (Ping timeout: 260 seconds) |
04:47:46 | * | chemist69 joined #nim |
04:52:32 | * | yglukhov joined #nim |
04:53:13 | * | cheatfate_ joined #nim |
04:56:22 | * | cheatfate quit (Ping timeout: 250 seconds) |
04:56:53 | * | yglukhov quit (Ping timeout: 260 seconds) |
05:05:12 | * | ARCADIVS quit (Quit: ARCADIVS) |
05:06:25 | * | chrisheller quit (Remote host closed the connection) |
05:06:42 | * | chrisheller joined #nim |
06:13:39 | * | ftsf_ quit (Quit: :q!) |
06:14:07 | * | ftsf_ joined #nim |
06:20:26 | * | gangstacat quit (Ping timeout: 250 seconds) |
06:23:40 | * | gangstacat joined #nim |
06:32:51 | * | nsf joined #nim |
06:34:18 | * | d10n quit (Ping timeout: 250 seconds) |
06:37:54 | * | gokr joined #nim |
06:39:44 | * | d10n joined #nim |
06:39:44 | * | d10n quit (Changing host) |
06:39:44 | * | d10n joined #nim |
06:55:46 | * | Arrrr joined #nim |
06:57:48 | * | bjz joined #nim |
07:14:21 | * | irrequietus joined #nim |
07:16:44 | * | bjz quit (Read error: Connection reset by peer) |
07:24:31 | * | Andris_zbx joined #nim |
07:25:33 | * | brechtm_ quit (Remote host closed the connection) |
07:26:10 | * | brechtm joined #nim |
07:28:04 | * | filcuc joined #nim |
07:38:21 | * | ftsf_ quit (Quit: :q!) |
07:41:52 | * | bjz joined #nim |
07:45:26 | * | fredrik92 joined #nim |
07:54:07 | * | Trustable joined #nim |
07:57:21 | * | PMunch joined #nim |
08:13:02 | * | pafmaf joined #nim |
08:24:29 | * | yglukhov joined #nim |
08:26:59 | * | yglukhov quit (Remote host closed the connection) |
08:27:46 | * | yglukhov joined #nim |
08:28:28 | * | irrequietus quit (Ping timeout: 260 seconds) |
08:34:59 | * | GustavoLapasta joined #nim |
08:36:41 | * | regtools_ joined #nim |
08:38:14 | * | enthus1ast joined #nim |
08:39:58 | * | zxtx joined #nim |
08:39:58 | * | regtools_ quit (Client Quit) |
08:40:05 | Calinou | <gokr> There are tons of new neat site generators though - so Octopress is not something I ... particularly recommend (although it works fine for me). |
08:40:10 | * | regtools_ joined #nim |
08:40:24 | Calinou | I haven't found any static site generator, other than Jekyll, that is not "Hello! I am awesome, but completely undocumented" |
08:40:29 | Calinou | (Metalsmith) |
08:40:39 | Calinou | and Hexo is overkill for simple sites, and has known performance issues since a while |
08:40:41 | gokr | Hehe, well, I haven't played with many. |
08:40:45 | Calinou | I haven't tried Hugo yet |
08:40:51 | Calinou | it seems to be the cool thing today |
08:41:22 | * | PMunch quit (*.net *.split) |
08:41:23 | * | derlafff quit (*.net *.split) |
08:41:23 | * | regtools quit (*.net *.split) |
08:41:23 | * | baabelfish quit (*.net *.split) |
08:41:23 | * | zxtx_ quit (*.net *.split) |
08:41:23 | * | zielmicha quit (*.net *.split) |
08:41:24 | * | OnO quit (*.net *.split) |
08:41:25 | * | daekano quit (*.net *.split) |
08:41:25 | * | nim-buildbot quit (*.net *.split) |
08:41:25 | * | FromGitter quit (*.net *.split) |
08:42:05 | * | regtools_ is now known as regtools |
08:49:52 | * | PMunch joined #nim |
08:49:52 | * | baabelfish joined #nim |
08:49:52 | * | derlafff joined #nim |
08:49:52 | * | zielmicha joined #nim |
08:49:52 | * | OnO joined #nim |
08:49:52 | * | daekano joined #nim |
08:49:52 | * | FromGitter joined #nim |
08:52:30 | hohlerde | Calinou: I played a bit with Hugo, it works quite well and is also well documented. example: typemismatch.org |
08:52:31 | * | irrequietus joined #nim |
08:52:38 | * | irrequietus quit (Changing host) |
08:52:38 | * | irrequietus joined #nim |
08:52:45 | Calinou | yeah, also is very fast |
08:52:54 | Calinou | I might migrate my personal site to it, currently using Jekyll |
08:53:28 | hohlerde | Calinou: the one thing that made me trying out hugo was simplicity: one executable, no installation necessary. |
08:53:44 | Calinou | yeah, installing Jekyll on Windows is a pain |
08:53:51 | Calinou | 1) install Ruby through RubyInstaller (easy) |
08:53:57 | Calinou | 2) install Ruby devkit (not that easy) |
08:54:07 | Calinou | 3) install Jekyll gem, and wdm to prevent a warning when running Jekyll (easy) |
08:54:11 | Calinou | not very hard, but lengthy |
08:54:45 | hohlerde | hehe, whenever I see that a tool or application uses ruby I normally skip it and only use it, if there are no good alternatives. |
08:55:04 | euantor | Yes, Hugo's simplicity is its biggest bonus I believe |
08:55:12 | euantor | It just works from my experience |
08:55:12 | Calinou | is it i18n-friendly? |
08:55:20 | Calinou | I'd like to have my blog only in English, but main site should be available in French too |
08:55:28 | Calinou | Jekyll is not particularly i18n-friendly |
08:56:07 | hohlerde | calinou: kind of. as far as I've read they have a section about multi language support in their documentation. however, I've not used multi language features so far. |
08:57:02 | hohlerde | calinou: https://gohugo.io/extras/aliases#multilingual-example |
08:57:16 | Calinou | nice! |
08:57:18 | Calinou | https://gohugo.io/content/multilingual/ |
08:58:55 | gokr | Calinou: Why would you install anything on Windows? :) |
08:58:58 | Araq | libman: alright, that's a good idea |
08:59:15 | Calinou | there, installed Hugo and added it to PATH |
08:59:25 | Calinou | gokr: have to use either Windows or macOS at university :( |
08:59:35 | gokr | Aha |
08:59:39 | Araq | enthus1ast: well, what does your config look like? |
09:00:40 | * | bjz quit (Ping timeout: 260 seconds) |
09:01:10 | * | bjz joined #nim |
09:09:28 | * | enthus1ast quit (Ping timeout: 260 seconds) |
09:16:18 | * | zaquest quit (Ping timeout: 258 seconds) |
09:17:37 | Arrrr | I have compiled devel and i get this misterious message: "could not import: RegGetValueW" |
09:18:22 | Araq | Arrrr: 'koch' now depends on registry.nim |
09:18:36 | Araq | are you on Windows XP? |
09:19:31 | Arrrr | :/ |
09:21:54 | Araq | Arrrr: I suppose this means 'koch finish' will be its own program :-) |
09:22:12 | * | desophos quit (Read error: Connection reset by peer) |
09:22:17 | * | eizua joined #nim |
09:22:23 | * | zaquest joined #nim |
09:22:57 | * | PMunch quit (Quit: leaving) |
09:23:59 | Araq | cool we have an XP tester here :-) |
09:24:00 | * | Arrrr quit (Ping timeout: 260 seconds) |
09:25:15 | eizua | Hello, does the 'pegs' library support lookaheads (positive/negative)? I'm reading the docs, but there's no mention of it anywhere |
09:25:44 | * | elrood joined #nim |
09:26:13 | * | Arrrr joined #nim |
09:27:04 | Araq | it does support positive lookahead |
09:27:35 | Arrrr | This registry thing shouldn't be on osprocs? |
09:27:40 | eizua | I should probably look for a Nim REPL to test this on |
09:27:47 | Araq | &E And predicate: Indicate success if expression E matches the text ahead; otherwise indicate failure. Do not consume any text. |
09:28:25 | Araq | Arrrr: only 'koch.nim' is affected |
09:28:32 | eizua | And !E is the opposite, right? Why didn't I see this earlier? :D |
09:28:41 | Arrrr | But is useful, i think. |
09:28:44 | Araq | registry.nim is new and only used by koch |
09:29:01 | eizua | Thanks, Araq |
09:29:17 | Araq | and it's only used to smoothen the installation on Windows, I will put it into its own program |
09:29:41 | Araq | this program then won't run on XP or you can help and patch it |
09:31:07 | Arrrr | Ok, i can try it and tell you. |
09:40:03 | cheatfate_ | Araq, why not use ReqQueryValue? |
09:42:14 | * | filcuc|2 joined #nim |
09:44:58 | * | filcuc quit (Ping timeout: 250 seconds) |
09:46:51 | jh32 | hi |
09:46:52 | Araq | dunno |
09:48:03 | jh32 | any ideas why in http://flpsed.org/tmp/test_static.txt bigger() compiles, but bigger2() doesn't? |
09:50:21 | jh32 | shouldn't both expressions be computable at compile time? |
09:55:21 | Araq | jh32: yup, report it properly please |
10:24:31 | * | Demon_Fox joined #nim |
10:51:08 | * | GustavoLapasta quit (Read error: Connection reset by peer) |
10:59:15 | * | derlafff quit (Remote host closed the connection) |
10:59:23 | * | derlafff joined #nim |
11:02:01 | * | Snircle joined #nim |
11:07:02 | * | vonh quit (Ping timeout: 268 seconds) |
11:16:13 | * | brechtm_ joined #nim |
11:16:56 | * | pie_ joined #nim |
11:19:33 | * | brechtm quit (Ping timeout: 260 seconds) |
11:24:42 | * | pie_ quit (Changing host) |
11:24:42 | * | pie_ joined #nim |
11:32:51 | * | enthus1ast joined #nim |
11:33:02 | * | vonh joined #nim |
11:37:40 | enthus1ast | Araq, i've pulled the dev branch, then compiled koch, then tried koch finish. So the config should be the actual devel one. |
11:38:14 | Araq | but the koch devel does have this line. I think. |
11:38:15 | enthus1ast | but when i look on github the line is like you except |
11:38:29 | enthus1ast | so don't know : ) |
11:39:04 | Araq | you need to run 'koch finish' in nim's dir |
11:39:08 | Araq | did you do that? |
11:39:11 | enthus1ast | jep done that |
11:39:48 | * | vonh quit (Ping timeout: 260 seconds) |
11:40:21 | enthus1ast | maybe its just noise |
11:42:47 | Araq | no, it is a bug if it cannot update the config |
11:42:53 | Araq | you requested for this update, right? |
11:46:07 | * | vonh joined #nim |
11:47:14 | enthus1ast | nope |
11:47:26 | enthus1ast | but i'll try to clone the repo and try it again |
11:47:35 | * | yglukhov_ joined #nim |
11:47:48 | enthus1ast | the config on github looks different than mine but don't know why |
11:50:04 | * | yglukhov quit (Ping timeout: 260 seconds) |
11:50:53 | * | brechtm joined #nim |
11:52:24 | * | FuntDobra quit (Read error: Connection reset by peer) |
11:54:17 | * | brechtm_ quit (Ping timeout: 240 seconds) |
11:54:20 | * | FuntDobra joined #nim |
12:04:06 | * | Arrrr quit (Quit: WeeChat 1.5) |
12:17:53 | * | FuntDobra quit (Read error: Connection reset by peer) |
12:19:07 | * | FuntDobra joined #nim |
12:24:28 | enthus1ast | Araq, cloned freshly, compiled nim, compiled koch, patching nim.cfg worked |
12:24:30 | enthus1ast | but |
12:25:13 | enthus1ast | now "bin\makelink.exe" is not found |
12:27:24 | enthus1ast | and also no trace of the source in the repo of makelink.nim or similar |
12:27:53 | enthus1ast | no trace of the source of makelink.nim |
12:35:02 | enthus1ast | Calinou i've made some nice static sites with frozen flask (warning python based) |
12:35:38 | enthus1ast | its mainly a "crawler" over your flask based website. |
12:44:30 | enthus1ast | maybe we can build something like this over jester |
12:44:46 | enthus1ast | or let wget do it |
13:00:37 | Araq | enthus1ast: well makelink.exe is in the upcoming installer/zip package |
13:01:03 | Araq | nothing I can do about that, the git nazis think binaries in a git repo are from hell |
13:11:37 | * | FuntDobra quit (Read error: Connection reset by peer) |
13:12:14 | * | FuntDobra joined #nim |
13:13:13 | enthus1ast | Araq theres a CreateSymbolicLink function in Kernel32.dll btw |
13:13:49 | Araq | enthus1ast: a .lnk file is not a symbolic link |
13:14:04 | Araq | plus it requires admin rights, not good |
13:16:35 | flyx | would a PowerShell script work? |
13:17:41 | * | Kaini left #nim ("http://quassel-irc.org - Chat comfortably. Anywhere.") |
13:19:53 | * | MyMind joined #nim |
13:22:04 | Araq | flyx: that would be a cool fallback |
13:22:15 | enthus1ast | ps and cool ;) |
13:22:23 | flyx | this post indicates it is possible: http://www.adminarsenal.com/admin-arsenal-blog/pdq-deploy-and-powershell/ |
13:25:44 | enthus1ast | then one can also talk directly to wscript/cscript. This should even work on winxp |
13:28:34 | flyx | yes, there's even a microsoft article about it: https://support.microsoft.com/en-us/kb/244677 |
13:29:26 | * | FuntDobra quit (Read error: Connection reset by peer) |
13:31:06 | * | FuntDobra joined #nim |
13:31:12 | flyx | and here's someone who used that approach: http://superuser.com/a/455383/269896 |
13:31:44 | flyx | this seems to work even on Windows 95 |
13:33:59 | enthus1ast | and there is the cpp code http://stackoverflow.com/questions/3906974/how-to-programmatically-create-a-shortcut-using-win32 |
13:36:20 | enthus1ast | but i have to admit, never played with com before, had always a little hackisch/rubbish smell to me ... |
13:42:23 | * | ARCADIVS joined #nim |
14:00:10 | * | NhanH__ joined #nim |
14:03:03 | * | NhanH__ is now known as NhanH |
14:06:36 | NhanH | after installing a package from nimble, do I have to specify a path or anything for the compiler? |
14:06:53 | NhanH | I installed zip, and `import zlib` or `import zip` both throws error |
14:16:45 | * | PMunch joined #nim |
14:17:33 | enthus1ast | whats the error? |
14:18:45 | NhanH | "cannot open 'zip'" etc. |
14:18:47 | NhanH | the usual one |
14:19:17 | * | ZMatt2 joined #nim |
14:21:09 | * | bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
14:23:51 | FromGitter | <dom96> NhanH: ``import zip/zlib`` |
14:24:48 | NhanH | dom96: that works, thanks! |
14:24:54 | * | gangstacat quit (Ping timeout: 250 seconds) |
14:26:27 | * | gangstacat joined #nim |
14:44:36 | * | pie_ quit (Remote host closed the connection) |
14:44:49 | * | planhths joined #nim |
15:05:53 | * | nsf quit (Quit: WeeChat 1.5) |
15:09:57 | * | Demon_Fox quit (Quit: Leaving) |
15:22:56 | * | brechtm quit (Read error: Connection reset by peer) |
15:23:09 | UNIcodeX | Calinou, don't be put off by Flask being Python. It's plenty fast for my needs. I've made a couple production sites with it. One for a client and one for the College I work for, which is still in development. Armin Ronacher (works at JetBrains now) is the guy behind it. but... I'm biased. I didn't like Django or Pyramid. |
15:23:13 | * | brechtm joined #nim |
15:29:44 | * | gokr quit (Ping timeout: 268 seconds) |
15:31:11 | * | pregressive joined #nim |
15:33:05 | * | stisa joined #nim |
15:39:29 | * | Andris_zbx quit (Remote host closed the connection) |
15:40:45 | Calinou | UNIcodeX: yeah but how is Flask intended for static sites? |
15:40:55 | enthus1ast | flask itself not |
15:41:09 | enthus1ast | but frozen flask will crawl the site and build a static version from it |
15:42:02 | Calinou | sounds hacky |
15:42:09 | enthus1ast | if you've set som routes frozen flask will automatically follow these. |
15:42:13 | r4vi | it works well I use it for my blog |
15:42:45 | enthus1ast | if you somehow forge the urls from js or so then you have to create a url generator for it |
15:57:35 | * | filcuc|2 quit (Quit: KVIrc 4.9.2 Aria http://www.kvirc.net/) |
16:01:47 | * | PMunch quit (Quit: leaving) |
16:03:15 | * | brson joined #nim |
16:12:22 | * | pafmaf quit (Ping timeout: 250 seconds) |
16:18:50 | * | yglukhov joined #nim |
16:19:27 | * | MuHC-Leader joined #nim |
16:20:01 | * | MuHC-Leader left #nim (#nim) |
16:22:04 | * | yglukhov_ quit (Ping timeout: 260 seconds) |
16:23:21 | * | yglukhov quit (Ping timeout: 260 seconds) |
16:25:20 | UNIcodeX | Calinou, http://flask.pocoo.org/snippets/126/ |
16:26:13 | UNIcodeX | Calinou, https://nicolas.perriault.net/code/2012/dead-easy-yet-powerful-static-website-generator-with-flask/ |
16:28:57 | dom96 | Interesting. Didn't know Armin works at JetBrains. |
16:30:51 | * | pafmaf joined #nim |
16:42:22 | * | shodan45 quit (Quit: Konversation terminated!) |
16:43:06 | * | desophos joined #nim |
16:44:14 | * | brechtm_ joined #nim |
16:47:37 | * | brechtm quit (Ping timeout: 260 seconds) |
16:50:44 | * | Snircle quit (Quit: Textual IRC Client: www.textualapp.com) |
17:01:57 | * | enthus1ast quit (Ping timeout: 248 seconds) |
17:06:50 | * | yglukhov joined #nim |
17:11:25 | * | yglukhov quit (Ping timeout: 260 seconds) |
17:12:23 | NhanH | I'm playing around with the JS backend, let's say if I have a global `Foo` being defined outside of the nim code, is it possible to declare and use `Foo` inside the nim code somehow ? |
17:18:15 | * | pie_ joined #nim |
17:18:33 | * | pie_ quit (Changing host) |
17:18:33 | * | pie_ joined #nim |
17:22:12 | * | brechtm_ quit (Remote host closed the connection) |
17:22:41 | * | yglukhov joined #nim |
17:22:49 | * | brechtm joined #nim |
17:27:38 | stisa | NhanH: have a look at http://nim-lang.org/docs/backends.html#nim-code-calling-the-backend-javascript-invocation-example |
17:27:45 | * | MyMind quit (Ping timeout: 260 seconds) |
17:27:57 | NhanH | stisa: yeah I was reading that, but didn't see an example for var |
17:28:10 | NhanH | anyway thanks, I found the source of dom module and reading that solves the problem :-) |
17:32:03 | * | yglukhov quit (Remote host closed the connection) |
17:32:08 | * | irrequietus quit (Ping timeout: 260 seconds) |
17:40:06 | * | yglukhov joined #nim |
17:47:12 | * | stisa quit (Quit: Leaving) |
17:48:50 | UNIcodeX | dom96, https://talkpython.fm/episodes/show/13/flask-web-framework-and-much-much-more |
17:50:52 | UNIcodeX | Calinou, did you check out the nicholas.perriautl.net link? Static site generation (build) is built in to the core Flask lib |
17:51:11 | UNIcodeX | anyway. my 2 cents. lol |
17:54:39 | * | yglukhov quit (Remote host closed the connection) |
17:55:05 | * | gokr joined #nim |
17:55:47 | Calinou | UNIcodeX: still, a "pure static" site generator for me is plenty |
17:56:01 | UNIcodeX | fair enough |
17:58:41 | * | libman joined #nim |
18:01:34 | * | chemist69 quit (Ping timeout: 250 seconds) |
18:03:13 | * | eizua quit (Quit: Leaving) |
18:03:50 | * | chemist69 joined #nim |
18:08:11 | * | yglukhov joined #nim |
18:09:40 | * | brechtm_ joined #nim |
18:11:58 | * | brechtm quit (Ping timeout: 250 seconds) |
18:45:51 | * | irrequietus joined #nim |
18:48:06 | * | PMunch joined #nim |
18:51:50 | * | irrequietus quit (Ping timeout: 250 seconds) |
18:57:17 | * | brson quit (Ping timeout: 240 seconds) |
18:57:40 | * | nsf joined #nim |
18:59:30 | * | brson joined #nim |
19:03:04 | * | pie_ quit (Ping timeout: 260 seconds) |
19:03:47 | dom96 | hrm, could we modify algorithm.sorted to return 'auto' and therefore give us the type that we gave it originally instead of always a seq? |
19:04:46 | Araq | you cannot return an openarray... |
19:05:33 | dom96 | Yes, but I can return a array |
19:05:35 | dom96 | or a seq |
19:06:28 | dom96 | I mean, maybe this isn't a useful change |
19:06:54 | dom96 | The only reason I am considering it is because my book's technical proofer found it confusing that calling sorted on an array returns a seq |
19:08:42 | flyx | it would be cool if Nim supported openarray anywhere. but I can imagine that is a really hard thing to do. |
19:16:41 | * | irrequietus joined #nim |
19:23:44 | UNIcodeX | could someone take a look at this? trying to duplicate something from python in Nim to learn: https://bpaste.net/show/59186fb0068c |
19:26:05 | flyx | UNIcodeX: `..` does not work with floats |
19:27:45 | UNIcodeX | so. even if i use 10e9, that will still return a float? |
19:28:11 | Araq | 'e' notation is float, use 1_000_000_000 for a billion |
19:31:59 | UNIcodeX | ok. thanks. I'm still used to the flexibility of python... it lets you get a way with murder, so to speak. |
19:32:07 | UNIcodeX | i've corrected it to this: echo sum(lc[x | (x <- 0..10_000_000_000), int64]) |
19:32:14 | UNIcodeX | I now get out of memory. |
19:32:18 | UNIcodeX | but it compiles |
19:33:05 | dom96 | I really hope we can get something resembling Python's for comprehensions |
19:33:10 | * | kulelu88 joined #nim |
19:33:12 | dom96 | Those feel very bleh |
19:33:43 | UNIcodeX | dom96, they're not so bad. it's not the LC i'm having trouble with. It's how to get back what i'm needing without an overrun. |
19:34:05 | dom96 | UNIcodeX: what are you trying to do? |
19:34:25 | UNIcodeX | "echo sum(lc[x | (x <- 0..10_000_000_000), int64])" |
19:35:15 | UNIcodeX | purely academic |
19:35:22 | UNIcodeX | not sure what the real world application would be. |
19:35:43 | Araq | we have map and mapIt and fold, why do we need Python's comprehensions? |
19:37:12 | * | Snircle joined #nim |
19:37:12 | UNIcodeX | a special version of python developed by Ufora, called Pyfora, compiles to scalable code, which runs across multiple machines on all cores, vs CPython's one core a la GIL. Their provided example returns in 14 seconds vs 185 seconds. I was curious to see how long it would take Nim code to do it. |
19:38:20 | dom96 | Araq: because it will make Python coders fall in love with Nim |
19:39:12 | Araq | just use some stupid slogan instead "there is only way to do it" to make them fall in love |
19:39:31 | UNIcodeX | lc[x | (x <- 0..10)] is pretty readable to me once you understand that the "|" replaces "for" and the "<-" replaces "in" |
19:40:03 | UNIcodeX | And I use Python pretty much exclusively. |
19:40:59 | dom96 | yes, but the more I think about it the less idiomatic it is |
19:41:09 | UNIcodeX | but it is nice how simply wrapping in [] will yield a list and {} will yield a dictionary and () will yield a tuple |
19:41:15 | dom96 | Nim code should include keywords instead of punctuation |
19:41:30 | dom96 | this should also extend to for comprehensions |
19:43:28 | * | Demon_Fox joined #nim |
19:45:17 | UNIcodeX | any ideas on how to get "echo sum(lc[x | (x <- 0..1_000_000_000), int64])" to not return "out of memory"? |
19:48:02 | ldleworker | download more wam |
19:49:53 | UNIcodeX | lol |
19:50:12 | UNIcodeX | ldleworker, i meant a more efficient method. |
19:52:00 | UNIcodeX | figured it out. i just did this --> for i in 0..1_000_000_000: x += i and then echo'd the result |
19:53:32 | * | gokr quit (Ping timeout: 260 seconds) |
20:12:08 | * | pie_ joined #nim |
20:12:08 | * | pie_ quit (Changing host) |
20:12:08 | * | pie_ joined #nim |
20:15:02 | dom96 | yeah, pretty sure that the list comprehension allocates a huge sequence causing the OOM |
20:16:09 | * | Matthias247 joined #nim |
20:21:57 | * | gokr joined #nim |
20:38:37 | * | gokr quit (Ping timeout: 260 seconds) |
20:48:22 | * | gokr joined #nim |
20:50:07 | PMunch | Hmm, is there an equivalent to Pythons enumerate for loops with counters? |
20:50:22 | PMunch | ie: http://stackoverflow.com/questions/3162271/get-loop-count-inside-a-python-for-loop |
20:51:04 | Araq | PMunch: system.pairs but it's nota general solution |
20:53:57 | PMunch | Thanks :) |
21:07:54 | * | pie_ quit (Read error: Connection reset by peer) |
21:08:08 | * | pie_ joined #nim |
21:08:27 | * | pie_ quit (Changing host) |
21:08:27 | * | pie_ joined #nim |
21:11:49 | * | elrood quit (Quit: Leaving) |
21:12:39 | * | stisa joined #nim |
21:19:38 | * | tinAndi joined #nim |
21:22:22 | * | planhths quit (Quit: Konversation terminated!) |
21:48:35 | * | MyMind joined #nim |
21:50:44 | * | Pisuke joined #nim |
21:51:10 | * | bjz joined #nim |
21:51:39 | * | stisa quit (Quit: Leaving) |
21:51:42 | * | fredrik92 quit (Read error: Connection reset by peer) |
21:52:12 | * | xet7_ joined #nim |
21:53:45 | * | MyMind quit (Ping timeout: 260 seconds) |
21:55:17 | * | xet7 quit (Ping timeout: 248 seconds) |
21:56:10 | * | Demon_Fox quit (Quit: Leaving) |
22:02:42 | * | derlafff quit (Remote host closed the connection) |
22:02:50 | * | derlafff joined #nim |
22:09:44 | * | gokr quit (Ping timeout: 260 seconds) |
22:11:43 | * | tinAndi quit (Quit: ChatZilla 0.9.92 [Firefox 49.0.1/20160922113459]) |
22:24:26 | * | pregressive quit () |
22:28:26 | * | enthus1ast joined #nim |
22:32:39 | * | nsf quit (Quit: WeeChat 1.5) |
22:35:14 | * | pie_ quit (Ping timeout: 268 seconds) |
22:37:33 | * | pafmaf quit (Quit: Leaving) |
22:38:34 | * | Trustable quit (Remote host closed the connection) |
22:42:10 | * | PMunch quit (Quit: leaving) |
22:49:09 | * | bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
23:02:41 | * | yglukhov quit (Remote host closed the connection) |
23:23:17 | * | Matthias247 quit (Ping timeout: 248 seconds) |
23:23:48 | * | Matthias247 joined #nim |
23:36:13 | * | irrequietus quit () |
23:36:58 | * | M-Quora quit (Ping timeout: 258 seconds) |
23:36:58 | * | zielmicha[m] quit (Ping timeout: 258 seconds) |
23:38:40 | * | hohlerde quit (Ping timeout: 256 seconds) |
23:38:53 | * | TheManiac quit (Ping timeout: 258 seconds) |
23:38:53 | * | ehmry quit (Ping timeout: 258 seconds) |
23:46:46 | * | zielmicha[m] joined #nim |
23:54:45 | * | ehmry joined #nim |
23:54:45 | * | M-Quora joined #nim |
23:58:55 | * | zielmicha[m] quit (Ping timeout: 249 seconds) |
23:58:59 | * | TheManiac joined #nim |
23:59:07 | * | vonh quit (Read error: No route to host) |
23:59:28 | * | ehmry quit (Ping timeout: 261 seconds) |