00:00:38 | ekarlso- | dom96: ye |
00:01:59 | flaviu | Wow, that rust post on hacker news drove over 760 hits towards the site! |
00:02:17 | ekarlso- | which rust post ? :p |
00:02:27 | flaviu | http://arthurtw.github.io/2014/12/21/rust-anti-sloppy-programming-language.html |
00:02:42 | flaviu | Baseline is ~100, so that's a 7x increase |
00:03:34 | flaviu | Hope you don't mind me posting broad stats like these, I'll stop if nessesary |
00:04:12 | dom96 | yeah, HN is powerful. |
00:04:21 | dom96 | Check out the graphs for the past year or so. |
00:04:30 | dom96 | You'll see spikes when we have been on the front page |
00:05:44 | flaviu | maybe we should extend GA across the docs and forums? |
00:06:42 | flaviu | dom96: Also, can you enable webmaster tools for GA? I'm wondering what information that'll give |
00:06:58 | dom96 | yes, we should. |
00:07:06 | dom96 | I ain't got time to man. |
00:07:17 | Araq | flaviu: I applied your suggestion to the website but on my android it doesn't change anything |
00:07:36 | Araq | it renders until something has been loaded completely |
00:07:41 | Araq | and then it's emptied |
00:07:55 | Araq | how do I debug this piece of crap? |
00:08:25 | flaviu | start over and get rid of all the absolute positioning? |
00:08:29 | flaviu | sorry, no idea |
00:09:34 | Araq | er |
00:09:42 | Araq | is this valid css: transition:visibility 0s linear 1s, opacity 1s ease-in-out; ? |
00:09:49 | flaviu | Yes, it is. |
00:09:54 | flaviu | It's CSS3 |
00:10:27 | flaviu | It looks good in chrome's emulator, so I can't really help much |
00:10:50 | dom96 | Araq: You can do this if you want: https://developer.chrome.com/devtools/docs/remote-debugging |
00:11:09 | ekarlso- | rustlang seems to have tons of people using it though |
00:12:11 | Araq | ekarlso-: just use Rust then. but if number of users is your primary criterion you should perhaps use Java instead. |
00:12:24 | flaviu | Araq: Javascript |
00:12:43 | flaviu | Actually, C! |
00:12:43 | ekarlso- | Araq: well java isn't a sys lang though :p |
00:13:08 | Araq | that term has no clear definition anyway |
00:13:45 | Araq | there have been built many more systems in Java than in Golang and Rust taken together |
00:17:13 | * | Demos joined #nim |
00:19:05 | flaviu | are we comfortable asking for demographic information from GA, or would that be asking the users of the website to give up too much privacy? |
00:19:15 | Araq | hrm the forum doesn't render either |
00:19:49 | Araq | flaviu: er ... no, don't do that. |
00:20:22 | flaviu | Well, I can't do anything but look at data, but ok. |
00:20:48 | Araq | how does GA gather that data? |
00:21:31 | flaviu | They see what other websites you go on, as well as the information you volutarly give. |
00:21:40 | Araq | what's the way to disable CSS on mobile platforms? |
00:21:46 | flaviu | media queries? |
00:22:31 | Araq | #mascot { |
00:22:33 | Araq | z-index:2; |
00:22:35 | Araq | position:absolute; |
00:22:36 | Araq | top:-340px; |
00:22:39 | Araq | could that be the reason? |
00:23:12 | flaviu | It's absolutely positioned, so the location of #mascot has no effect on anything else |
00:24:14 | Araq | well as I said, it renders correctly and then some loading completes |
00:24:30 | flaviu | And #mascot doesn't exist on the page, so the rule is dead anyway. |
00:24:34 | Araq | so it should be some image |
00:26:06 | flaviu | Sorry, I really can't help you. I can't reproduce the problem in chrome's simulator |
00:27:02 | dom96 | seriously. Get the inspector running through Chrome in your phone and figure it out that way. |
00:27:38 | Araq | dom96: lost my USB cable |
00:28:24 | flaviu | How do you charge it? |
00:28:47 | Araq | with some other cable? |
00:29:39 | Araq | in Germany we have these sockets that come out of the wall and provide electricity |
00:30:05 | gmpreussner | flaviu: i'm back. gonna set up the raspi now |
00:30:24 | flaviu | gmpreussner: Ok. If you're looking for some fun, try compiling Arch for big endian |
00:30:45 | gmpreussner | i'm gonna do a normal setup first |
00:30:53 | gmpreussner | then i put big endian on the 2nd raspi, ok? |
00:30:57 | gmpreussner | that we way have both |
00:31:03 | gmpreussner | *that way we |
00:31:26 | flaviu | Sure. But I don't expect compiling for big endian to be easy ;) |
00:31:37 | gmpreussner | i haven't tried it before, so i need to read up on it first |
00:32:32 | Araq | flaviu: why not? we bootstrapped on powerpc bigendian before nimbuild died |
00:32:59 | Araq | found a couple of endian related bugs this way |
00:33:07 | flaviu | Araq: Not nim, 99% of the world's computers are little endian. So there are sure to be bugs in other software |
00:34:07 | Araq | yeah and if we want to get philosophical. Does this mean to fix each and every piece of software or to abandon big endian systems? |
00:34:08 | flaviu | and *no one* is providing pre-built binaries for big endian on raspberry pi |
00:34:32 | flaviu | If he manages to compile big endian, then support big endian |
00:34:44 | flaviu | it's good to support them anyway, even if only to help ensure code quality |
00:35:47 | Demos | I bet around 99.99% of ARM CPUs are never booted in big endian mode |
00:36:28 | flaviu | yep |
00:37:07 | flaviu | dom96: https://github.com/nim-lang/nimforum/pull/35 https://github.com/Araq/Nimrod/pull/1778 |
00:37:11 | Araq | flaviu: no, it helps to ensure code quality that is concerned with the big endian vs little endian dimension. But this dimension wouldn't even exist otherwise. |
00:39:32 | Araq | By the same argument, supporting Irix helps our code portability. But it doesn't. It only helps supporting Irix which is hopefully dead by now. |
00:40:06 | flaviu | That makes sense |
00:42:45 | dom96 | flaviu: I'm not sure if adding google analytics to all docs is a good idea. |
00:42:52 | dom96 | flaviu: People can build them locally... |
00:43:25 | flaviu | dom96: What would be a better approch? |
00:43:43 | dom96 | Dunno. |
00:44:09 | flaviu | anyway, don't those config files only apply to nim? |
00:44:51 | dom96 | Too late for me to think about it. |
00:47:13 | flaviu | I think I've got it - only add the GA code when it's available in an enviroment variable. So koch web will export it |
00:47:33 | flaviu | but normal users won't, so they won't get the code in their private docs. |
00:48:02 | dom96 | no, command line switch. |
00:48:08 | dom96 | No environment vars. |
00:48:33 | flaviu | https://github.com/Araq/Nimrod/blob/devel/koch.nim#L130 |
00:49:13 | Araq | flaviu: these are no real environment vars though. dunno if you are aware. |
00:49:42 | flaviu | oh, ok. Switch then: --googleAnalytics:UA-48159761-1 |
00:50:41 | Araq | flaviu: ok, but if "koch web" add that, well. "koch web" is exactly what people use to build the docs |
00:51:16 | dom96 | flaviu: yes |
00:51:20 | flaviu | Yes, but we don't mind if they have GA in their locally built copy, do we? |
00:51:37 | Araq | probably not |
00:51:38 | flaviu | GA will ignore it if it comes from the wrong domain, I think |
00:51:40 | dom96 | we do |
00:51:52 | dom96 | It's lots of useless code. |
00:52:00 | dom96 | Just don't add it if the flag isn't specified. |
00:52:02 | dom96 | simple |
00:53:55 | flaviu | well, GA gets unconditionally added to the website |
00:55:47 | flaviu | I'll fix that too, I guess |
01:08:48 | * | yglukhov_ joined #nim |
01:13:12 | * | yglukhov_ quit (Ping timeout: 245 seconds) |
01:15:38 | * | z1y joined #nim |
01:18:25 | flaviu | Huh, that wasn't so terrible |
01:24:57 | gmpreussner | flaviu: got buildslave up and running and added your systemd service. i guess i need the config for the master server now? |
01:25:25 | flaviu | Yep. Maybe varriout gave me admin to the master server, let me check |
01:27:18 | * | nimnoob joined #nim |
01:28:21 | flaviu | gmpreussner: Looks like Varriount needs to manually edit a config somewhere |
01:28:23 | flaviu | Varriount: Ping |
01:39:23 | dts|pokeball | flaviu, ping |
01:39:27 | dts|pokeball | oh wait |
01:39:32 | dts|pokeball | youre here. excellent |
01:39:42 | flaviu | me? Hi! |
01:39:47 | dts|pokeball | do you want to still help with Nimbus? |
01:40:18 | flaviu | I'm almost done with a PR, but sure, I guess. What do you need? |
01:40:46 | dts|pokeball | im terrible at makefiles, and trying to convert build.py to a make file |
01:40:54 | dts|pokeball | wanna finish it for me? |
01:41:10 | flaviu | Sure |
01:41:18 | dts|pokeball | ok |
01:41:20 | dts|pokeball | ill paste |
01:42:12 | dts|pokeball | https://bpaste.net/show/f323e7e078a0 |
01:42:16 | dts|pokeball | theres what i have so far |
01:42:58 | dts|pokeball | heres the build.py https://bpaste.net/show/9e46ea6f48f3 |
01:44:14 | flaviu | wouldn't it work better as a shell script? |
01:44:28 | dts|pokeball | if you wanna do that, sure |
01:44:42 | dts|pokeball | basically, i need something that works a lot cleaner :} |
01:48:20 | dom96 | http://forum.nimrod-lang.org/t/688 |
01:49:51 | dom96 | :) |
01:50:34 | dom96 | dts|pokeball: Why are you writing make files? |
01:50:38 | dom96 | dts|pokeball: Write a nake file instead. |
01:51:03 | dts|pokeball | whats nake? |
01:51:10 | dts|pokeball | ill use it |
01:51:16 | dts|pokeball | ill nimify that bitch |
01:51:40 | flaviu | well, that might not work so well |
01:51:53 | flaviu | if your goal is to also install nim with the file |
01:52:10 | dom96 | https://github.com/fowlmouth/nake |
01:52:23 | flaviu | dom96: Error: unknown substitution variable: 'analytics' |
01:52:29 | flaviu | any idea what that's all about? |
01:52:53 | dom96 | flaviu: no var named 'analytics'? |
01:52:57 | dom96 | Dunno. Need context. |
01:53:00 | * | rpag quit (Quit: Leaving) |
01:53:11 | dom96 | Possibly no key named 'analytics' in some hash map |
01:53:33 | dom96 | That the doc gen uses for its data |
01:55:43 | flaviu | dom96: https://github.com/flaviut/Nimrod/tree/ga-docs |
01:56:22 | flaviu | docgen.nim:584, I think |
02:01:04 | dom96 | The config var: doc.file doesn't specify the analytics var |
02:01:09 | dom96 | I guess |
02:01:47 | flaviu | huh, I thought that was for misc variables. |
02:01:55 | dom96 | https://github.com/flaviut/Nimrod/blob/ga-docs/config/nimdoc.cfg#L106 |
02:02:02 | dom96 | See the way it specified $title there? |
02:02:16 | flaviu | yep |
02:02:24 | flaviu | but scroll to the bottom |
02:08:50 | flaviu | oh, I see |
02:09:21 | dom96 | good night |
02:09:50 | flaviu | night |
02:22:56 | * | darkf joined #nim |
02:26:30 | flaviu | PR sent |
02:26:54 | flaviu | I don't want to deal with global variables, so theindex.html doesn't get analytics. |
02:28:01 | * | gmpreussner quit (Ping timeout: 252 seconds) |
02:28:13 | * | gmpreussner joined #nim |
02:28:55 | * | Demos_ joined #nim |
02:29:32 | * | nimnoob quit (Ping timeout: 264 seconds) |
02:34:21 | * | Jessin joined #nim |
02:35:23 | * | JStoker quit (Killed (holmes.freenode.net (Nickname regained by services))) |
02:35:26 | * | JStoker joined #nim |
02:38:35 | gmpreussner | hey Varriount, you around? |
02:41:35 | * | kapil__ joined #nim |
02:49:20 | * | Demos quit (*.net *.split) |
02:49:20 | * | Jesin quit (*.net *.split) |
02:49:29 | * | mraxis joined #nim |
02:49:53 | * | saml_ joined #nim |
02:55:40 | * | mraxis quit (Quit: Ex-Chat) |
02:58:42 | * | yglukhov_ joined #nim |
03:00:16 | * | Trixar_za joined #nim |
03:01:30 | * | rpag joined #nim |
03:01:40 | * | rpag quit (Client Quit) |
03:02:21 | * | yglukhov_ quit (Ping timeout: 264 seconds) |
03:08:59 | * | dts|pokeball quit (Read error: Connection reset by peer) |
03:12:14 | * | dts|pokeball joined #nim |
03:13:33 | dts|pokeball | flaviu, hows the build script? |
03:21:44 | * | yglukhov_ joined #nim |
03:26:12 | * | yglukhov_ quit (Ping timeout: 250 seconds) |
03:35:57 | flaviu | dts|pokeball: Oh, sorry |
03:36:04 | flaviu | I went away for a hour |
03:36:06 | flaviu | on it now |
03:37:19 | flaviu | gmpreussner: He lives in eastern time, but he's probably away. See if you can get him tomorrow morning, or if you're not around I'll get him to send you credentials |
03:48:03 | * | dts|pokeball quit (Ping timeout: 244 seconds) |
03:51:20 | * | vendethiel quit (Ping timeout: 250 seconds) |
03:53:04 | * | vendethiel joined #nim |
03:57:24 | * | AMorpork is now known as AFKMorpork |
04:30:07 | flaviu | dts|pokeball: https://gist.github.com/9d2a1e37553eb0c91a15 |
05:04:34 | * | nimnoob joined #nim |
05:12:27 | * | saml_ quit (Quit: Leaving) |
05:13:52 | * | nimnoob quit (Ping timeout: 240 seconds) |
05:21:44 | * | EXetoC quit (Remote host closed the connection) |
05:25:17 | * | vendethiel quit (Ping timeout: 245 seconds) |
05:26:40 | * | vendethiel joined #nim |
05:32:56 | * | BitPuffin quit (Ping timeout: 244 seconds) |
05:40:59 | gmpreussner | flaviu: sounds good. i'm on eastern, too, btw |
05:41:02 | gmpreussner | have a good night |
06:31:17 | * | dyu joined #nim |
07:23:35 | * | gour joined #nim |
07:49:10 | * | BlaXpirit joined #nim |
07:51:30 | * | kapil__ quit (Quit: Connection closed for inactivity) |
08:17:24 | * | gokr quit (Quit: Leaving.) |
08:22:44 | * | kapil__ joined #nim |
08:29:24 | * | BitPuffin joined #nim |
08:33:37 | * | BitPuffin quit (Ping timeout: 240 seconds) |
08:38:38 | * | yglukhov_ joined #nim |
08:43:12 | * | yglukhov_ quit (Ping timeout: 258 seconds) |
08:46:41 | z1y | I'd like to use -o option to specify the output (for easy cleanning up). I've got error http://pastie.org/9799205 . Any idea? |
08:47:20 | z1y | (nim has no problem when -o option is removed.) |
08:50:00 | * | gokr joined #nim |
08:58:37 | * | BlaXpirit quit (Quit: Quit Konversation) |
09:14:57 | * | vendethiel quit (Ping timeout: 240 seconds) |
09:16:33 | * | vendethiel joined #nim |
10:17:11 | * | milosn quit (Remote host closed the connection) |
10:21:08 | * | gokr quit (Quit: Leaving.) |
10:23:45 | * | vendethiel quit (Ping timeout: 272 seconds) |
10:29:03 | * | vendethiel joined #nim |
10:33:52 | * | Demos_ quit (Ping timeout: 240 seconds) |
10:58:58 | * | bjz joined #nim |
11:05:43 | Araq | z1y: use 'c' instead of '-c' |
11:07:25 | * | yglukhov_ joined #nim |
11:20:28 | z1y | Araq: thanks. it's my bad :) |
11:26:39 | * | milosn joined #nim |
11:29:40 | * | gour quit (Remote host closed the connection) |
11:32:44 | * | gour joined #nim |
11:40:43 | * | skyfex joined #nim |
11:41:30 | * | kapil__ quit (Quit: Connection closed for inactivity) |
12:01:33 | * | kapil__ joined #nim |
12:35:32 | * | BitPuffin joined #nim |
12:38:40 | * | z1y quit (Ping timeout: 244 seconds) |
12:40:47 | * | irrequietus joined #nim |
12:45:49 | dyu | Araq: can enums in nim be defined with a specific int type? (u8/u16) |
12:54:50 | * | gour_ joined #nim |
12:57:57 | * | gour quit (Ping timeout: 240 seconds) |
13:02:27 | * | gour_ is now known as gour |
13:12:07 | Araq | dyu: only with the {.size: 2.} pragma |
13:13:41 | flaviu | dom96: Can you update Administration › Property Settings › Property Settings so that it specifies nim-lang.org instead of nimrod-lang.org? |
13:13:59 | flaviu | Some things don't work if there's a redirect |
13:14:09 | Araq | everybody ready for the nim rename? |
13:14:20 | Araq | of the gitbhub repo. that is |
13:15:16 | flaviu | Sure. It should redirect anyway |
13:22:13 | dom96 | Araq: do it. |
13:22:27 | dom96 | flaviu: Hrm. Good idea. |
13:23:23 | flaviu | http://i.imgur.com/EeS1f4j.png |
13:23:24 | dyu | Araq: thanks |
13:24:18 | dom96 | flaviu: DOne. |
13:24:40 | flaviu | looks good, thanks! |
13:25:55 | * | gokr joined #nim |
13:26:41 | flaviu | dom96: Looks like there's another URL field in Administration › Reporting View Settings |
13:28:12 | dom96 | I don't see "Reporting View settings" |
13:28:44 | flaviu | Click on "View Settings" |
13:29:02 | flaviu | looks like they use a longer title where it fits |
13:30:08 | dom96 | Done |
13:58:05 | Araq | Done |
14:02:17 | * | gokr quit (Quit: Leaving.) |
14:03:57 | * | nimnoob joined #nim |
14:32:11 | * | nimnoob quit (Ping timeout: 252 seconds) |
14:32:24 | * | z1y joined #nim |
14:37:05 | * | milosn quit (Ping timeout: 272 seconds) |
14:38:03 | * | vendethiel quit (Ping timeout: 252 seconds) |
14:41:11 | * | vendethiel joined #nim |
14:55:02 | * | dain_ joined #nim |
14:58:55 | * | dain_ quit (Client Quit) |
15:03:21 | * | vendethiel quit (Ping timeout: 252 seconds) |
15:04:53 | * | vendethiel joined #nim |
15:11:09 | * | Boscop_ joined #nim |
15:12:11 | * | Boscop_ is now known as Boscop |
15:22:04 | * | z1y quit (Ping timeout: 250 seconds) |
15:24:07 | * | milosn joined #nim |
15:28:13 | * | darkf quit (Quit: Leaving) |
15:33:28 | milosn | nim is way cool |
15:33:38 | milosn | i wanna buy it all, i can ensure your future success |
15:33:39 | milosn | :D |
15:33:47 | milosn | har har |
15:33:50 | milosn | evening by the way |
15:38:53 | dom96 | Hello milosn |
15:38:57 | dom96 | Buy it! |
15:39:11 | milosn | :) |
15:39:24 | milosn | i am half joking, but we shall see what happens |
15:39:34 | milosn | you OS project i cant fictionally buy you |
15:39:42 | milosn | we can only ensure your success |
15:39:50 | milosn | *you are |
15:41:56 | dom96 | Yes! Write libraries and software in Nim! |
15:42:00 | dom96 | That's how we will succeed. |
15:42:03 | milosn | yes |
15:42:06 | milosn | i agree |
15:42:11 | milosn | i shall when i get some time |
15:42:58 | milosn | we need to make it work fast on redhat tho |
15:43:06 | milosn | so nim needs changes |
15:43:21 | dom96 | what changes? |
15:43:47 | milosn | dunno :) ... maybe it doesnt, but when i was testing some stuff on centos6 it was working crap slow |
15:43:54 | milosn | maybe its my setup ;) |
15:45:21 | milosn | i like centos |
15:45:28 | milosn | and redhat |
15:45:30 | milosn | :) |
15:45:32 | dom96 | Maybe the machine was slow? |
15:45:38 | milosn | dunno maybe |
15:45:46 | milosn | maybe is my favorite word |
15:47:10 | * | BitPuffin quit (Quit: See you on the dark side of the moon!) |
15:50:08 | flaviu | guys, do we has an implementation of sleepsort in nim? |
15:50:14 | flaviu | *have |
15:51:30 | * | kapil__ quit (Quit: Connection closed for inactivity) |
15:52:32 | * | yglukhov_ quit (Ping timeout: 258 seconds) |
15:52:59 | dom96 | flaviu: Don't think so. Write one. |
15:53:02 | dom96 | Put it on Nimble. |
15:53:11 | dom96 | Everybody wants to use that shit. |
15:56:22 | * | BitPuffin joined #nim |
16:06:57 | * | milosn quit (Ping timeout: 245 seconds) |
16:07:16 | * | nimnoob joined #nim |
16:15:16 | * | loz joined #nim |
16:15:52 | loz | hi, is it correct that current version of nim is written in nim? |
16:16:29 | flaviu | loz: yep |
16:16:51 | flaviu | loz: https://github.com/Araq/Nim |
16:18:42 | loz | flaviu: but how can it be built without nim compiler for the first time? |
16:18:52 | dom96 | loz: it was first built in Pascal. |
16:19:15 | flaviu | loz: Now, the c output of the compiler is distributed |
16:19:31 | flaviu | So you download the C code, compile it and get a nim compiler |
16:19:41 | flaviu | and use that compiler to compile the current version |
16:20:34 | loz | so, you wrote nim in c, then rewrote it in nim, and now nim generates c sources for itself? |
16:20:48 | flaviu | loz: No, the nim compiler targets C. |
16:20:53 | loz | s/c/pascal/ |
16:21:14 | flaviu | loz: Well, an automated tool was used to do most the translation from pascal to nim |
16:21:24 | dom96 | loz: It's always generated C sources. |
16:21:32 | loz | oh, sounds awesome) |
16:23:34 | loz | how old is nim? there is a lot of ppl here |
16:24:03 | flaviu | from 2006, I think |
16:26:22 | loz | what is tinyc? your own c compiler? |
16:26:49 | flaviu | loz: no |
16:27:22 | flaviu | nim needed some sort of compile-time function evaluation, so tinyc was investigated as a fast, embedded C compiler |
16:27:47 | flaviu | It was abandoned in favor of an internal virtual machine |
16:28:09 | loz | internal vm? why does nim need one? |
16:28:14 | flaviu | but tinyc is a project totally independent of nim |
16:28:25 | flaviu | loz: Each time you run a macro, that code is interpreted |
16:28:33 | flaviu | same with all variables declared as const |
16:28:45 | * | vendethiel quit (Ping timeout: 264 seconds) |
16:29:51 | loz | so, there is no vm at runtime? |
16:30:36 | loz | and this vm is kind of nim interpreter? |
16:31:31 | onionhammer | dom96 hows scgi async coming? |
16:33:17 | dom96 | onionhammer: It's not coming at all. |
16:33:27 | dom96 | onionhammer: Using asynchttpserver works well enough. |
16:33:34 | * | vendethiel joined #nim |
16:34:55 | BitPuffin | it's cumming huaouoguh |
16:35:49 | BitPuffin | http://youtu.be/BdVCfDioTcY |
16:39:17 | * | nimnoob quit (Ping timeout: 240 seconds) |
16:40:51 | flaviu | loz: Yes, and yes |
16:41:11 | flaviu | I don't think there have been any efforts to have the compiler as a library\ |
16:41:33 | flaviu | so the VM is not available at runtime, optionally or not. |
16:43:08 | flaviu | BitPuffin: That's not related to nim, it'd would fit better in #nim-offtopic. |
16:43:53 | loz | flaviu: so it is possible to keep vm in runtime? |
16:43:54 | dom96 | From what I recall there was work done to get the VM at runtime. |
16:44:31 | flaviu | loz: Not without a significant amount of work. |
16:44:54 | BitPuffin | flaviu: nobody was talking about cumming in #nim-offtopic, don't be such a police, it's not like I was talking for ages about something offtopic |
16:44:58 | * | milosn joined #nim |
16:50:53 | * | yglukhov_ joined #nim |
16:52:08 | * | nimnoob joined #nim |
16:52:14 | * | yglukhov_ quit (Client Quit) |
17:06:38 | dom96 | BitPuffin: inappropriate much? :P |
17:06:59 | BitPuffin | dom96: arnie is always appropriate |
17:08:26 | * | loz quit (Read error: No route to host) |
17:08:35 | * | loz joined #nim |
17:11:52 | * | nimnoob quit (Ping timeout: 240 seconds) |
17:16:07 | * | vendethiel quit (Ping timeout: 244 seconds) |
17:19:00 | * | vendethiel joined #nim |
17:22:41 | onionhammer | dom96 boo |
17:25:50 | BitPuffin | the language? |
17:28:17 | dom96 | onionhammer: What's wrong with using asynchttpserver? |
17:36:01 | onionhammer | i have to reconfigure nginx :p |
17:36:07 | onionhammer | and my app |
17:37:14 | * | Trustable joined #nim |
17:54:25 | * | ARCADIVS quit (Quit: ARCADIVS) |
18:12:37 | * | loz quit (Ping timeout: 240 seconds) |
18:18:14 | * | AFKMorpork is now known as AMorpork |
18:18:45 | * | gokr joined #nim |
18:33:05 | * | nimnoob joined #nim |
18:38:58 | * | vendethiel quit (Ping timeout: 264 seconds) |
18:41:33 | * | dyu quit (Quit: Leaving) |
18:47:33 | onionhammer | dom96 |
18:47:44 | onionhammer | Found deprecated babel package directory, would you like to rename it to nimble? [y/N] |
18:47:51 | onionhammer | Error: unhandled exception: No such file or directory [OSError] |
18:48:27 | onionhammer | then after upgrading package list, unhandled exception: Package not found. [ENimble] |
18:48:27 | dom96 | yeah, that happens unfortunately. |
18:48:37 | dom96 | Seems I forgot to fix that bug. |
18:48:53 | * | vendethiel joined #nim |
18:49:20 | dom96 | onionhammer: Just remove .nimble and .babel. |
18:49:29 | dom96 | Reinstall whatever is needed. |
18:50:16 | dom96 | You sure that package exists though? |
18:50:33 | onionhammer | im trying to instll nimble |
18:51:17 | dom96 | oh dear. |
18:51:25 | dom96 | Forgot to rename it in packages.json lol |
18:51:28 | * | nimnoob quit (Ping timeout: 265 seconds) |
18:51:48 | onionhammer | your directions also still reference nimrod |
18:51:50 | onionhammer | nimrod c -r src/nimble install |
18:52:23 | dom96 | Where? |
18:53:49 | onionhammer | in your readme |
18:53:54 | onionhammer | https://github.com/nim-lang/nimble |
18:53:56 | dom96 | Renamed it. Should install now. |
18:54:06 | onionhammer | there are several mentions of nimrod |
18:56:29 | dom96 | onionhammer: fixed. |
18:57:05 | * | loz joined #nim |
19:04:12 | flaviu | dom96: If you have time, set up google webmaster tools for the website. It gives information on which search terms are used. |
19:05:24 | dom96 | Doesn't analytics already do that? |
19:05:33 | flaviu | Also, I've sent a PR for analytics: https://github.com/Araq/Nim/pull/1779 |
19:05:33 | flaviu | theindex.html doesn't get them, but that's because of trouble with global variables |
19:05:46 | flaviu | dom96: Only the clicks that come from http google. |
19:06:02 | flaviu | https google doesn't directly give that information |
19:08:53 | onionhammer | dom96 for some reason im able to build wit jester on my mac but not my cubox (w/ debian) |
19:08:55 | onionhammer | lib/core/macros.nim(320, 23) Error: macro expects a node of kind: nnkDo |
19:09:05 | onionhammer | its complaining about routes: macro |
19:09:49 | * | vendethiel quit (Ping timeout: 245 seconds) |
19:10:31 | dom96 | different nim versions? |
19:10:47 | dom96 | update both and bootstrap if you're unsure |
19:11:13 | * | nimnoob joined #nim |
19:11:50 | * | dts|pokeball joined #nim |
19:12:21 | onionhammer | they're both completely updated |
19:12:25 | onionhammer | fresh install of nim on the cubox |
19:12:37 | onionhammer | completely fresh install of nimble and jester |
19:15:07 | * | EXetoC joined #nim |
19:22:23 | onionhammer | hm |
19:22:28 | onionhammer | code all looks the same |
19:23:09 | dom96 | weird. |
19:23:14 | Araq | onionhammer: not weird |
19:23:18 | Araq | the AST changed |
19:23:19 | dom96 | lol |
19:23:33 | Araq | let's see |
19:23:43 | dom96 | Then they aren't both the same versions? |
19:24:00 | onionhammer | that line does look kinda hacky |
19:24:03 | Araq | dom96: I got rid of implicit nkDo nodes for you |
19:24:07 | onionhammer | ifStmtBody.add body[i][2].skipDo().transformRouteBody(thisRouteSym) |
19:24:20 | Araq | and aparently that breaks things |
19:24:59 | Araq | onionhammer: where is your skipDo defined? |
19:25:04 | dom96 | Araq: Yeah, that's what I thought it was. |
19:25:27 | onionhammer | Araq skipdo is in jester |
19:25:32 | onionhammer | line 540 |
19:28:29 | dom96 | well the reason is simple |
19:28:47 | dom96 | Remove skipDo and it'll work. |
19:28:55 | dom96 | onionhammer: Why does that look hacky? |
19:29:05 | * | vendethiel joined #nim |
19:29:09 | Araq | dom96: no. |
19:29:26 | Araq | fix your skipDo that it skips *optional* dos |
19:29:59 | dom96 | Araq: I know. |
19:35:17 | * | loz quit (Read error: Connection timed out) |
19:42:32 | * | nimnoob quit (Ping timeout: 244 seconds) |
19:43:35 | * | gour left #nim ("Leaving") |
19:48:31 | * | Demos_ joined #nim |
19:49:47 | dom96 | Araq: Hrm. You possibly broke the routes macro in Jester. |
19:50:24 | dom96 | c:\users\dominik\git\jester\jester.nim(647, 27) Error: type mismatch: got (array |
19:50:24 | dom96 | [0..19, string]) but expected 'array[0..9, string]' |
19:50:55 | * | vendethiel quit (Ping timeout: 265 seconds) |
19:50:56 | dom96 | That's on a line which generates: var reMatches: arraq[MaxSubpatterns, string] |
19:51:00 | dom96 | Any ideas? |
19:53:58 | * | vendethiel joined #nim |
19:55:47 | notfowl | dom96, dumpcode to see that the ast didnt change? |
19:55:56 | notfowl | dumptree* |
20:03:54 | * | nimnoob joined #nim |
20:05:23 | dom96 | notfowl: I can't check against an older version cause I don't have it. |
20:15:19 | flaviu | git! |
20:18:03 | notfowl | dom96, check what the macro outputs vs dumptree: some var decl |
20:18:40 | Araq | dom96: well you should use MaxCaptures |
20:18:45 | Araq | that changed to 20 |
20:18:45 | flaviu | git checkout 'HEAD@{20 days ago}' |
20:19:01 | notfowl | you should just use re.MaxCaptures in the parseExpr though dom96 |
20:19:10 | Araq | yup |
20:19:27 | flaviu | wouldn't it be better to export a distinct type alias instead of a constant? |
20:19:48 | flaviu | type Captures* = distinct array[20, string] |
20:20:02 | flaviu | so that users have harder time screwing up encapsulation |
20:20:36 | notfowl | flaviu, if you know you're capturing less than 20 things you dont need the array to be size 20 |
20:20:57 | * | nimnoob quit (Ping timeout: 240 seconds) |
20:20:57 | flaviu | pfft, small inefficiencies. |
20:21:24 | notfowl | small ones are the worst |
20:21:58 | notfowl | they accumulate quickly and you won't even be paying attention to them because they're minor |
20:22:05 | flaviu | Sure, if it's in performance critical code. Regex doesn't tend to be used in that sort of code. |
20:22:23 | Araq | flaviu: you are wrong |
20:22:27 | flaviu | At the point where it becomes a problem, you should hand-code your parsing so the optimizer can have a stab at it. |
20:22:44 | Araq | regex are performance critical almost like nothing else |
20:23:08 | flaviu | I'm sorry, but O |
20:23:19 | flaviu | I'm certian most people don't even know about backtracking |
20:23:28 | Araq | yes |
20:23:43 | Araq | they assume they are fast and run them over gigabytes of data |
20:23:53 | flaviu | a bit of extra stack allocation won't hurt anything, and if your profiling really shows its a problem then you can use cast to fix it |
20:24:01 | Araq | their ignorance is exactly the reason why they need to be fast |
20:25:07 | flaviu | 120 bytes of extra stack allocation is insignificant compared to exponential backtracking. I think it costs the same amount no matter how much you allocate on the stack |
20:25:24 | flaviu | since all you need to do is increment the stack size |
20:26:45 | dom96 | Araq: notfowl: there is no such thing as re.MaxCaptures |
20:27:16 | flaviu | Anyway, I won't argue. No point in making unnecessary changes. |
20:28:04 | notfowl | dom96, export it from jester |
20:29:00 | notfowl | dom96, er its MaxSubpatterns |
20:29:11 | dom96 | That is what I am using! |
20:29:38 | notfowl | dom96, no you have a number in there which you replace with the symbol, just use re.Maxsubpatterns from the parseExpr() call |
20:29:46 | dom96 | notfowl: look down |
20:30:04 | dom96 | 2 lines down to be precise. |
20:30:37 | notfowl | i saw it |
20:31:09 | notfowl | type mismatch: got (array |
20:31:09 | notfowl | [0..19, string]) but expected 'array[0..9, string] |
20:31:46 | notfowl | its getting the new one but expecting the old one? maybe you have 2 stdlibs somewhere |
20:32:12 | dom96 | Even if I change from 10 to 20 it still gives the same error. |
20:33:26 | dom96 | even if I remove the sym it still gives the same error |
20:33:42 | notfowl | dom96, i believe it is working correctly but some other function expects array[10,string] |
20:34:15 | notfowl | i cant tell where that would be from though |
20:37:25 | dom96 | I got it |
20:42:29 | dom96 | Fixed. |
20:43:03 | notfowl | what was the issue |
20:43:17 | dom96 | PRequest.matches |
20:46:22 | dv- | http://pastebin.com/Uhfvxcd5 can't install aporia |
20:47:11 | dom96 | Try nimble install aporia@#head |
20:47:56 | dv- | thanks |
20:48:03 | dv- | man, nim builds are so fast |
20:48:31 | flaviu | How do ctags for nim sound? |
20:48:54 | dom96 | I would prefer if somebody took a look at fixing idetools |
20:48:55 | dom96 | but sure. |
20:49:00 | dom96 | Every little helps. |
20:49:08 | dom96 | (Don't sue me Tesco) |
20:59:38 | dom96 | Araq: Any chance nimfix could be made into a nimble package? |
21:00:11 | Araq | once we find a good solution for the compiler source dependency, it's easy to do that |
21:09:25 | * | drewsrem joined #nim |
21:10:44 | dom96 | Araq: Why does nimfix still try to fix the stdlib when all I want it to fix is one file!? |
21:11:18 | Araq | it doesn't do that anymore |
21:12:19 | Araq | look at nimfix/nimfix.nim if you don't believe me |
21:12:30 | Araq | --wholeProject is the old behaviour now |
21:12:50 | dom96 | Araq: What does this mean then? |
21:12:51 | dom96 | c:\users\dominik\git\nimrod\lib\pure\rawsockets.nim(262, 20) Error: expression ' |
21:12:51 | dom96 | Port(s.s_port)' cannot be called |
21:13:17 | Araq | well guess what |
21:13:31 | Araq | nimfix has to be --cs:none in order to be able to fix old code |
21:13:53 | Araq | rawsockets doesn't compile with cs:none and ta-da! nimfix is useless |
21:15:01 | * | Demos joined #nim |
21:15:17 | dom96 | then what am I supposed to do? |
21:17:57 | * | nimnoob joined #nim |
21:18:16 | dom96 | A lot of code will use rawsockets so lots of people will run into this problem. |
21:18:21 | * | Demos_ quit (Ping timeout: 258 seconds) |
21:18:26 | dom96 | Can I make rawsockets compile in cs:none? |
21:19:05 | dom96 | system.nim doesn't even compile with --cs:none |
21:19:07 | dom96 | I don't get this. |
21:19:16 | dom96 | somehow nimfix can manage to get through it |
21:20:52 | * | vendethiel quit (Ping timeout: 240 seconds) |
21:21:18 | * | vendethiel joined #nim |
21:22:20 | * | starless joined #nim |
21:22:22 | * | nimnoob quit (Ping timeout: 240 seconds) |
21:29:08 | Araq | dom96: what file do you run nimfix on? |
21:31:20 | * | E joined #nim |
21:31:28 | dom96 | jester.nim |
21:31:44 | * | E is now known as Guest19506 |
21:32:11 | gmpreussner | is there a way to tell the compiler where to put the nimcache? also, how can i prevent it from littering my src folder when i compile individual modules for testing? i'd like to have all intermediate files in a single location, if possible |
21:33:05 | dom96 | gmpreussner: --nimcache:pathHere |
21:33:18 | gmpreussner | yeah, just found it in the docs, thx! |
21:33:27 | dom96 | and --out:path/to/my/bin.exe |
21:34:47 | Araq | dom96: let me push a hack and let's see if it works |
21:34:50 | dom96 | hello and welcome Guest19506 |
21:34:58 | dom96 | Araq: ok thx |
21:37:29 | Araq | btw nimfix defines 'nimfix' as a symbol. you can check for that in rawsockets |
21:38:43 | Araq | also nimfix prefers module.pretty.nim over module.nim |
21:39:00 | Araq | you can make it process "fake" modules instead |
21:39:13 | Araq | hrm there is rawsockets.pretty.nim already |
21:39:37 | Araq | oh ... |
21:39:48 | Araq | I never pushed that file ... :-/ |
21:40:32 | Araq | dom96: did you change rawsockets much in the last months? |
21:41:17 | dom96 | Last change was 11th of October |
21:44:48 | Araq | dom96: try it again. perhaps with the new --bestEffort switch |
21:45:37 | dom96 | was that commit of rawsockets.pretty.nim intentional? |
21:46:00 | Araq | yeah |
21:46:12 | Araq | so you can see what I did to it |
21:46:37 | * | starless quit (Quit: WeeChat 0.4.2) |
21:48:59 | dom96 | Araq: Got further with the --bestEffort switch but then it crashed. |
21:49:07 | dom96 | I'll just fix jester manually... |
21:49:33 | Araq | shouldn't that be up to date since a while anyway? |
21:50:15 | dom96 | I only am now getting rid of the type prefixes. |
21:51:19 | * | Guest19506 quit (Quit: Page closed) |
21:51:52 | dom96 | What else does nimfix do apart from fixing the type prefixes? |
21:52:09 | dom96 | Because that's a simple search and replace... |
21:53:34 | Araq | it also can suggest spellings for identifiers |
21:53:50 | Araq | also you're dead wrong that it is a simple search and replace |
21:54:16 | Araq | it's not. it's incredibly complex to do it right |
21:57:18 | Araq | but since it fails so often in practice, you're right that we better should have picked a different approach, I guess. |
21:57:30 | Araq | this wasn't obvious when I wrote it though :P |
21:58:23 | * | EastByte quit (Quit: WeeChat 1.0.1) |
22:00:20 | dom96 | oh well. |
22:00:40 | dom96 | I would write a different tool but I doubt there is that much left out there that would need it. |
22:23:47 | onionhammer | dom96 i think theres some more issues w/ jester |
22:23:51 | onionhammer | beyond what u just fixed |
22:24:04 | onionhammer | im getting a bad gateway for the default route |
22:24:13 | onionhammer | on debian, but works fine on osx |
22:26:44 | dom96 | Maybe your code crashes? |
22:26:53 | dom96 | should give you a stack trace if you're running it in debug mode |
22:27:11 | onionhammer | nope |
22:27:12 | onionhammer | it keeps running |
22:27:41 | dom96 | it should keep running |
22:27:50 | dom96 | jester will catch the error and return it to your browser |
22:28:02 | onionhammer | i'll try. |
22:29:26 | onionhammer | built it w/ just nim c index.nim, not release |
22:29:32 | onionhammer | no exceptions logged |
22:29:42 | onionhammer | GET / |
22:29:43 | onionhammer | 502 Bad Gateway {Content-Type: text/html, Content-Length: 182} |
22:30:07 | dom96 | What's your code? |
22:31:42 | onionhammer | sec |
22:32:52 | onionhammer | you should export Future module |
22:33:08 | dom96 | you mean type? |
22:33:39 | dom96 | i'd rather teach you to import asyncdispatch :P |
22:33:57 | onionhammer | erm yeah asyncdispatch rather |
22:35:52 | onionhammer | gah the ports in use :| |
22:37:55 | * | gmpreussner quit (Quit: Konversation terminated!) |
22:38:14 | onionhammer | dom96 http://pastebin.com/fF6zxNNu |
22:38:21 | onionhammer | that code yields "bad gateway" |
22:41:14 | dom96 | onionhammer: Are you accessing it via nginx or just straight to jester? |
22:41:51 | * | j3rky joined #nim |
22:41:53 | * | j3rky is now known as gmpreussner |
22:41:54 | * | irrequietus quit () |
22:42:30 | onionhammer | straight jester dom96 |
22:42:50 | onionhammer | but i tried both |
22:43:05 | dom96 | What content does it respond with? |
22:45:16 | onionhammer | <html xmlns="502">http://www.w3.org/1999/xhtml"><head><title>502 Bad Gateway</title></head><body style="text-align: center;"><h1>502 Bad Gateway</h1><hr/><p>Jester 0.1.0</p></body></html> |
22:48:15 | dom96 | onionhammer: That can only happen if you have no 'resp' in your route |
22:48:52 | onionhammer | look at the pastebin |
22:49:17 | dom96 | I know. |
22:49:27 | dom96 | But I don't see any other way. |
22:50:00 | * | Pisuke quit (Quit: WeeChat 1.1-dev) |
22:50:00 | dom96 | You must be compiling something else. |
22:50:06 | onionhammer | imo it still has to do with your macro change |
22:50:15 | onionhammer | or araqs rather |
22:50:52 | Araq | why is settings.port = Port(5000) within the 'routes' DSL? |
22:51:21 | dom96 | Yeah. May wanna get rid of that. |
22:51:32 | dom96 | It shouldn't cause problems but you never know. |
22:51:41 | onionhammer | dom96 http://pastebin.com/UMgdtKDA |
22:52:02 | dom96 | 5000 is default port anyway |
22:52:06 | onionhammer | Araq because thats the only place where the settings variable can be accessed afaik |
22:52:17 | onionhammer | and I got rid of it and its the same result |
22:52:31 | onionhammer | look at the pastebin |
22:52:42 | onionhammer | it's commented out |
22:53:32 | dom96 | The proper way of doing it is to create your own settings var. |
22:53:38 | dom96 | Well. |
22:53:41 | dom96 | The temporary way |
22:53:49 | dom96 | I was going to add a 'settings' block |
22:54:35 | onionhammer | the way jester used to behave was better |
22:54:45 | onionhammer | or the initialization was better |
22:55:54 | onionhammer | regardles |
22:56:04 | onionhammer | it doesnt work even when i dont specify the settings |
22:56:19 | dom96 | but favicon works? |
22:56:26 | dom96 | I guess that's in your public dir? |
22:58:05 | dom96 | Just make sure all your stuff is the same. |
22:58:11 | dom96 | Your nim compile was already different |
22:58:17 | dom96 | even though you were sure it wasn;t |
22:58:19 | dom96 | *wasn't |
22:58:54 | onionhammer | what? |
22:58:57 | dom96 | *compiler |
22:59:34 | dom96 | If the nnkDo error came up on your Debian box but not your Mac then obviously you had different Nim compiler's on both machines. |
22:59:55 | onionhammer | i got latest on my debian box today |
22:59:59 | onionhammer | from a fresh directory |
23:00:33 | gmpreussner | dom96: can i use the --out switch to specify the output directory of 'nim doc' and 'nim doc2' ? |
23:00:51 | Araq | gmpreussner: yeah you can |
23:00:55 | dom96 | onionhammer: Yes, so your mac probably doesn't have latest. |
23:00:58 | gmpreussner | awesome thanks |
23:01:06 | Araq | but people complained about it .. ;-) |
23:01:24 | Araq | gmpreussner: er... the output file, I think, not dir |
23:01:27 | onionhammer | dom96 i got latest today on my mac too |
23:01:49 | dom96 | onionhammer: git pull again on both |
23:01:53 | dom96 | and reinstall jester on both too |
23:02:14 | onionhammer | the one on debian is a fresh install of both nimble and jester |
23:02:19 | gmpreussner | Araq: doc2 is recursive though, right? |
23:02:45 | gmpreussner | i'd like doc2 to put everything into ./docs for example |
23:02:51 | Araq | dunno. I use koch |
23:03:16 | gmpreussner | ok, i'll take a look at koch then |
23:03:20 | gmpreussner | i'm creating a nim project file template for Kate. will write a blog post later. |
23:03:46 | Araq | er ... I don't think *you* can use koch for that |
23:05:00 | gmpreussner | ok, i'll just see what happens |
23:05:11 | gmpreussner | im afk for dinner ttyl |
23:05:15 | Araq | I type "koch web" to rebuilt all docs and then I can upload them to the server. "koch web" uses nimweb(?) which then calls doc2 or something like that |
23:05:48 | onionhammer | dom96 everything is latest/latest/latest |
23:06:04 | dom96 | onionhammer: And it still only happens on your debian box? |
23:06:09 | onionhammer | correct |
23:06:19 | dom96 | try compiling in release on your debian box |
23:06:25 | dom96 | *release mode |
23:06:51 | Araq | debian runs some local stuff on port 5000 and thus it doesn't work. |
23:07:07 | onionhammer | Araq this just started happening w/ the latest version of jester/etc |
23:07:23 | onionhammer | it has been running fine up until today when i decided to upgrade nimrod->nim |
23:07:34 | Araq | well guess what |
23:07:34 | flaviu | Varriount: Are you around? |
23:07:38 | Araq | it still runs |
23:07:45 | Araq | and blocks that port |
23:07:50 | onionhammer | it doesnt block the port |
23:07:51 | onionhammer | obviously |
23:07:57 | onionhammer | jester replies 502 |
23:08:02 | onionhammer | thats not a blocked port |
23:08:26 | Araq | restart your machine |
23:08:56 | onionhammer | okay.. |
23:09:01 | * | onionhammer quit (Quit: WeeChat 1.0.1) |
23:09:41 | flaviu | or decrease the timeout |
23:09:45 | Araq | hrm I'm not used to people doing what I say |
23:10:16 | EXetoC | it hijacks a common testing port? oh well |
23:10:32 | EXetoC | or development port |
23:10:32 | dom96 | He could've just tried a different port ... |
23:10:46 | dom96 | flaviu: there is no time out |
23:11:22 | flaviu | I had trouble with linux not releasing a port until after some time if it wasn't properly closed |
23:11:38 | Araq | yup. same here |
23:12:01 | flaviu | But you should never have to reboot linux |
23:12:20 | * | onionhammer joined #nim |
23:12:28 | EXetoC | do you know about SO_REUSEADDR? if you even had the ability to set it |
23:12:38 | dom96 | SO_REUSEADDR is already set |
23:12:47 | dom96 | Which might be causing the issues actually. |
23:13:24 | onionhammer | dom96 araq okay, rebooted |
23:13:28 | onionhammer | rebuilt test.nim |
23:13:30 | onionhammer | reran test.nim |
23:13:35 | onionhammer | 502 bad gateway from jester |
23:14:02 | dom96 | have you tried release mode? |
23:14:35 | * | dts|pokeball quit (Read error: Connection reset by peer) |
23:15:30 | dom96 | Better yet, if you want you can give me access to the machine and I can try to figure out what's wrong. |
23:15:48 | onionhammer | dom96 same |
23:16:00 | flaviu | onionhammer: Can you gist your code |
23:16:11 | onionhammer | flaviu its on pastebin up ^ |
23:16:22 | dom96 | flaviu: he did. It's a simple hello world jester, i.e. the example app. |
23:16:28 | dom96 | onionhammer: ^^^ |
23:16:50 | onionhammer | i cant give you access to my server.. |
23:17:13 | Araq | that's because your clock listens to port 5000 to synchronize with the global time. You need to do sudo /etc/init.d/transmission-daemon stop |
23:17:38 | onionhammer | lol |
23:18:17 | * | drewsrem quit (Quit: Leaving) |
23:18:33 | dom96 | onionhammer: You can create a new user for me if that helps? |
23:18:46 | flaviu | he already figured it out |
23:18:49 | flaviu | I think |
23:19:11 | onionhammer | hmm? |
23:19:12 | Araq | because he lol'ed? |
23:19:16 | flaviu | oh |
23:19:16 | onionhammer | no |
23:19:20 | onionhammer | i was laughing at araqs joke :p |
23:19:37 | onionhammer | dom96 i could, but nim, nimble, etc are all under my user |
23:19:45 | flaviu | onionhammer: Check this? http://www.cyberciti.biz/tips/linux-display-open-ports-owner.html |
23:20:16 | dom96 | onionhammer: I guess you may as well try a different port... |
23:21:00 | onionhammer | flaviu if the port is in-use/blocked, then how come jester replies? |
23:21:14 | flaviu | I don't understand what the problem is then |
23:22:06 | flaviu | oh, it looks like an internal error in jester? |
23:22:36 | * | Mat4 joined #nim |
23:22:42 | Mat4 | hello |
23:23:03 | flaviu | I haven't been very helpful then, carry on with what you're doing I guess |
23:24:38 | * | dts|pokeball joined #nim |
23:25:09 | Mat4 | I have here the following line: 'state2.storeSlot slot, uInt16((content and 0xF000 shr 8) + content and 0x0F + 256)' |
23:26:04 | Mat4 | is there a way to code this line with less parentheses ? |
23:26:45 | Araq | ldlework: ping. |
23:26:51 | ldlework | hi |
23:26:53 | Araq | Mat4: no |
23:27:31 | Araq | ldlework: see what happened. somebody wants fewer () |
23:27:45 | dom96 | onionhammer: put this below your `resp`: response.data[0] = TCActionSend |
23:28:22 | flaviu | Araq: Of course there is! let v1 = content and 0xF000 shr 8; let v2 = v1 + content and 0x0F + 256; state2.storeSlot slot, uint64 v2 |
23:28:48 | Mat4 | right, thanks for remembering |
23:29:58 | onionhammer | dom96 sec |
23:30:55 | onionhammer | dom96 same |
23:31:17 | dom96 | ok, let's rule out macros. |
23:31:17 | onionhammer | dom96 the "get "/"" code i specify doesnt even run |
23:31:34 | onionhammer | i tried putting in "echo hello" inside my get before and it never runs |
23:31:37 | dom96 | try https://github.com/dom96/jester/blob/master/tests/example2.nim |
23:31:37 | onionhammer | just goes to bad gateway |
23:32:09 | dom96 | perhaps it's not matching the route for some reason |
23:32:28 | dom96 | example2 should give us some clues |
23:32:44 | onionhammer | dom96 that one works |
23:32:47 | onionhammer | GET / |
23:32:49 | onionhammer | TCAct |
23:33:04 | dom96 | TCAct? |
23:33:22 | onionhammer | got cut off.. |
23:33:26 | onionhammer | GET / |
23:33:28 | onionhammer | TCActionRawy |
23:33:34 | onionhammer | sorry, -y |
23:33:43 | dom96 | What are you using to request stuff from jester? |
23:33:50 | onionhammer | curl right now |
23:34:01 | onionhammer | curl and chrome |
23:34:10 | dom96 | have you tried curl on mac? |
23:34:21 | onionhammer | yes |
23:38:28 | dom96 | that is strange, check the code the macro generates and see if you can figure out what's happening. |
23:43:03 | onionhammer | the routes macro? |
23:44:02 | onionhammer | https://gist.githubusercontent.com/onionhammer/d9e1bad682b15f775e08/raw/d930513f8b913c4616d594802b8b2e5308fcae98/gistfile1.txt |
23:44:18 | onionhammer | i switched to /index instead of / |
23:44:20 | onionhammer | btw |
23:45:15 | * | z1y joined #nim |
23:47:39 | dom96 | onionhammer: give me the code, not the ast. |
23:48:12 | onionhammer | https://gist.github.com/onionhammer/d9e1bad682b15f775e08 |
23:48:17 | onionhammer | its in the comment |
23:48:31 | Araq | onionhammer, dom96 are you sure that it is not "simply" the new async core |
23:48:46 | Araq | and not the changed macros? |
23:49:04 | onionhammer | im not sure of anything |
23:49:16 | Araq | run it with --gc:none then |
23:49:59 | onionhammer | it still gives bad gateway |
23:49:59 | * | z1y quit (Ping timeout: 272 seconds) |
23:50:26 | Araq | run it with --gc:markAndSweep |
23:50:32 | Araq | run it with --gc:boehm |
23:51:01 | Araq | run it with -d:useSysAssert -d:useGcAssert |
23:51:17 | Araq | run it via GDB |
23:51:37 | Araq | run it with valgrind |
23:52:07 | Araq | compile the windows version and run it under wine |
23:52:18 | gokr | Muahaa! |
23:52:25 | gokr | Sorry. :) |
23:53:05 | * | milosn quit (Read error: Connection reset by peer) |
23:53:13 | onionhammer | araq ok done, still says 502 bad gateway :P |
23:53:18 | Araq | well I have to take advantage of the fact the OP is listening to me |
23:53:20 | gokr | Wine is actually quite impressive, our client runs in it with 3D graphics and all. Well, some stuff doesn't work but still. |
23:53:39 | * | flaviu quit (Remote host closed the connection) |
23:53:56 | * | flaviu joined #nim |
23:54:05 | * | milosn joined #nim |
23:54:30 | gokr | We used it to do some load tests - fired up 10 different wines on EC2 boxes, like... 30 of them, to simulate 300 concurrent users... quite fun. |
23:55:09 | Araq | yup. Wine also doesn't replace mempy's implementation from memmove to memcpy just because the spec says it can do that |
23:55:21 | Araq | *memcpy's implementation |
23:56:08 | Araq | (broke Flash among other things iirc) |
23:56:34 | skyfex | There seems to be a function missing from gtk/gdk.nim |
23:56:36 | skyfex | "gdk_cairo_create" |
23:56:51 | skyfex | I suppose along with the other gdk_cairo... functions |
23:57:07 | skyfex | Is gdk.nim auto-generated always, or manually maintained? |
23:57:20 | Araq | manually maintained |
23:57:29 | Araq | but there is a gtk3 wrapper in the works |
23:57:32 | Mat4 | ciao |
23:57:35 | dom96 | onionhammer: huh, see that 'nil'? |
23:57:39 | * | Mat4 left #nim (#nim) |
23:57:48 | dom96 | after copyParams? That should be your routes body I think |
23:58:20 | Araq | skyfex: check it out. I dunno in what state it is though |
23:58:41 | dom96 | onionhammer: yeah. My bad lol |
23:59:04 | dom96 | That said. There is no way you can be running the same nim compiler on both your Mac and your debian box. |
23:59:12 | dom96 | Because one has the nnkDo the other doesn't. |
23:59:23 | Araq | yup |
23:59:56 | skyfex | Araq: Will the gtk2 wrapper be deprecated, or should I create a pull request for the missing functions? |