<< 16-02-2018 >>

00:03:51*endragor joined #nim
00:08:05*endragor quit (Ping timeout: 240 seconds)
00:25:13shodan45https://www.techempower.com/benchmarks/#section=data-r15
00:26:18shodan45I assume nobody has tried to improve nim's results in that
00:27:33shodan45but even still, nim/jester does surprisingly poorly
00:29:31shodan45I don't understand how interpreted languages are out performing nim by such a large margin
01:08:39*SenasOzys quit (Remote host closed the connection)
01:11:25FromGitter<gogolxdong> Is there any DHT library in Nim?
01:17:09*d10n-work quit (Quit: Connection closed for inactivity)
01:35:34FromGitter<sclee15> @shodan45 yes i think so too. Crystal made huge jump for this round.
01:39:45*j_rod_s joined #nim
01:46:27*j_rod_s quit (Ping timeout: 240 seconds)
02:10:48*j_rod_s joined #nim
02:32:05*chemist69 quit (Ping timeout: 255 seconds)
02:45:48*chemist69 joined #nim
02:55:04FromGitter<honewatson> @shodan45 the set up means Jester only uses 20% of available CPUs. Neither db_postgres.nim json.nim are particularly optimised. I did find that asyncpg was generally 4x faster for me than db_postgress https://github.com/cheatfate/asyncpg
02:56:08*vlad1777d quit (Ping timeout: 256 seconds)
02:57:26FromGitter<honewatson> Anyway Techempower web accepts pull requests if you want to improve it.
02:59:18*endragor joined #nim
02:59:57*endragor_ joined #nim
03:00:03*yglukhov joined #nim
03:01:13*endragor_ quit (Remote host closed the connection)
03:03:44*endragor quit (Ping timeout: 255 seconds)
03:04:31*yglukhov quit (Ping timeout: 248 seconds)
03:15:34*vivus quit (Quit: Leaving)
03:39:32*endragor joined #nim
03:55:47*j_rod_s quit (Ping timeout: 255 seconds)
04:05:41*rinzai quit (Ping timeout: 255 seconds)
04:26:36*radagast_04 joined #nim
04:31:48*dddddd quit (Remote host closed the connection)
04:36:33*j_rod_s joined #nim
04:51:07*rinzai joined #nim
04:55:23*rinzai quit (Ping timeout: 256 seconds)
05:23:43*mal`` quit (Ping timeout: 256 seconds)
05:32:38*mal`` joined #nim
05:44:49*rinzai joined #nim
05:49:05*rinzai quit (Ping timeout: 240 seconds)
05:55:04*Snircle quit (Quit: Textual IRC Client: www.textualapp.com)
05:58:17*j_rod_s quit (Ping timeout: 256 seconds)
06:07:15*SenasOzys joined #nim
06:18:42*nsf joined #nim
06:21:55*xkapastel quit (Quit: Connection closed for inactivity)
06:38:38*rinzai joined #nim
06:42:48*rinzai quit (Ping timeout: 240 seconds)
06:54:49FromGitter<honewatson> Testing AsyncHttpServer is around 40000 req/s with threads on and threads off.
06:55:33FromGitter<honewatson> On Ubuntu it goes from around 57000 req/s to 180000 req/s with threads on
06:55:41FromGitter<honewatson> Same code
07:04:57*SenasOzys quit (Ping timeout: 240 seconds)
07:09:11Araqnow you only need a user base that performs 180K req/s
07:09:54Araqwhen you do please donate $1000_000 to Nim. will be peanuts for you then.
07:10:56*solitudesf joined #nim
07:24:05*endragor quit (Remote host closed the connection)
07:24:13*PMunch joined #nim
07:29:33FromGitter<sclee15> hehe.. 180K that's huge!
07:31:34*gokr joined #nim
07:32:24*rinzai joined #nim
07:37:13*rinzai quit (Ping timeout: 265 seconds)
07:48:27*Ven`` joined #nim
07:52:46FromGitter<honewatson> I feel like Mac is overrated.
07:53:45PMunchYou figured that out now?
07:54:29FromGitter<honewatson> No Ive known it for years. Its a work computer.
07:54:47Araqhave they fixed that USB issue?
07:55:27Araqdelete files on a USB stick, it gets put into the wastebin
07:55:36Araqwhich is on the same device :-)
07:56:07Araqyou can then empty your wastebin which is for all devices
07:56:15Araqstupid.
07:56:23PMunchHaha
07:56:28*endragor joined #nim
07:56:34PMunchWell I guess that's a filesystem thing more than anything
07:57:04Araqhardly, the filesystem is unixy, it has no notion of a "wastebin"
07:57:04PMunchOn Linux I get a message saying something like "This filesystem doesn't support wastebin, do you want to permanently delete these files?"
07:57:23Araqthat's ok.
07:58:18PMunchAre there any filesystems that have a built-in support for a wastebin?
07:58:51Araqmaybe, but I've only seen it in some UI layer
08:11:54*rokups joined #nim
08:13:52*SenasOzys joined #nim
08:17:19*nsf quit (Ping timeout: 256 seconds)
08:21:12*j_rod_s joined #nim
08:22:59*nsf joined #nim
08:25:27*j_rod_s quit (Client Quit)
08:25:43*j_rod_s joined #nim
08:26:13*rinzai joined #nim
08:30:18*rinzai quit (Ping timeout: 240 seconds)
08:43:39*Ven`` quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
08:44:02*Ven`` joined #nim
08:48:49*Ven`` quit (Ping timeout: 268 seconds)
08:49:42*Ven`` joined #nim
08:51:26*radagast_04 quit (Ping timeout: 255 seconds)
08:52:24*floppydh joined #nim
08:56:43*coffeepot joined #nim
09:05:23*Ven`` quit (Ping timeout: 255 seconds)
09:23:49*sendell joined #nim
09:25:21*endragor quit (Remote host closed the connection)
09:25:54*endragor joined #nim
10:01:26*Pisuke joined #nim
10:03:05*MyMind quit (Ping timeout: 256 seconds)
10:17:48federico3gogolxdong almost
10:25:52*r3d9u11 joined #nim
10:35:12*sleepyqt joined #nim
10:41:55*Vladar joined #nim
10:42:23*Ven`` joined #nim
10:45:47*rinzai joined #nim
11:01:51*sleepyqtx joined #nim
11:04:19*sleepyqtz joined #nim
11:04:44*sleepyqt quit (Ping timeout: 256 seconds)
11:07:05*sleepyqtx quit (Ping timeout: 240 seconds)
11:10:54FromGitter<dom96> Don't you guys worry about those techempower benchmarks. It's just a case of putting in the work to win these benchmarks, which makes these almost entirely pointless (hence the lack of motivation to improve them from me, it's currently using Nim 0.8 or something old like that. )
11:21:31FromGitter<ChristianWitts> v0.11.2 https://github.com/TechEmpower/FrameworkBenchmarks/blob/master/toolset/setup/linux/languages/nim.sh#L5 ⏎ At least fixing that is a simple PR away
11:25:28*sleepyqtz quit (Read error: Connection reset by peer)
11:26:40r3d9u11Hi. I'm a novice in Nim, is there exist IDE with syntax highlighting, autocompletion and step-by-step debugging? :)
11:31:02*vlad1777d joined #nim
11:40:36sendellVScode + pluggin has highlighting and autocompletion
11:41:00sendellI think none has a visual step-by-step debugger
11:44:36r3d9u11thanks for help, here (https://github.com/nim-lang/Nim/wiki/editor-support#visual-studio-code-aka-vscode) was noted that plugin "webfreak.debug" can be used for debugging. think it's for JS target only, right?
11:46:27r3d9u11did somebody used this?
11:50:36*Sembei joined #nim
11:50:58*vlad1777d quit (Remote host closed the connection)
11:51:04*Sembei quit (Client Quit)
11:52:39*vlad1777d joined #nim
11:55:27*xkapastel joined #nim
11:57:21*vlad1777d quit (Ping timeout: 248 seconds)
12:00:31*Ven`` quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
12:24:12*Ven`` joined #nim
12:25:52*dddddd joined #nim
12:29:38PMunchr3d9u11, haven't tried it but the common way to debug Nim applications is to use GDB. So maybe something like this would work: https://github.com/WebFreak001/code-debug
12:30:03PMunchClarification, have tried to debug with GDB. Haven't tried using vscode for Nim or the GDB integration into vscode
12:32:44r3d9u11thanks!
12:35:35*SenasOzys quit (Ping timeout: 240 seconds)
12:39:51*radagast_04 joined #nim
12:44:36*SenasOzys joined #nim
12:45:22FromGitter<alehander42> wow I just found about @[T] meaning the same as castseq[T (@[])
12:53:47*endragor quit (Remote host closed the connection)
12:56:09*Ven`` quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
12:56:23*djellemah joined #nim
12:56:40*djellemah quit (Remote host closed the connection)
13:03:06PMunchHmm, I kinda like the ruby syntax of "unless"
13:03:23PMunchx = 10 unless y == 5
13:12:17*endragor joined #nim
13:15:49*endragor quit (Remote host closed the connection)
13:17:23AraqPMunch, I really don't :-/
13:17:48Araqevaluation is from right to left just because.
13:17:55FromGitter<andreaferretti> agreed
13:18:06*Snircle joined #nim
13:18:20Araqalehander42: er ... that is not expected
13:22:12PMunchIt's more often that I look for where a variable was set though
13:22:21*endragor joined #nim
13:22:33PMunchSo scanning lines (manually) it's easier to check the start of the lines
13:23:41PMunchI feel "if y == 5: x = 10" kinda hides what the actual side effect is
13:35:05*r3d9u11 quit (Remote host closed the connection)
13:41:09*rinzai quit (Ping timeout: 264 seconds)
13:53:09radagast_04Is there a way to make output flush only in chunks of defined page size? For example, if a stream of characters add upto 4096 bytes, only then write() will flush?
13:53:15*gokr quit (Ping timeout: 265 seconds)
14:05:30PMunchDon't think so
14:11:58*rinzai joined #nim
14:11:58*endragor quit (Remote host closed the connection)
14:16:00Araqradagast_04, open takes a bufsize argument for this
14:16:27Araqbut if the streams are redirected they change to "line buffering" iirc
14:16:59*rinzai quit (Ping timeout: 276 seconds)
14:21:11*miran quit (Quit: Page closed)
14:23:51*endragor joined #nim
14:24:17*Ven`` joined #nim
14:27:13*rinzai joined #nim
14:37:21*Ven`` quit (Ping timeout: 248 seconds)
14:39:48*endragor quit (Remote host closed the connection)
14:40:22*Ven`` joined #nim
14:47:33*Ven`` quit (Ping timeout: 256 seconds)
14:53:29FromGitter<alehander42> @Araq yeah it doesn't work
14:53:36FromGitter<alehander42> it looked like it does, oh well :D
14:54:46FromGitter<alehander42> but it works in var a = @[string "x"]
14:55:07*HoloIRCUser joined #nim
14:55:11FromGitter<alehander42> var a: seq[string] = @[]
14:55:29*endragor joined #nim
14:55:35FromGitter<alehander42> so wouldn't it be a good idea to make it work for empty arrays? otherwise now sometimes you need ^
14:55:50*miran joined #nim
14:56:47FromGitter<alehander42> you need cast or manual declaration
14:58:24*floppydh quit (Quit: WeeChat 2.0.1)
15:01:55Araqalehander42: newSeq[T](0) is the better syntax IMO, @[] is a special syntax
15:06:35FromGitter<alehander42> but then why @[string "x"] works
15:07:25Araqwhy wouldn't it?
15:07:42Araqstring "x" is just string("x"), a type conversion
15:07:49Araqin this case, a useless one
15:07:53FromGitter<alehander42> ahaa
15:08:28FromGitter<alehander42> I thought @[string "a", "b"] etc worked with a different meaning
15:08:46FromGitter<alehander42> not an accidental conversion, ok
15:16:03*PMunch quit (Quit: Leaving)
15:21:21*Ven`` joined #nim
15:40:49*SenasOzys quit (Ping timeout: 256 seconds)
15:44:15cremomg C++ please stop.. https://stackoverflow.com/a/25615981
15:46:20FromGitter<Quelklef> Gotcha!s are fun
15:46:21FromGitter<Quelklef> https://stackoverflow.com/questions/1132941/least-astonishment-and-the-mutable-default-argument
15:49:29*SenasOzys joined #nim
15:50:13*gokr joined #nim
15:59:45FromGitter<Bennyelg> Do I need write something special or in particular way when trying to compile to js ?
16:05:41Araqdepends on what you mean by "compile to JS"
16:06:37FromGitter<Bennyelg> want to create bunch of functions and instead writing them on pure js I want to write them using nim
16:06:45FromGitter<Bennyelg> @Araq
16:06:57*gokr quit (Ping timeout: 240 seconds)
16:08:03Araqso you target the browser?
16:10:11Araqanyway, 'ptr' and low level stuff don't work well with JS.
16:11:11FromGitter<Bennyelg> thanks.
16:11:12Araqthe other things work really well. see 'karax' for a code style that optimizes well
16:11:30Araqbut not everybody has to write optimized code, of course :-)
16:11:41FromGitter<Bennyelg> :)
16:12:41*r3d9u11 joined #nim
16:24:14*natrys joined #nim
16:25:41*sendell quit (Ping timeout: 276 seconds)
16:29:53*gokr joined #nim
16:33:07*Trustable joined #nim
16:34:50*NimBot joined #nim
16:40:55*Ven`` quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
16:41:51*Ven`` joined #nim
16:42:01*r3d9u11 quit (Remote host closed the connection)
16:42:39*Ven`` quit (Client Quit)
16:48:19*endragor quit (Remote host closed the connection)
16:53:23*yglukhov joined #nim
16:59:48*r3d9u11 joined #nim
17:12:42*yglukhov quit (Remote host closed the connection)
17:19:05*d10n-work joined #nim
17:24:03*vivus joined #nim
17:24:20*rauss quit (Quit: WeeChat 2.0.1)
17:25:19*rauss joined #nim
17:26:20*gokr quit (Ping timeout: 260 seconds)
17:27:31*Ven`` joined #nim
17:32:40*r3d9u11 quit (Remote host closed the connection)
17:36:57*Cthalupa quit (Ping timeout: 264 seconds)
17:41:42*Cthalupa joined #nim
17:50:14*HoloIRCUser quit (Ping timeout: 260 seconds)
17:56:12*Ven`` quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
18:07:19*darithorn joined #nim
18:09:11*Ven`` joined #nim
18:12:35*Snircle quit (Read error: Connection reset by peer)
18:21:52*birdspider joined #nim
18:24:49*Ven`` quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
18:29:47*Snircle joined #nim
18:29:53*Snircle quit (Client Quit)
18:30:22*birdspider quit (Quit: Leaving)
18:32:15*Ven`` joined #nim
18:39:55*arecaceae quit (Remote host closed the connection)
18:40:17*arecaceae joined #nim
18:58:25*Snircle joined #nim
19:29:29*gokr joined #nim
19:44:55FromGitter<data-man> dear imgui terminal renderer experiment :) https://github.com/jonvaldes/tear_imguihttps://www.youtube.com/watch?v=OEGb4HrMkDo
19:46:43Araqhmm
19:46:48Araqthis is surpsingly good :P
19:47:21Araq"open recent" doesn't show any Nim files though :-((
19:48:22Araqhey this doesn't have Nim code.
19:48:28Araqwhy post it here?
19:48:42FromGitter<data-man> Sorry :)
19:50:39*Ven`` quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
19:52:14FromGitter<data-man> How to get a content size of some link without full downloading?
19:54:39FromGitter<data-man> With Nim's HttpClient, of course
19:54:42AraqHEAD request?
19:54:55FromGitter<data-man> Not worked
19:55:07Araqwhy not?
19:55:28FromGitter<data-man> Content-Length not exist in headers
19:58:10FromGitter<data-man> ```code paste, see link``` ⏎ ⏎ Right? [https://gitter.im/nim-lang/Nim?at=5a8737d2d786ce546e723f34]
20:01:25*Ven`` joined #nim
20:17:25*arecaceae quit (Remote host closed the connection)
20:17:48*arecaceae joined #nim
20:22:32*Ven`` quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
20:29:36*r3d9u11 joined #nim
20:33:00*r3d9u11 quit (Remote host closed the connection)
20:47:06*coffeepot quit (Ping timeout: 255 seconds)
20:51:00FromGitter<dom96> Please read up on HTTP
20:51:12FromGitter<dom96> Not all responses give the content length.
21:00:18*rokups quit (Quit: Connection closed for inactivity)
21:00:32*Trustable quit (Remote host closed the connection)
21:03:34FromGitter<data-man> Compare with curl --head <link>
21:54:39*miran quit (Ping timeout: 260 seconds)
21:57:49*nsf quit (Quit: WeeChat 2.0.1)
22:05:06*rockcavera quit (Ping timeout: 252 seconds)
22:07:27*solitudesf quit (Ping timeout: 248 seconds)
22:10:40*natrys quit (Quit: natrys)
22:10:49*rockcavera joined #nim
22:20:19*clyybber joined #nim
22:23:56*Vladar quit (Quit: Leaving)
22:33:56*vlad1777d joined #nim
22:38:37*SunDwarf is now known as world
22:38:40*world is now known as SunDwarf
22:47:13*SunDwarf is now known as await
23:14:12*darithorn quit (Quit: Leaving)
23:14:49*darithorn joined #nim
23:30:02*gokr quit (Ping timeout: 276 seconds)
23:33:26*darithorn quit (Remote host closed the connection)
23:51:57*gokr joined #nim
23:58:52*clyybber quit (Quit: good night)