00:01:28 | flaviu1 | Varriount: I speak american too, but that looks fine to me |
00:02:14 | Varriount | http://en.wikipedia.org/wiki/American_and_British_English_spelling_differences#-our.2C_-or |
00:32:59 | flaviu1 | filwit: https://nimrod-by-example.github.io/getting_started/ |
00:33:08 | flaviu1 | You got your checkmarks! |
00:33:30 | filwit | nice! |
00:33:37 | filwit | should be green tho, probably |
00:34:45 | flaviu1 | I'm not sure I like the way that looks |
00:34:46 | xenagi | ooo cool |
00:35:05 | flaviu1 | thanks xenagi |
00:35:31 | * | askatasuna quit (Quit: WeeChat 0.4.3) |
00:47:15 | Demos | I am watching Bjarne Stroustrup's lang.next keynote, makes me love nimrod :D |
00:47:37 | filwit | flaviu1: i adjusted some of your CSS colors: http://reign-studios.net/philipwitte/nimrod/NBE_screen.png |
00:47:58 | filwit | flaviu1: but i like your overall design |
00:48:07 | flaviu1 | filwit: I like that a lot. |
00:48:21 | Demos | anyone have throughs on any kind of "dynamic" typeclasses? Like being able to easly convert a typeclass to a bunch of indirect functions? |
00:48:39 | filwit | flaviu1: okay. I actually have to go somewhere really quick, but I'll be back in ~30mins and i'll give you the changes (they're minor) |
00:48:39 | flaviu1 | filwit: Can you gist the CSS? |
00:48:45 | flaviu1 | ok |
00:48:56 | filwit | bbl |
01:28:32 | filwit | k back, one sec tho |
01:30:11 | flaviu1 | Demos: The talk at http://channel9.msdn.com/Events/Lang-NEXT/Lang-NEXT-2014/Keynote is really interesting, he makes very good points |
01:31:07 | Demos | that is what I was talking about |
01:31:26 | flaviu1 | I know, but you posted the link in the unlogged #nimrod-offtopic |
01:31:47 | Demos | ah |
01:35:09 | filwit | well that's lame.. |
01:35:27 | flaviu1 | on c++: "there was no sugar daddy coming in with the money". Seems to apply here too |
01:35:32 | filwit | i closed the inspector (not the tab) and it lost my color changes |
01:35:38 | filwit | :\ |
01:35:45 | flaviu1 | really? that sucks |
01:35:52 | filwit | i'll just remake them from the image |
01:36:07 | flaviu1 | filwit: Can you make the font less thin? |
01:36:15 | filwit | yeah, it saved them (the website is still those colors, but the inspector doesn't remember them anymore |
01:36:48 | filwit | flaviu1: less thing how? you might need a different font |
01:37:06 | filwit | flaviu1: or you just mean bold? |
01:37:15 | filwit | thin* |
01:37:48 | flaviu1 | I mean the font is very thin and a bit more difficult to read |
01:38:13 | flaviu1 | I personally like the current fonts, they're thicker and easier to read |
01:38:44 | Demos | yeah, but on the other hand Bjarne was fairly effective at promoting the language. But I think our time will come, after we release 1.0 |
01:39:00 | Demos | heck it took python like a bazillion years to catch on |
01:43:26 | * | q66 quit (Quit: Leaving) |
01:43:27 | filwit | flaviu1: ah, you mean color wise (which is all i changed with the font, besides line spacing) |
01:44:08 | flaviu1 | Really? It feels a lot thinner |
01:52:19 | filwit | flaviu1: yeah, color theory :) contrast can convey's a bit of distance (spatially), so the closer the foreground color is to the background, the "further away" which is why your mind things it's thinner (don't quote me on that, word of mouth) |
01:53:37 | flaviu1 | do you have text antialising on? |
01:53:51 | filwit | idk.. KDE, Chromium |
01:53:55 | filwit | Arch Linux |
01:54:09 | flaviu1 | Its in the KDE settings somewhere |
01:54:24 | OrionPK | fowl how goes it |
01:54:37 | filwit | well i didn't change the text settings really (unless it's part of the theme, which i doubt) |
01:54:42 | filwit | and Arch is pretty default |
01:55:07 | filwit | guess i'll just check, one sec |
01:56:08 | flaviu1 | Yeah, by default it uses "system style" which probably doesn't do sub-pixel smoothing |
01:57:19 | filwit | does that apply to chromium though? It's a gtk2 app, or at least it uses that icon-set. |
01:57:57 | filwit | it's okay, i've almost got all the CSS changes i think: https://gist.github.com/PhilipWitte/73e510eeda8cadf15a90 |
01:58:35 | filwit | i think i changed something else, but i can't remember cause the inspector doesn't highlight them any more :| |
01:58:50 | filwit | oh yeah.. |
01:59:09 | filwit | whoops one sec |
02:01:08 | fowl | OrionPK, hey |
02:01:21 | filwit | k, updated it |
02:01:32 | filwit | but left the colors for the font out |
02:01:44 | filwit | (still includes line-height changes, which i like) |
02:01:57 | filwit | (personally) |
02:02:41 | fowl | OrionPK, changing the macro to use namespaceify and allow for namespace: is hairy |
02:04:54 | flaviu1 | filwit: Line height looks better. The white code area is neat, it looks off white but isn't |
02:05:13 | flaviu1 | Or maybe thats f.lux |
02:10:08 | filwit | flaviu1; wait, the code text style needs to be adjusted |
02:10:12 | filwit | probably |
02:10:29 | flaviu1 | filwit: hmm? |
02:10:54 | flaviu1 | For the code style, look through https://github.com/richleland/pygments-css |
02:11:48 | filwit | flaviu1: nah i mean on the CSS gist i posted. updated it (line height of code) |
02:12:22 | filwit | flaviu1: cause line-hight:20px is a bit steep for the code |
02:12:35 | filwit | flaviu1: i just wanted to suggest setting that |
02:19:22 | flaviu1 | filwit: I think I like 20px for code, how much more superior do you think that 16px is? If it isn't, I'd like to keep 20px for code |
02:20:59 | filwit | flaviu1: It's just my opinion, so if you like it more use your preferences or get other opinions peoples thoughts |
02:21:23 | filwit | flaviu1: i'm going through the color styles, will post in a sec |
02:21:44 | flaviu1 | Some asshole undeleted the Nimrod article on Wikipedia |
02:22:11 | filwit | flaviu1: ps, idk how much web-dev you know, but in case you don't, the browser's inspect is very useful for playing with colors |
02:22:21 | filwit | wait what? |
02:22:24 | flaviu1 | I've found out about inspect :) |
02:22:26 | filwit | that's lame |
02:22:27 | flaviu1 | https://en.wikipedia.org/wiki/Nimrod_%28programming_language%29 |
02:22:39 | flaviu1 | Yeah, it makes us look bad |
02:22:52 | filwit | wtf, why? automated I hope |
02:23:05 | flaviu1 | No, non-automated |
02:23:16 | filwit | k, don't know much about how wikipedia works really |
02:23:22 | filwit | but i see a name now |
02:23:33 | flaviu1 | Neither do I, but the last two names a different and don't appear to be bots |
02:23:48 | filwit | so what reasons where given? |
02:24:03 | filwit | can anyone do this or something? I doubt it. |
02:24:22 | flaviu1 | It was deleted because it was recreated without significant changes |
02:25:09 | filwit | so it was considered practically a mirror which breaks wikipedia's advertising policy or something? |
02:25:39 | filwit | what the reason, that's lame |
02:25:43 | flaviu1 | No, it didn't have any academic papers or things in news sites not written by Araq |
02:25:45 | filwit | whatever* |
02:26:33 | springbok | Wikipedia is about whatever "editor" has the most juice. If one doesn't like you, or has an axe to grind with your entry, or is just a loon, everything you do to correct is irrelevant. |
02:27:18 | flaviu1 | springbok: Sorry, but I disagree here. They are correct by Wikipedia's policies in this case. |
02:27:57 | fowl | flaviu1, ive seen programming language pages with no citations, why cant we even get a stub |
02:28:21 | flaviu1 | They actually have a name for that: OTHERCRAPEXISTS |
02:28:27 | springbok | flaviu1: what you said does not contradict what I said. |
02:28:44 | fowl | ? |
02:29:03 | flaviu1 | Literally, they linked dom to the page that explains that policy |
02:29:44 | flaviu1 | https://en.wikipedia.org/wiki/Wikipedia:OTHERCRAPEXISTS |
02:39:24 | springbok | Wow...if I've never seen a better reason to double down on Wikipedia editors are twats, flaviu1's links prove it: some dumb fuck can't Google and thinks "nimrod" is a word for stupid things. |
02:43:15 | Demos | I agree with wikipedia's position here, but I think it will likely change later. The fact is we are not yet a "released" product |
02:43:36 | flaviu1 | springbok: Sorry, can't agree with you there. I tried googing, even went several pages down. I didn't find any secondary sources that were written by reputable new sources |
02:44:18 | springbok | flaviu1: Wiki appologist. Got it. |
02:44:28 | * | saml_ quit (Ping timeout: 245 seconds) |
02:44:37 | * | Demos quit (Read error: Connection reset by peer) |
02:45:37 | flaviu1 | springbok: I might agree that the policies are a bit harsh, but they aren't going to change those policies just for us. |
02:46:55 | springbok | Idiots do idiotic things to the detriment of others, but hey! We shouldn't object because they're following their own stupid rules. Got it. |
02:48:22 | flaviu1 | Yep, pretty much. Can't have a high standard of quality if they aren't very careful, so I can't really blame them for over-carefulness. |
02:49:37 | * | xenagi quit (Quit: Leaving) |
02:49:48 | springbok | They don't have a high standard for quality. They have a high standard for highly placed editors being unaccountable for pushing their agenda. Once again, you might try doing some research. |
02:50:41 | fowl | springbok, exactly why i dont vote |
02:53:07 | flaviu1 | fowl: I know you're in the middle of typing something so feel free to finish, but you didn't include any shadows. How is `box-shadow: 1px 1px 2px #999`? |
02:54:01 | flaviu1 | #CCC is even better |
02:55:49 | springbok | Look! Over there! Distraction! |
02:56:03 | flaviu1 | springbok: Not my intent |
02:56:48 | fowl | flaviu1, / |
02:56:51 | fowl | what |
02:57:44 | flaviu1 | I was asking what you thought about the appearence of that property on large code blocks |
02:57:47 | springbok | of course. |
02:59:41 | fowl | idk |
03:01:02 | flaviu1 | I like it, it provides a bit more contrast between the code and background. Feel free to reply to springbok, he thinks I'm only asking you to distract you from the discussion about wikipedia. |
03:02:50 | springbok | Zing! |
03:03:05 | * | hoverbear joined #nimrod |
03:11:37 | * | def- joined #nimrod |
03:13:30 | filwit | flaviu1: you like these colors: http://reign-studios.net/philipwitte/nimrod/NBE_screen.png ? |
03:15:05 | * | def-_ quit (Ping timeout: 252 seconds) |
03:15:45 | flaviu1 | Yes, looks nice |
03:18:09 | filwit | great, let me updated the gist, just a minute |
03:18:21 | flaviu1 | I think the best solution is to make CSS switchable |
03:18:53 | filwit | yeah, certainly for the code colors at least. |
03:19:47 | filwit | oh and that's no-borders on code, plus padding changes |
03:22:17 | * | springbok_ joined #nimrod |
03:22:23 | * | springbok quit (Ping timeout: 245 seconds) |
03:22:56 | * | springbok_ is now known as springbok |
03:25:27 | * | springbok quit (Quit: Leaving) |
03:36:30 | filwit | flaviu1: updated the gist https://gist.github.com/PhilipWitte/73e510eeda8cadf15a90 |
03:41:22 | flaviu1 | filwit: Are you sure that `box-shadow: rgba(0,0,0,0.1);` does anything? No effect for me, on both firefox and chromium |
03:41:40 | flaviu1 | Yeah, it says its malformed |
03:41:42 | filwit | flaviu1: whoops, forgot the numbers |
03:42:02 | filwit | should be: box-shadow:1px 3px 12px rgba(0,0,0,0.1); |
03:55:57 | * | brson joined #nimrod |
03:57:06 | filwit | flaviu1: updated the gist again with some sidebar tweaks. |
03:58:34 | flaviu1 | filwit: I don't know much CSS, is it possible to add padding to the text if the window gets too small? |
03:59:34 | filwit | not really, however you can do some interesting stuff with max-width and floating objects |
04:00:31 | filwit | flaviu1: there are some really new layout types actually, that should do what you want |
04:01:06 | flaviu1 | filwit: It actually turns out to be even easier. I just added a right margin on #main p |
04:01:20 | filwit | flaviu1: i remember seeing examples of them, and it was pretty nice. I can't remember how good of browser support they have though. It was like "flexy-box" or something. |
04:01:35 | filwit | dispaly: flexbox... something like that |
04:02:33 | flaviu1 | flexboxes seem to apply with multiple elments |
04:03:16 | filwit | flaviu1: yeah, but i saw some really cool demo before, using it really effectively (maybe it in combo with something else) |
04:03:34 | filwit | idk |
04:04:09 | filwit | i'm interesting to see what you use for the live version when it's up, flaviu1 |
04:07:57 | flaviu1 | filwit: Ok, should be up in 5 minutes. I really should precompile the source code for the tools I use... |
04:10:18 | * | brson quit (Ping timeout: 245 seconds) |
04:11:08 | flaviu1 | I commented out the cotton candy css, but its still available, I'll get a code style selector tomorrow |
04:15:15 | filwit | flaviu1: that's cool. It was just some color's i chose (not actually cotton candy), but as I was thinking it would be cool to try a darker color theme as well (like VSDark.. or similar) |
04:17:33 | * | brson joined #nimrod |
04:38:32 | filwit | flaviu1: btw, you can simplify code in the OOP section like this: https://gist.github.com/PhilipWitte/19a00bfbbf7017e4bae7 |
04:41:23 | flaviu1 | I guess so, but TBH that doesn't really make a difference in how hard it is to follow. I'll merge it, but I should be sleeping right now. |
04:41:52 | flaviu1 | see you tomorrow |
04:42:10 | filwit | okay, later |
04:49:25 | * | flaviu1 quit (Ping timeout: 252 seconds) |
04:58:03 | * | xtagon quit (Quit: Leaving) |
05:08:03 | * | ehaliewicz quit (Ping timeout: 260 seconds) |
05:09:25 | * | gsingh93_ quit (Quit: Connection closed for inactivity) |
05:17:35 | * | bjz joined #nimrod |
06:18:37 | * | hoverbear quit () |
06:31:58 | * | brson quit (Ping timeout: 240 seconds) |
06:32:33 | * | bjz quit (Ping timeout: 252 seconds) |
06:33:24 | * | bjz joined #nimrod |
06:48:06 | * | bjz quit (Read error: Connection reset by peer) |
06:50:27 | * | bjz joined #nimrod |
07:02:15 | * | bjz quit (Ping timeout: 252 seconds) |
07:03:23 | * | bjz joined #nimrod |
07:09:31 | * | dymk quit (Ping timeout: 240 seconds) |
07:22:26 | * | bjz quit (Ping timeout: 255 seconds) |
07:47:19 | * | zahary quit (Quit: Leaving.) |
07:50:24 | Skrylar | dom96: so if i were hypothetically to write a mini-mud in nimrod, is there any particular stupidity involved with nimrod and asynchronous tcp? |
07:50:56 | reactormonk | Skrylar, mini-mud? |
07:51:18 | Skrylar | reactormonk: i donno. i've off and on felt like running a MUD |
07:52:57 | Skrylar | its also an easy way to familiarize with a tcp library |
07:55:54 | reactormonk | Skrylar, what's a mud? |
07:58:19 | CARAM_ | http://en.wikipedia.org/wiki/MUD |
08:02:28 | * | kunev joined #nimrod |
08:02:30 | * | kemet joined #nimrod |
08:27:47 | * | bjz joined #nimrod |
08:29:38 | * | io2 joined #nimrod |
08:38:57 | * | BitPuffin quit (Ping timeout: 252 seconds) |
08:48:34 | * | io2 quit (*.net *.split) |
08:48:37 | * | oddmunds quit (*.net *.split) |
08:49:00 | * | io2 joined #nimrod |
08:50:36 | * | oddmunds joined #nimrod |
08:53:19 | * | Changaco joined #nimrod |
08:54:47 | * | dymk joined #nimrod |
09:05:26 | dom96 | Skrylar: You may run into problems because you can't nest closures multiple times |
09:05:34 | dom96 | but you should be able to work around that |
09:05:42 | dom96 | So do it |
09:07:32 | * | noam joined #nimrod |
09:30:29 | * | brson joined #nimrod |
09:37:47 | * | brson quit (Quit: leaving) |
10:21:53 | * | Johz joined #nimrod |
10:23:41 | * | bjz quit (Ping timeout: 264 seconds) |
10:25:55 | * | bjz joined #nimrod |
11:05:07 | Klaufir | when allocating something using var, is it stored on the stack? |
11:11:37 | * | EXetoC quit (Quit: WeeChat 0.4.3) |
11:14:34 | Araq | Klaufir: yes, in general |
11:18:10 | * | EXetoC joined #nimrod |
11:19:32 | * | kunev quit (Quit: leaving) |
11:28:04 | * | kunev joined #nimrod |
11:35:33 | Klaufir | and elements in a seq? garbage collected heap? |
11:41:16 | * | shevy joined #nimrod |
11:41:28 | Araq | yes |
11:50:24 | Klaufir | does nimrod have something similar to the guaranteed destructor call in c++? like python's with, or c# using, or java's try-with-resources? - sorry for my many questions |
11:59:45 | EXetoC | ask away |
11:59:51 | EXetoC | Klaufir: http://build.nimrod-lang.org/docs/manual.html#destructor-pragma |
12:00:32 | Klaufir | EXetoC: thank you |
12:01:08 | * | kemet quit (Quit: Instantbird 1.5 -- http://www.instantbird.com) |
12:06:09 | EXetoC | a 'with' construct has been discussed before I think. that seems like a trivial thing to implement with user code |
12:16:57 | * | untitaker quit (Ping timeout: 240 seconds) |
12:22:30 | * | untitaker joined #nimrod |
12:29:03 | reactormonk | EXetoC, I think it would serve as a good example code |
12:33:28 | * | BitPuffin joined #nimrod |
12:37:41 | reactormonk | how do I run tests again? |
12:39:11 | EXetoC | ./tests/testament/tester(.nim) |
12:40:46 | EXetoC | actually, I can't remember why I started doing that. I used './koch tests' before |
12:42:02 | EXetoC | which also executes tester |
12:57:21 | reactormonk | EXetoC, and one specific test file? |
13:05:01 | EXetoC | not possible I think |
13:05:43 | * | shevy quit (Ping timeout: 245 seconds) |
13:15:34 | * | askatasuna joined #nimrod |
13:18:24 | * | shevy joined #nimrod |
13:19:16 | * | darkf quit (Quit: Leaving) |
13:21:35 | reactormonk | muh |
13:38:47 | * | untitaker quit (Quit: ZNC - http://znc.in) |
13:39:29 | * | untitaker joined #nimrod |
13:40:44 | * | superfunc joined #nimrod |
13:41:44 | EXetoC | reactormonk: yeah we could add such an example to the nimrod-by-example site |
13:44:12 | * | untitaker quit (Quit: ZNC - http://znc.in) |
13:44:43 | * | untitaker joined #nimrod |
13:47:42 | Klaufir | can you tell me something about the memory layout of an object when there is a 'case ... of ... of ... etc' structure in its definition? |
13:48:18 | * | filwit quit (Quit: Leaving) |
13:48:33 | reactormonk | Klaufir, generate the C code and take a look |
13:50:13 | Araq | reactormonk: tester cat <category_name> works |
13:51:44 | Araq | Klaufir: it generates a union |
13:53:45 | reactormonk | Araq, as mentioned, the ruby implementation is not really feasable |
13:54:00 | Klaufir | Araq: thanks |
13:54:07 | Araq | reactormonk: ok, I'll do it myself then |
13:55:15 | * | untitaker quit (Quit: ZNC - http://znc.in) |
13:55:46 | * | untitaker joined #nimrod |
13:56:14 | reactormonk | Araq, got a slight idea what might work |
13:56:45 | * | untitaker quit (Client Quit) |
13:57:16 | * | untitaker joined #nimrod |
14:05:11 | * | untitaker quit (Quit: ZNC - http://znc.in) |
14:05:42 | * | untitaker joined #nimrod |
14:07:59 | reactormonk | muh, koch temp just dies on me. |
14:08:31 | reactormonk | or rather, the compiler created by it. |
14:08:58 | * | caioariede quit (Ping timeout: 265 seconds) |
14:20:41 | * | Changaco quit (Ping timeout: 264 seconds) |
14:22:11 | * | Changaco joined #nimrod |
14:30:34 | reactormonk | How do I copy ranges of arrays? |
14:30:38 | reactormonk | ranges of array items. |
14:30:39 | * | untitaker quit (Quit: ZNC - http://znc.in) |
14:31:11 | * | untitaker joined #nimrod |
14:32:22 | * | untitaker quit (Client Quit) |
14:32:53 | * | untitaker joined #nimrod |
14:33:17 | * | untitaker quit (Client Quit) |
14:33:49 | * | untitaker joined #nimrod |
14:56:25 | * | kunev quit (Quit: leaving) |
15:14:41 | * | flaviu1 joined #nimrod |
15:24:42 | superfunc | holy hell boost is making my job so much easier lately. Now, if only they'd let me just use Nimrod :) |
15:38:21 | * | bjz quit (Read error: Connection reset by peer) |
15:38:43 | * | bjz joined #nimrod |
15:54:05 | * | bjz quit (Ping timeout: 255 seconds) |
16:11:11 | * | BitPuffin quit (Ping timeout: 255 seconds) |
16:15:10 | * | hoverbear joined #nimrod |
16:28:19 | * | brson joined #nimrod |
16:28:26 | * | brson quit (Client Quit) |
16:31:30 | * | brson_ joined #nimrod |
16:32:15 | * | brson_ quit (Client Quit) |
16:32:48 | * | brson_ joined #nimrod |
16:40:14 | Klaufir | what is the customary way of representing unicode strings? seq[TRune] ? |
16:40:28 | dymk | Huh, something happened to the nimrod wiki page? |
16:41:44 | flaviu1 | dymk: Its been deleted for a while, they couldn't find any non-primary sources |
16:41:54 | dymk | I see |
16:42:02 | dymk | bummer, it had some useful information on it |
16:42:15 | dom96 | Klaufir: For most use cases using a string should be enough. |
16:42:21 | * | q66 joined #nimrod |
16:42:21 | * | q66 quit (Changing host) |
16:42:21 | * | q66 joined #nimrod |
16:42:43 | Klaufir | dom96: say I want to do toUpper in a unicode fashion |
16:43:05 | Klaufir | I got an input as a utf-8 string, how would I proceed? |
16:43:33 | Klaufir | I can call runes and get an interator of TRunes |
16:43:52 | * | Jesin joined #nimrod |
16:44:26 | dom96 | I'm not expert on this but I would guess that you would use the runes iterator in the unicode module, call toUpper on the runes and convert them to a string using toUtf8 |
16:44:38 | Klaufir | I see |
16:46:22 | Klaufir | is there somewhere a 'map' proc I could use on iterators? |
16:47:18 | Klaufir | i know I can just slurp an interator into a seq, but somehow it feels inefficient when the iterator would give lots of elements |
16:48:15 | flaviu1 | Klaufir: IIRC there isn't one unfortunately |
16:49:56 | EXetoC | sequtils.mapIt? |
16:51:01 | EXetoC | hm let me check |
16:51:19 | Klaufir | mapIt works on seq[T], isn't it? |
16:51:30 | flaviu1 | Yeah, mapIt is on seqs |
16:58:49 | Klaufir | how would you write this nicer? |
16:58:51 | Klaufir | unicode.`$`(toSeq(unicode.runes("dépêchez-vous, l'ordinateur!")).map(unicode.toUpper)) |
17:00:50 | flaviu1 | I'd write my own `map` iterator, and then make a `toUnicodeString` method that takes an iterator |
17:02:28 | flaviu1 | so it'd be `runes("fancy unicode text").map(do (c: Rune) -> Rune: c.toUpper).toUnicodeString` |
17:02:51 | Klaufir | yeah, its much better |
17:04:48 | * | hoverbea_ joined #nimrod |
17:04:49 | * | hoverbear quit (Read error: Connection reset by peer) |
17:10:23 | EXetoC | a better generic map would be nice. hopefully the user-defined type classes will be usable soon |
17:11:09 | EXetoC | someone throw money at zahary :p |
17:11:13 | flaviu1 | EXetoC: They aren't usable already? |
17:12:08 | flaviu1 | But you don't need type classes to have a generic iterator map anyway |
17:16:16 | EXetoC | no not strictly necessary |
17:17:35 | EXetoC | the two-argument mapIt just uses items, so it's not only for sequences |
17:17:51 | EXetoC | *three |
17:19:48 | EXetoC | Klaufir: so, unicode.runes("...").mapIt(targetType, it.toUpper) or something maybe |
17:21:01 | dom96 | does 'do' work in that context? |
17:21:07 | * | hoverbea_ is now known as hoverbear |
17:22:13 | EXetoC | "got (string)" yeah, and? :p |
17:22:37 | EXetoC | gah wait a second |
17:37:40 | EXetoC | talking rubbish again. nevermind me. good luck |
17:42:43 | * | askatasuna quit (Ping timeout: 252 seconds) |
17:55:30 | * | askatasuna joined #nimrod |
17:55:46 | EXetoC | dom96: I don't know, but the params are all expr |
17:56:53 | * | BitPuffin joined #nimrod |
17:57:06 | EXetoC | Klaufir: I don't think there's a clean way to get the type that an iterator yields, but you can do something like this if you decide to roll your own: "toSeq(x)[0].type" |
17:58:58 | * | superfunc quit (Quit: Page closed) |
17:59:45 | Araq | Klaufir: toUpper is a broken idea for Unicode anyway |
18:00:14 | Araq | use cmpIgnoreCase or whatever it's called |
18:01:17 | EXetoC | Klaufir: oh. x.items.type |
18:05:27 | EXetoC | but x is already an iterator in your case |
18:06:01 | EXetoC | so that'd be x.type then of course |
18:17:23 | dom96 | flaviu1: oh yeah, the UTF8 checkboxes don't show up for me |
18:18:20 | flaviu1 | dom96: I'm actually working on that right now |
18:18:30 | dom96 | ok |
18:24:39 | EXetoC | Araq: is ignoring the case somehow more complicated than converting to lowercase or uppercase? |
18:25:03 | flaviu1 | dom96: Does it work now? |
18:25:09 | EXetoC | or is it just of limited use outside comparisons? |
18:25:26 | dom96 | flaviu1: yea |
18:25:40 | Araq | it loses information, EXetoC |
18:26:08 | flaviu1 | Awesome. I also managed to get the build time down to 30 seconds instead of 3 minutes, so it updates quickly now |
18:27:18 | EXetoC | Araq: for some quirky languages? |
18:29:05 | * | Changaco quit (Ping timeout: 264 seconds) |
18:30:13 | Araq | EXetoC: like German, yes |
18:32:57 | * | askatasuna quit (Ping timeout: 252 seconds) |
18:33:54 | * | Changaco joined #nimrod |
18:40:51 | * | askatasuna joined #nimrod |
18:47:57 | * | kunev joined #nimrod |
18:53:32 | * | brson_ quit (Ping timeout: 260 seconds) |
18:57:26 | * | ehaliewicz joined #nimrod |
19:07:34 | * | brson joined #nimrod |
19:08:10 | * | Jehan_ joined #nimrod |
19:08:40 | * | Jesin quit (Quit: Leaving) |
19:22:04 | * | kunev quit (Quit: Lost terminal) |
19:27:02 | Araq | flaviu1: I told you to update the spec too |
19:27:57 | dom96 | flaviu1: You should add a "star" button |
19:28:29 | flaviu1 | Araq: I did, but give me a few seconds before merging. I noticed a small bug where an unexpected EOL would not throw an error |
19:31:52 | flaviu1 | Araq: After: `'('|')'|'['|']'|'{'|'}'`, before: `'(' ')'|'[' ']'|'{' '}'` |
19:32:41 | Araq | I noticed |
19:33:10 | Araq | I'm talking about regenerating doc/grammar.txt and perhaps the manual |
19:33:43 | flaviu1 | sorry, didn't realize that that was manual. I can do that, give me a few minutes |
19:33:51 | dom96 | flaviu1: Why does the enums example use low(int)/high(char) to demonstrate inc dec for enums? |
19:34:16 | flaviu1 | dom96: You're right, I was going to combine ordinals with enums |
19:34:40 | flaviu1 | Feel free to change that |
19:59:11 | * | kunev joined #nimrod |
20:00:14 | * | Matthias247 joined #nimrod |
20:25:39 | * | kunev quit (Quit: leaving) |
20:39:35 | * | Sergio965 joined #nimrod |
21:06:10 | dom96 | Perhaps we should put in one of those requests for a re-review of whether we are allowed to have a wiki article |
21:06:50 | * | Changaco quit (Quit: Changaco) |
21:08:47 | flaviu1 | dom96: Have you found any new sources? |
21:09:34 | * | Mat3 joined #nimrod |
21:09:37 | dom96 | There is plenty of new sources, assuming that they are viable. |
21:09:42 | Mat3 | hello |
21:09:44 | dom96 | The Dr Dobbs article, the emerging langs talk |
21:10:44 | flaviu1 | They've rejected the Dr Dobbs article the Strange Loop talk because they're primary sources |
21:14:41 | dom96 | oh yeah, forgot about taht |
21:14:42 | dom96 | *that |
21:19:42 | Araq | what IS a valid non-primary source? |
21:20:10 | EXetoC | god himself |
21:20:47 | * | Demos joined #nimrod |
21:20:54 | flaviu1 | Araq: An article in Dr Dobbs not written by you, or a paper on using Nimrod for experimental construct X |
21:21:23 | Araq | what do I have to do to become a wikipedia member and delete every PL article that lacks secondary sources? |
21:21:39 | dom96 | you could do that without an account |
21:21:56 | dom96 | maybe |
21:22:34 | dom96 | actually nah, that would be silly |
21:23:07 | Araq | I can't see why. Let's delete half of wikipedia, in fact. |
21:31:35 | Klaufir | once this happened to Nemerle |
21:31:40 | Klaufir | a few years back |
21:31:53 | Klaufir | then a huge uproar came thanks to reddit |
21:32:34 | Klaufir | and the article has been undeleted as a result |
21:32:37 | * | jbe joined #nimrod |
21:32:40 | Klaufir | maybe /r/programming can help |
21:32:52 | Mat3 | hmm, good point |
21:33:16 | dom96 | there was a moderate uproar on HN and it didn't help |
21:33:22 | EXetoC | subjectivity in action? |
21:33:45 | Mat3 | corruptivity ? |
21:35:14 | dom96 | But perhaps if one of us wrote a blog post talking about how angry we are that the article has been deleted, and it becomes popular on reddit. Then maybe we could get it undeleted. |
21:36:38 | flaviu1 | I think the best way is to just get a paper published in http://arxiv.org/ |
21:36:42 | EXetoC | so we need either secondary sources, or people protesting? got it |
21:41:10 | flaviu1 | The stuff with proving out of bounds accesses sounds good for a research paper, or maybe a paper on implementing an OS with regionized pointers |
21:43:43 | * | hoverbea_ joined #nimrod |
21:44:46 | * | Matthias247 quit (Read error: Connection reset by peer) |
21:44:51 | * | Johz quit (Ping timeout: 260 seconds) |
21:45:46 | * | hoverbe__ joined #nimrod |
21:45:53 | * | hoverbear quit (Ping timeout: 264 seconds) |
21:46:41 | * | hoverbe__ quit (Read error: Connection reset by peer) |
21:47:41 | * | hoverbea_ quit (Read error: Connection reset by peer) |
21:51:51 | Araq | flaviu1: it's not good enough for a research paper and I am not allowed to write it anyway |
21:51:52 | * | hoverbear joined #nimrod |
21:51:59 | Araq | would just be another primary source |
21:53:41 | * | hoverbea_ joined #nimrod |
21:54:27 | flaviu1 | They might make an exception if its typeset in Latex... |
21:54:31 | EXetoC | I can take the credit for it |
21:56:50 | * | hoverbear quit (Ping timeout: 265 seconds) |
21:59:33 | Mat3 | ciao |
21:59:44 | * | Mat3 quit (Quit: Verlassend) |
22:13:09 | Klaufir | I am still struggling with map_iterator |
22:14:02 | Klaufir | https://gist.github.com/anonymous/fd4dad01266bf85c8878 |
22:14:20 | Klaufir | here I just want to wrap an iterator into another and pass the contents |
22:15:10 | Klaufir | so, I would expect 1..10 on the output, instead I see 1,1,1... |
22:17:25 | flaviu1 | Klaufir: What happens when you do `var itTemp = it()` and iterate over that? |
22:17:46 | dom96 | https://gist.github.com/dom96/4a9e941919509bdddbfd |
22:18:25 | dom96 | Indeed. You need to create an instance of the iterator, otherwise you are iterating over a new instance which is why you get a 1 constantly. |
22:18:49 | * | Xuerian quit (Ping timeout: 252 seconds) |
22:20:11 | * | Xuerian joined #nimrod |
22:24:17 | * | ehaliewicz quit (Ping timeout: 264 seconds) |
22:24:46 | reactormonk | How do I copy ranges of array items? |
22:25:01 | Klaufir | flaviu1, dom96 : thanks |
22:25:16 | EXetoC | ranges? |
22:25:42 | reactormonk | EXetoC, yeah, copy X elements from array a to array b starting at element y |
22:27:36 | fowl | reactormonk, there is function for it |
22:27:48 | fowl | reactormonk, my recommendatin is copymem |
22:27:53 | fowl | no function for it* |
22:28:01 | dom96 | I recommend you write a function to do it |
22:28:05 | dom96 | copyMem is unsafe |
22:28:24 | fowl | (a function that would call copymem) |
22:28:43 | EXetoC | can't slice assignment be used? |
22:35:12 | Klaufir | how could this be improved: https://gist.github.com/anonymous/971c3b89da8ea1da3845 ? |
22:36:44 | fowl | Klaufir, it could do something useful |
22:36:50 | fowl | ba-dum-chhh |
22:38:58 | * | hoverbea_ quit () |
22:43:12 | * | jbe quit (Quit: Leaving) |
22:46:35 | * | brson quit (Quit: Lost terminal) |
22:46:58 | * | brson joined #nimrod |
22:50:27 | * | def-_ joined #nimrod |
22:51:39 | * | brson quit (Client Quit) |
22:53:11 | * | def- quit (Ping timeout: 252 seconds) |
22:59:01 | * | brson joined #nimrod |
22:59:13 | fowl | Klaufir, it looks fine how it is though |
23:00:46 | Jehan_ | reactormonk: b[y..y+x-1] = a[y..y+x-1] |
23:01:40 | * | gsingh93_ joined #nimrod |
23:03:57 | * | io2 quit (Quit: ...take irc away, what are you? genius, billionaire, playboy, philanthropist) |
23:05:14 | * | brson quit (Quit: leaving) |
23:16:27 | * | Joe_knock joined #nimrod |
23:34:50 | * | brson joined #nimrod |
23:35:49 | * | Sergio965 quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
23:41:27 | flaviu1 | Wow, someone fixed the REPL |
23:42:21 | * | EXetoC1 joined #nimrod |
23:43:21 | * | EXetoC quit (Ping timeout: 240 seconds) |
23:44:40 | Jehan_ | flaviu1: You mean that Ctrl-D works properly? |
23:45:07 | flaviu1 | No, I can press up and down and use ctrl-Left/right |
23:45:41 | dom96 | Didn't that always work as long as you compiled with a certain flag? |
23:45:46 | Jehan_ | Hmm, did you compile with -d:useGnuReadline? Because that's what enables it. |
23:46:29 | Jehan_ | -d:useGnuReadline has always worked fine, AFAIK. |
23:47:00 | Jehan_ | It was the REPL without it that was messed up (because it went into an infinite loop when you hit Ctrl-D). |
23:49:42 | * | EXetoC1 is now known as EXetoC |
23:53:52 | * | askatasuna quit (Quit: WeeChat 0.4.3) |
23:57:17 | dom96 | Even Swift's wiki article only has 3 references. Two of which are primary. |
23:57:47 | * | darkf joined #nimrod |
23:58:03 | dom96 | And all the other news sources are bound to be just an echo of what Apple wrote/said. |
23:58:12 | dom96 | How is that reliable? |
23:58:14 | Jehan_ | dom96: Probably the "famous origin" exception. :) |
23:58:22 | dom96 | ... yeah :\ |
23:59:11 | Jehan_ | Honestly, I wouldn't worry much about it. |
23:59:23 | Jehan_ | People don't go to WIkipedia to discover new programming languages. |