<< 05-12-2017 >>

00:00:14flyxokay seriously, it would be really good to see whether the event emitter shows the problem or not. that would tell me whether the problem is in the parser or the deserialization.
00:00:34FromGitter<zetashift> @zacharycarter not using zengine for the RTS?
00:01:03FromGitter<zacharycarter> I suppose I will
00:01:08FromGitter<zacharycarter> just made this real quick - https://imgur.com/a/6mKkI
00:01:13FromGitter<zacharycarter> I think it's way too big for a rts unit
00:01:15FromGitter<zacharycarter> I need to scale him down
00:01:33*flyx will go sleep now. awaiting your issue tomorrow!
00:02:08flyx… also, target OS may be relevant for this kind of issue …
00:02:46*jjido quit (Remote host closed the connection)
00:06:29GitDisc<treeform> flyx, i got a small gist for you https://gist.github.com/treeform/c140984cf3e69e7c8ed8e76feba5c004
00:06:35GitDisc<treeform> run this plus the huge yaml file
00:06:42GitDisc<treeform> https://raw.githubusercontent.com/ua-parser/uap-core/master/tests/test_device.yaml
00:06:57GitDisc<treeform> it reads the files twise
00:07:14GitDisc<treeform> eventually finds some thing that is not equal and asserts
00:07:54GitDisc<treeform> if you add an echo, the entry it crashes on is different.
00:08:48GitDisc<treeform> oh you gone to sleep will fill out abug
00:09:42*skrylar quit (Quit: Leaving)
00:17:53*Elronnd quit (Ping timeout: 276 seconds)
00:21:43*Elronnd joined #nim
00:22:50*def-pri-pub quit (Quit: Leaving.)
00:25:42*SenasOzys quit (Ping timeout: 260 seconds)
00:30:56*elrood quit (Quit: Leaving)
00:41:30*Elronnd quit (Read error: Connection reset by peer)
00:41:48*Elronnd joined #nim
00:53:33FromGitter<zacharycarter> too small https://imgur.com/a/uaLk6 ?
01:00:33GitDisc<treeform> Very small now. Are you rendering this from blender or some thing?
01:02:11FromGitter<zacharycarter> blender
01:02:21FromGitter<zacharycarter> keep in mind it's for a RTS
01:13:13*sz0 quit (Quit: Connection closed for inactivity)
01:28:14FromGitter<RedBeard0531> Anyone here know how to run these tests: https://github.com/nim-lang/Nim/blob/master/lib/pure/unicode.nim#L1696-L1846
01:34:07*def-pri-pub joined #nim
01:37:52*rbrt joined #nim
01:42:48FromGitter<zacharycarter> https://imgur.com/a/kcJqJ
01:42:51FromGitter<zacharycarter> I think I like that scale
01:43:24FromGitter<raydf> @zacharycarter, like that size
01:43:33FromGitter<raydf> it's 3d or 2d the rts?
01:43:37FromGitter<zacharycarter> 2d
01:43:49FromGitter<raydf> so no zoom :)?
01:43:54FromGitter<zacharycarter> no zoom :/
01:44:09FromGitter<raydf> ae you going to have big units?
01:44:31FromGitter<raydf> maybe you should do the tanks or similar units for scaling and at least 1 building
01:44:37FromGitter<zacharycarter> good idea
01:47:30FromGitter<raydf> will keep an eye on the repo if you're going to release it as open source. Are you going to use zengine or godot?
01:48:08FromGitter<zacharycarter> zengine I think
01:48:22FromGitter<raydf> nice
01:49:02FromGitter<zacharycarter> :) going to be a fun experiment
01:49:38FromGitter<raydf> yeah :)
01:58:22*Snircle quit (Quit: Textual IRC Client: www.textualapp.com)
01:58:38*Nikky quit (Ping timeout: 276 seconds)
01:58:40*flyx|znc joined #nim
01:59:21*flyx quit (Ping timeout: 258 seconds)
01:59:21*flyx|znc is now known as flyx
02:00:06*Nikky joined #nim
02:03:11*Sembei joined #nim
02:08:01*marenz_ quit (Ping timeout: 248 seconds)
02:08:39*def-pri-pub left #nim (#nim)
02:18:10*vivus quit (Quit: Leaving)
02:20:44dom96https://ldjam.com/events/ludum-dare/40/coastal-postal
02:20:50dom96So many hours of work
02:21:24FromGitter<zacharycarter> grats!
02:23:09dom96Time for sleep :)
02:24:33FromGitter<zacharycarter> night! :)
02:25:35*rauss quit (Quit: WeeChat 1.9.1)
02:33:05*Sembei quit (Ping timeout: 248 seconds)
02:38:13FromGitter<Varriount> Hm. Where should a daemon log an error to if the configuration file (that contains the log file path) is malformed?
02:39:11*chemist69 quit (Ping timeout: 255 seconds)
02:46:38*vlad1777d quit (Ping timeout: 260 seconds)
02:49:58*sz0 joined #nim
02:53:36*chemist69 joined #nim
03:05:12GitDisc<treeform> dom96, I have completed the game.
03:06:08GitDisc<treeform> Some time you can skip stops, other time you cannot. Kind of random. Stops that look like you can skip, you can't, but offroad stops that look like you should be able to, you can't skip.
03:12:20*skoude joined #nim
03:12:43*dddddd quit (Remote host closed the connection)
03:13:05*endragor joined #nim
03:16:59*skoude quit (Ping timeout: 255 seconds)
03:22:45FromGitter<brentp> does anyone have a repo that show how to link to a static library (a somelib.a file)? I see some older messages in the forum, but I'm not getting it to work.
03:25:25FromGitter<Varriount> @brentp What are you trying to link to?
03:25:58FromGitter<brentp> libhts.a
03:25:59FromGitter<brentp> https://github.com/samtools/htslib/
03:30:39FromGitter<brentp> hmm just found dynlibOverride which is getting me a bit farther.
03:35:59*madpat quit (Ping timeout: 248 seconds)
03:36:33*madpat joined #nim
03:46:27*couven92 quit (Quit: Client Disconnecting)
03:47:26*rbrt quit (Quit: Oíche mhaith)
03:48:30*xkapastel quit (Quit: Connection closed for inactivity)
03:54:46FromGitter<Varriount> @brentp Use the importc and/or importcpp pragmas, then use the link pragma: https://nim-lang.org/docs/manual.html#implementation-specific-pragmas-link-pragma
04:21:27*rauss joined #nim
04:22:05*xkapastel joined #nim
04:38:26FromGitter<brentp> thanks. I think I actually got it working with dynlibOverride. just have to get all the other libs built statically.
05:05:23FromGitter<Varriount> Bah. Why is Mercurial being re-written using Rust, when Nim provides a much nicer transition.
05:05:43FromGitter<Varriount> It's not fair. :/
05:15:28*Sembei joined #nim
05:15:33FromGitter<Varriount> Anyone know how Rust handles even handles things like providing or calling C interfaces?
05:17:40Tanger@Varriount That is bogus. Shall we pen them a sternly worded letter? :P
05:18:11FromGitter<Varriount> Tanger: I wish I could go back in time and be part of the leading discussions.
05:18:56FromGitter<Varriount> However now that they have a plan proposed, it's unlikely that anyone will be swayed by proponents from other languages.
05:20:03FromGitter<Varriount> It's just so... frustrating! I look at Nim and see a language that, while not having the airtight safety that Rust provides, has a readability that makes it well suited for Python developers.
05:20:27FromGitter<Varriount> Instead, Rust, essentially a C++ successor, is chosen!
05:20:45FromGitter<Varriount> (And I don't consider Rust very readable at all)
05:21:05FromGitter<Varriount> (Or rather, Rust readability is on par with C++)
05:31:46FromGitter<Varriount> Tanger: Hm "This is a proposal, not a plan" <- Perhaps there is hope for a counter-plan?
05:34:52FromGitter<zacharycarter> (https://files.gitter.im/nim-lang/Nim/U3o1/Screen-Shot-2017-12-04-at-11.47.44-PM.png)
05:35:02FromGitter<zacharycarter> bed time
05:35:37FromGitter<Varriount> @zacharycarter If you want to test out your games, I have 3 younger brothers that I can coax into testing. :P
05:37:55Tanger@Varriount :o Haha, that choice of words leaves us hope!
05:38:30TangerAlso, I agree. I wanted to pick up Rust before I knew Nim was thing and the syntax just wouldn't gel with me :S
05:38:48FromGitter<zacharycarter> @Varriount sweet!
05:38:59FromGitter<zacharycarter> hopefully I'll have something to test soon
05:48:05*Sembei quit (Ping timeout: 276 seconds)
05:50:37*skrylar joined #nim
05:53:11FromGitter<Varriount> Tanger: What are you working on?
05:55:04Tanger@Varriount Nothing too extravagant, building a library for Slack to get myself familiarised with lower level code again
05:55:20FromGitter<Varriount> Tanger: Ooh, I might have a use for that.
05:55:33FromGitter<Varriount> We use Slack quite a bit at work.
05:55:43TangerDitto
05:56:15TangerPlan is to convert a bot that I wrote in python to nim once I finish the API
06:01:47*skoude joined #nim
06:07:59*BitPuffin|osx joined #nim
06:08:50*nsf joined #nim
06:16:05*skrylar quit (Ping timeout: 255 seconds)
06:48:30*xkapastel quit (Quit: Connection closed for inactivity)
07:00:15*jjido joined #nim
07:23:07*endragor quit (Remote host closed the connection)
07:40:25*Sembei joined #nim
07:45:08*jjido quit (Remote host closed the connection)
07:48:21*endragor joined #nim
07:48:40*gokr joined #nim
07:52:57*endragor quit (Ping timeout: 240 seconds)
07:58:44*Sembei quit (Ping timeout: 276 seconds)
08:01:57*jjido joined #nim
08:04:37*jjido quit (Remote host closed the connection)
08:04:55*jjido joined #nim
08:09:35*endragor joined #nim
08:10:24*Sembei joined #nim
08:10:54*SenasOzys joined #nim
08:26:18*claudiuinberlin joined #nim
08:28:49*cefhiqrstw is now known as qwertfisch
08:31:14*chemist69 quit (Ping timeout: 276 seconds)
08:34:23*jjido quit (Remote host closed the connection)
08:36:35*Sembei quit (Ping timeout: 240 seconds)
08:42:12FromGitter<mratsim> Btw, we might lose half of the Nim devs here but I have to say it, Starcraft 2 is now free to play!
08:45:09*PMunch joined #nim
08:47:37*dddddd joined #nim
08:48:01Araqlol, that's old news
08:51:07*chemist69 joined #nim
08:52:46*Sembei joined #nim
09:10:35*crem never played starcraft 2, and played starcraft 1 once (lost).
09:10:42cremI played warcraft 2 a lot though.
09:11:30cremWarcraft 2 is a boring game with a winning strategy though, I believe starcraft is much more rock-paper-scissor'y (which is good).
09:16:36FromGitter<mratsim> And Warcraft 3 is rock rock rock.
09:21:05cremActually I think I've never seen Warcraft 3, and Starcraft 2 too. And Doom 3.
09:26:29*madpat quit (Read error: Connection reset by peer)
09:27:47*madpat joined #nim
09:27:52*Sembei quit (Ping timeout: 258 seconds)
09:27:58*madpat quit (Read error: Connection reset by peer)
09:28:08*madpat joined #nim
09:28:55*dddddd quit (Remote host closed the connection)
09:33:12*Sembei joined #nim
09:43:40*GustavoLapasta joined #nim
09:44:09*GustavoLapasta quit (Remote host closed the connection)
09:44:59*GustavoLapasta joined #nim
09:50:35*Sembei quit (Ping timeout: 240 seconds)
09:53:52*Sembei joined #nim
09:54:08*sagax quit (Ping timeout: 255 seconds)
09:54:37Araqalehander42: can you close your PR if you don't want it to be merged?
10:02:16FromGitter<alehander42> araq: ok, I'll reopen it after I try to add support for expanding macro-s with `e(a: b)`
10:02:27Araqok
10:02:42FromGitter<alehander42> btw, what about the js async PR, is there more work to be done there
10:07:30*yglukhov joined #nim
10:08:17*madpat quit (Ping timeout: 268 seconds)
10:12:18*Sembei quit (Ping timeout: 260 seconds)
10:15:11Calinoucrem: I've never played original Doom 3, only the BFG Edition using RBDOOM-3-BFG
10:18:20*vlad1777d joined #nim
10:19:52*floppydh joined #nim
10:23:26cremI played lots of Doom 2 though! Although I'm not sure if I ever played it till the end. Somehow only first ~10 maps are fun, after that enemies are too strong and play style should be different.
10:26:17*vlad1777d quit (Ping timeout: 255 seconds)
10:36:51Calinousame
10:37:00Calinou(in singleplayer at least)
10:39:02cremDoom 2 coop is very unbalanced. With default "lots of weapons when multiplayer" setting, it's too easy, and if you turn it off, there's too little ammo.
10:43:10Calinouyes
10:43:15CalinouUV fast (or UV respawn) can balance this out
10:43:22Calinoubut then it becomes a bit hard :P
10:43:39*Sembei joined #nim
10:51:44*couven92 joined #nim
10:54:12couven92lol! Comment in the GNU m4 bootstrapper: # There are apparently some retarded systems that use ';' as a PATH separator!
10:57:20dom96treeform: The skippable stops are a feature to complete the puzzles. It's a leap of faith scenario :P Did you do puzzle four without the petrol station?
10:58:40Araq':' as a PATH separator is an abomination. what kind of 'key: value' pair is '/usr/lib:/usr/bin:/etc' ?
11:00:09Araqamusingly ':' where Unix uses the slash would have fit English's grammar: usr:bin
11:06:41*Sembei quit (Ping timeout: 248 seconds)
11:09:25*salewski joined #nim
11:10:20salewskidom96, last post in https://forum.nim-lang.org/t/3295/2 may be smart bot spam!
11:12:49*salewski quit (Client Quit)
11:13:07FromGitter<mratsim> Smart boy spam is called growth hacking nowadays ;).
11:15:34Araqyeah we need to disable message editing after a couple of hours
11:15:54Araqit's bad style anything, it's only to correct typos
11:15:59Araq*anyway
11:28:16*claudiuinberlin quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
11:37:42*skoude quit (Ping timeout: 260 seconds)
11:40:45*JappleAck joined #nim
11:55:59FromGitter<dandevelo> This page ( https://nim-lang.org/docs/nep1.html ) mentions: ---- Previously, the naming conventions for identifiers followed the Pascal tradition of prefixes which indicated the base type of the identifier - PFoo for pointer and reference types, TFoo for value types, EFoo for exceptions, etc. Though this has since changed, there are many places in the standard library which still use this convention. Such style
11:55:59FromGitter... remains in place purely for legacy reasons, and will be changed in the future. ----- Is there a reason behind this?
11:56:57Araqwhat reason?
11:57:12Araqyou just quoted the reason.
11:57:26FromGitter<dandevelo> Why the Pascal style TFoo for value types was dropped
11:57:39Araqit was considered ugly
11:58:10FromGitter<dandevelo> I see
11:58:23Araqit also was problematic for handle types like Socket and File that might technically be objects but act like pointers or the other way round
11:58:45FromGitter<dandevelo> Oh, that makes sense
12:01:26*skoude joined #nim
12:02:38Araq0x00000000000038f0 in ?? ()
12:02:39AraqBacktrace stopped: previous frame identical to this frame (corrupt stack?)
12:02:52Araq^^ never seen this before
12:04:11*BitPuffin|osx quit (Ping timeout: 260 seconds)
12:19:27*GustavoLapasta quit (Remote host closed the connection)
12:19:46*GustavoLapasta joined #nim
12:20:08*GustavoLapasta quit (Read error: Connection reset by peer)
12:21:27*GustavoLapasta quit (Remote host closed the connection)
12:22:57*GustavoLapasta quit (Remote host closed the connection)
12:24:27*GustavoLapasta quit (Remote host closed the connection)
12:25:20*natrys joined #nim
12:25:36*GustavoLapasta quit (Read error: Connection reset by peer)
12:27:13*Snircle joined #nim
12:31:47*claudiuinberlin joined #nim
12:48:05*nim_newb joined #nim
12:48:38nim_newbhttps://nim-lang.org/docs/sequtils.html Some examples do not render properly, i.e. missing syntax highlighting
12:53:31Araqthanks, fixed.
12:56:29*fvs joined #nim
12:59:06fvshi, $myFloat.round(3) doesn't always round, what am I missing?
12:59:34Araqthe nature of floating point?
12:59:35*yglukhov quit (Remote host closed the connection)
12:59:59*nim_newb quit (Ping timeout: 260 seconds)
13:00:15*yglukhov joined #nim
13:00:30*Sembei joined #nim
13:01:12cremI'm pretty sure with IEEE 754 floating points, it's not possible that round() would return something with fractional part.
13:01:46*yglukhov quit (Read error: Connection reset by peer)
13:01:55*yglukhov joined #nim
13:02:43cremAh, what's (3) there?
13:03:12cremThen yes, sorry.
13:06:29*yglukhov quit (Ping timeout: 255 seconds)
13:11:58*skoude quit (Ping timeout: 260 seconds)
13:18:31*skoude joined #nim
13:22:04*yglukhov joined #nim
13:26:25*yglukhov quit (Ping timeout: 248 seconds)
13:44:11FromGitter<Yardanico> https://www.reddit.com/r/Bitcoin/comments/7hgpr0/im_donating_25_bitcoin_to_good_causes_this/dqss7n5/ :)
13:44:55FromGitter<Yardanico> he'll likely pick the most upvoted one, so :)
13:45:03*skoude quit (Ping timeout: 248 seconds)
13:45:17cremDonating it into nim won't make nim better. In any case it's limited by one person's throughput.
13:45:32cremSo, no point. :)
13:46:06FromGitter<Yardanico> there's point
13:46:12FromGitter<Yardanico> pay for zahary work for example
13:46:23FromGitter<Yardanico> and maybe some bounties on issues
13:49:28*FromGitter * Varriount dreams of vtptrs and vtrefs
13:50:40*craigger quit (Quit: bye)
13:50:55*craigger joined #nim
13:53:11FromGitter<Yardanico> upvote this comment :P
13:53:37*Sembei quit (Ping timeout: 248 seconds)
13:56:11Araqlimited by my throughput? you think I can't hire developers?
13:56:40*endragor quit (Remote host closed the connection)
13:57:31cremThat would be too much burocracy. :) At least in a country I'm from hiring someone would be too burocratic to bother.
13:59:10*endragor joined #nim
14:01:33*skoude joined #nim
14:03:45*endragor quit (Ping timeout: 248 seconds)
14:04:28FromGitter<zacharycarter> https://imgur.com/a/bHGN7
14:04:31FromGitter<zacharycarter> that's the scale I have going atm
14:05:49*yglukhov joined #nim
14:06:58Araqtoo small IMO.
14:10:11*yglukhov quit (Ping timeout: 260 seconds)
14:10:54FromGitter<zacharycarter> well the screenshot is taken with a retina display so that doesn't help matters
14:15:05*yglukhov joined #nim
14:16:03*floppydh quit (Remote host closed the connection)
14:16:46*floppydh joined #nim
14:21:57*Vladar joined #nim
14:24:55*madpat joined #nim
14:28:14*arecaceae quit (Read error: Connection reset by peer)
14:28:33*arecaceae joined #nim
14:35:34dom96Anyone on windows can give this a test? https://github.com/dom96/ld40/releases/download/v1.2.0/Coastal_Postal_v1.2.0_win32.zip
14:37:31*nsf quit (Quit: WeeChat 1.9.1)
14:37:57FromGitter<Varriount> dom96: How large is this game? It's going to take 5 minutes to download.
14:38:26dom96how slow is your internet?
14:38:36dom96It's 10mb
14:40:21*skoude quit (Ping timeout: 240 seconds)
14:43:25FromGitter<ephja> lol
14:44:36FromGitter<Varriount> dom96: Font is a bit hard to read, and you seem to be using \n somewhere, rather than \c\l
14:44:52dom96Varriount: screenshot?
14:44:54FromGitter<Varriount> Since each newline has the "unprintable character glyph"
14:45:13FromGitter<Varriount> (https://files.gitter.im/nim-lang/Nim/b36n/image.png)
14:45:17dom96Nim's \n should be cross-platform
14:45:22Araqmore likely: he does use \n but it should have been \L :P
14:45:28FromGitter<Varriount> ^ Yes
14:45:38dom96that should be easy to fix
14:45:41dom96seems it's working :D
14:45:57Araqdom96, Nim is crossplatfrom, but the lib you are using only accepts LF
14:46:16dom96silly sfml
14:47:47dom96Araq: Guess how I fixed the large size :P
14:47:50FromGitter<Varriount> What are you using for font rendering?
14:48:02dom96whatever SFML uses
14:48:08dom96this is probably the font's fault
14:48:21dom96you can easily swap a different one, just replace PICO-8.ttf in the assets folder
14:48:35dom96this font definitely needs more line space
14:58:38FromGitter<zetashift> @dom96 music and graphics are sweet!
15:00:55dom96zetashift: thanks! :D Music isn't mine, graphics were made by my SO :)
15:01:49*yglukhov quit (Remote host closed the connection)
15:01:58FromGitter<zetashift> yea I just finished the tutorial so i couldn't say much about gameplay
15:02:25*yglukhov joined #nim
15:02:45*yglukhov quit (Remote host closed the connection)
15:02:51*madpat quit (Ping timeout: 240 seconds)
15:03:02*yglukhov joined #nim
15:03:20*MJCaley joined #nim
15:03:49*sz0 quit (Quit: Connection closed for inactivity)
15:06:08*dddddd joined #nim
15:06:59Araqwhat is a SO?
15:08:44euantorSO == Significant Other
15:10:14Araqgender-free Santa Claus?
15:11:18euantorgender-free boy/girl friend/partner/wife
15:11:21FromGitter<Varriount> Araq: Another name for boyfriend/girlfriend/partner
15:12:40FromGitter<zetashift> Trying to solve day5 of adventofcode which is pretty easy but my loop isn't working as I get no output when running: https://play.nim-lang.org/?gist=aedcd0b070a3febe4e9889b223003f1c anymore check what I'm doing wrong?
15:12:58FromGitter<zetashift> also dom86: I like the gameplay too, would be great to have this on mobile tbqh
15:13:47Araqas long as it's a living being ... in some countries you can marry things, iirc
15:14:59FromGitter<RedBeard0531> @zetashift you need to mutate the input as you execute each "instruction"
15:15:10dom96zetashift: yeah, would be cool on mobile :)
15:15:49AraqSO is also stack overflow
15:16:34Araqand "super onions"
15:16:50FromGitter<zetashift> whatsup with all the .dll's tho can't you put it in a DLL folder or something and let the executable know it's there?
15:17:14Araqthat's not how windows works
15:17:31FromGitter<zetashift> yea I thought so but maybe some clever tricks were available ;P
15:17:37Araqyou could add ..\dlls to your PATH though
15:17:44Araqer, .\dlls
15:18:14FromGitter<zetashift> yea but kinda overkill for a simple game. I only have a dll PATH variable for SDL
15:18:29FromGitter<Varriount> Araq: But can you do that for dlls loaded with the dll pragma?
15:19:40dom96I guess I could add a shortcut
15:19:50dom96and put the binary in a folder
15:21:05FromGitter<Varriount> dom96: My only complaint is that you can't resize the screen. I can't read the small text in the schedule.
15:21:32dom96yeah, due to the time limit I decided to just constrain the screen to a certain size
15:26:12*fvs left #nim ("ERC (IRC client for Emacs 25.3.1)")
15:32:17*JappleAck quit (Ping timeout: 255 seconds)
15:42:43*endragor joined #nim
15:45:04*JappleAck joined #nim
15:46:57*endragor quit (Ping timeout: 240 seconds)
15:47:27*floppydh quit (Remote host closed the connection)
15:48:12*floppydh joined #nim
16:04:55*floppydh quit (Quit: WeeChat 1.9.1)
16:08:49FromGitter<ephja> @mratsim aren't there counters in wc3? not enough?
16:10:04FromGitter<mratsim> I think the issue is that it's too easy to recover from an error and games lack strategic depth.
16:16:41*PMunch quit (Quit: Leaving)
16:18:04*nsf joined #nim
16:25:30*MJCaley quit (Quit: MJCaley)
16:28:09*elrood joined #nim
16:30:54*Trustable joined #nim
16:36:56*rbrt joined #nim
16:40:48FromGitter<mratsim> (errors like "scouting errors", "timing push errors", etc)
16:41:45*MJCaley joined #nim
16:42:06*rbrt quit (Quit: Oíche mhaith)
16:58:23*claudiuinberlin quit (Quit: Textual IRC Client: www.textualapp.com)
17:00:24*xkapastel joined #nim
17:23:14*rbrt joined #nim
17:27:25*Sembei joined #nim
17:31:27*Sembei quit (Ping timeout: 240 seconds)
17:31:57*yglukhov quit (Remote host closed the connection)
17:33:30*miran joined #nim
17:36:33*yglukhov joined #nim
17:40:41*yglukhov quit (Ping timeout: 240 seconds)
17:49:58*rokups joined #nim
18:02:17*MJCaley quit (Quit: MJCaley)
18:09:39*vivus joined #nim
18:17:19mirani define something inside of `try` block, and when i try to use it outside: "undeclared identifier"
18:17:56miranin python i usually put inside of try block only the thing that might raise an error, other stuff is outside
18:18:17mirando i need to put everything inside a try block in nim?
18:18:24*arnetheduck quit (Remote host closed the connection)
18:20:54*yglukhov joined #nim
18:21:32*nsf quit (Quit: WeeChat 1.9.1)
18:22:03Araqyes
18:22:40Demos[m]you need to define the variable outside the block, and set some reasonable default
18:24:32miranDemos[m]: thanks! it works
18:25:19*yglukhov quit (Ping timeout: 268 seconds)
18:29:45*Ven`` joined #nim
18:30:35*SenasOzys quit (Ping timeout: 240 seconds)
18:33:27FromGitter<zacharycarter> can someone please point me to some horrible Rust code?
18:33:48FromGitter<zacharycarter> like Rust code that induces eye bleeding
18:34:44Araqwhy? Rust is more than its syntax
18:35:40FromGitter<zacharycarter> I'm just trying to prove a point that Rust isn't nearly as elegant as some folks claim
18:36:26Araqlet them write a HTML DOM tree structure
18:37:07FromGitter<Varriount> @zacharycarter Hm. Perhaps C interfaces? Those tend to be inelegant in any language though.
18:37:20FromGitter<Varriount> Well, except C.
18:37:57*SenasOzys joined #nim
18:38:07Araqthey are worse in C since usually the translation adds information
18:38:24Araqlike "Is this a pointer to a byte or a zero terminated string?"
18:39:03FromGitter<Varriount> Araq: Neither. It's a pointer to an array of pointers to arrays. :P
18:45:03*yglukhov joined #nim
18:45:52*skoude joined #nim
18:48:05*Ven`` quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
18:50:05*skoude quit (Ping timeout: 240 seconds)
18:50:39*yglukhov quit (Read error: Connection reset by peer)
18:51:15*yglukhov joined #nim
18:58:32Demos[m]also worse in c because everyone seems to thing that the const keyword too new to use
18:58:58mirananother question: when i just compile my file, everything works. compiling with -d:release gives me SIGSEGV
18:59:07miranwhere to start to look for problems?
19:00:28*d10n-work joined #nim
19:02:59miranok, the error is because of that before mention try-except block. will post the code soon
19:03:08Demos[m]nim c --passc:"-fsanitize=address" --passl:"-fsanitize=address -d:release --debugger:native --gc:none <your file>
19:03:23*jjido joined #nim
19:03:34Demos[m]use gcc or clang here
19:04:06Demos[m]sidenote: would love it if nim could tell asan not to worry about the gc
19:04:22miranhttps://play.nim-lang.org/?gist=c2a1e76aa1caab811c91163e3a919c5b
19:07:16Demos[m]what line and address is the segfault on?
19:07:55miranrunning with just -d:release gives: "SIGSEGV: Illegal storage access. (Attempt to read from nil?)"
19:08:11miranrunning with the command you've written above gives:
19:08:35miranASAN:DEADLYSIGNAL
19:08:36miran=================================================================
19:08:38miran==6781==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x55c280350604 bp 0x0ffff1def709 sp 0x7fff8ef7b740 T0)
19:08:39miran==6781==The signal is caused by a READ memory access.
19:08:41miran==6781==Hint: address points to the zero page.
19:09:04miran...and some more lines, which i will not copy here, but if needed i can post it on pastebin
19:10:18*Sembei joined #nim
19:11:33*yglukhov quit (Remote host closed the connection)
19:12:20*gokr quit (Ping timeout: 255 seconds)
19:15:03mirandoing the same code without try-except (by changing the condition of while loop) works without an error
19:15:51*yglukhov joined #nim
19:16:16*PMunch joined #nim
19:22:49FromGitter<Varriount> miran: https://pewpewthespells.com/blog/using-sanitizers-with-nim.html
19:27:03*jjido quit (Remote host closed the connection)
19:27:05*madpat joined #nim
19:27:59miranthanks Varriount, but i have no idea what to do with it....
19:28:13miranbtw, i've tried both stable and devel version - the same behaviour
19:32:29*claudiuinberlin joined #nim
19:33:15Demos[m]ah, um there are ways to get asan to give full callstacks
19:33:37Demos[m]and I don't think you need most of those flags if you also do --passl:".."
19:33:42Demos[m]at least with gcc
19:34:09nathanjwould a seq do bounds checking when compiled as release? That seems like the sort of thing that would be disabled
19:35:22mirannathanj: hmmm, will look into that. would changing to array help?
19:36:20Demos[m]nathanj: it will
19:37:34*jjido joined #nim
19:38:10Demos[m] uh actually it may turn em off
19:38:26miranthe best way to convert seq to array?
19:38:50Demos[m]they are sequential
19:39:28nathanjvar blah = @[1,2,3]; echo blah[4] # IndexError when not release, prints 0 in release
19:39:28FromGitter<ephja> https://github.com/nim-lang/Nim/blob/devel/config/nim.cfg#L50
19:39:41nathanjyeah they do stop bounds checking
19:39:49Demos[m]yup
19:40:46miranthank you guys!
19:41:29miranso i guess i cannot use try-except with IndexError in release.... :/
19:41:36*natrys quit (Quit: natrys)
19:41:43miranyour recommendation?
19:41:58*jjido quit (Ping timeout: 258 seconds)
19:42:39FromGitter<Varriount> miran: Use a project file to have bounds checking turned on when in release mode?
19:43:28nathanjhttps://nim-lang.org/docs/manual.html#pragmas-compilation-option-pragmas
19:49:49*skoude joined #nim
19:56:52mirannathanj: thank you very much! boundCheks pragma!
19:58:36miranbut now this is slightly slower than regular compilation :D
19:59:05mirani think i'll change my loop, avoid boundChecks/IndexError and that's it
19:59:17Araqmiran: yes please do that
19:59:42Araqthe implementation isn't even required to raise an IndexError, it could also trap instead
20:00:01*elrood quit (Quit: Leaving)
20:00:33miranAraq: ok, this is something i'll remeber for the future, thanks
20:01:11dom96So guys
20:02:35FromGitter<tim-st> I tried to use c2nim, but don't know what to pass as the file argument. I have a folder containing library source code files...
20:03:01dom96It appears we will have a stand at FOSDEM 2018!
20:03:02FromGitter<tim-st> should I pass every single file?
20:03:08Demos[m]you pass each indivdual file usually
20:03:20FromGitter<tim-st> in which order?
20:03:22Demos[m]often it takes some hand tuning to get stuff right
20:03:37Demos[m]um I do one at a time in a shell for loop
20:04:19*nsf joined #nim
20:04:33FromGitter<tim-st> Ok, I will try, thx
20:05:06FromGitter<ephja> do you need libzma bindings?
20:05:13FromGitter<tim-st> yes^^
20:05:27FromGitter<tim-st> have you found the files?
20:07:38Araqdom96: where is it?
20:09:38FromGitter<Varriount> dom96: Where is FOSDEM going to be held?
20:09:47FromGitter<Varriount> Is it a place I could reasonably travel to?
20:11:38FromGitter<zacharycarter> https://fosdem.org/2018/
20:11:44FromGitter<zacharycarter> Brussels?
20:13:25FromGitter<Varriount> Aw.
20:14:25dom96Yep
20:15:16FromGitter<ephja> @tim-st yes
20:17:01FromGitter<tim-st> Nice, thank you very much!
20:17:06*Sembei quit (Ping timeout: 260 seconds)
20:18:00FromGitter<Varriount> Anyone have $1,500 dollars to give away?
20:18:11FromGitter<Varriount> That's how much a plane ticket would cost. :/
20:18:12FromGitter<ephja> I'll check my pockets
20:18:27FromGitter<ephja> @tim-st here's the repo https://github.com/ephja/lzma
20:18:38*ketralnis quit (Quit: Coyote finally caught me)
20:18:52FromGitter<ephja> there isn't a high level interface yet, and here's an ugly example https://gist.github.com/ephja/801d52c9764ef8b70f609b421bdbfcaf
20:19:23FromGitter<tim-st> thanks
20:20:17FromGitter<ephja> and it hasn't been added to the package database, but you could install it with nimble after cloning it
20:21:54FromGitter<tim-st> the dependency is too high
20:22:05FromGitter<tim-st> I have 0.17.2
20:22:33FromGitter<ephja> I should just set it to 0.16.0 or something
20:22:57FromGitter<tim-st> Yes would be nice, I could install it directly via url than
20:26:06FromGitter<ephja> now?
20:27:22FromGitter<tim-st> Yes, works now, thank you!
20:29:37*rokups quit (Quit: Connection closed for inactivity)
20:30:55*Sembei joined #nim
20:31:15FromGitter<tim-st> @ephja where should I place the liblzma.dll?
20:33:59FromGitter<ephja> I dunno. I usually place DLLs in the directory containing the exe, but I end up creating a lot of copies then
20:34:10*vlad1777d joined #nim
20:34:31FromGitter<tim-st> I think the problem is that my dll is 32bit, currently searching a 64bit one
20:35:21*SenasOzys quit (Ping timeout: 240 seconds)
20:40:15*marenz_ joined #nim
20:45:02*skrylar joined #nim
20:45:27*SenasOzys joined #nim
20:50:56*Trustable quit (Remote host closed the connection)
20:55:51FromGitter<tim-st> Yes, that was the problem. When I use the pcre64 dll and rename it to liblzma.dll it can be loaded but of course an import error appears
20:59:46FromGitter<tim-st> @ephja Your example runs more than 30 secs and generates more than 1.3gb ram, is this intended?
21:01:41*miran quit (Ping timeout: 240 seconds)
21:01:45FromGitter<ephja> yeah it's overkill. there are some large values in there
21:02:04*miran joined #nim
21:02:21*JappleAck quit (Quit: Leaving)
21:02:22FromGitter<tim-st> Ok, nice. I thought it was some bug with not freeing memory. This libraries work perfect: https://tukaani.org/xz/xz-5.2.3-windows.7z
21:04:43*miran quit (Client Quit)
21:06:06*rbrt_ joined #nim
21:06:30*rbrt quit (Read error: Connection reset by peer)
21:16:59*Vladar quit (Quit: Leaving)
21:17:46*skrylar quit (Ping timeout: 260 seconds)
21:28:00*jjido joined #nim
21:43:46*claudiuinberlin quit (Quit: Textual IRC Client: www.textualapp.com)
21:50:59*xet7 quit (Ping timeout: 255 seconds)
21:53:40*xet7 joined #nim
21:54:45PMunchHmm, do I remember wrong or is there a way in Nim to run a when check if some code compiles or not?
21:55:27Demos[m]@araq: any philosophical issues with adding a dynlibOverrideAll flag?
21:56:16AraqI guess not
21:56:37AraqPMunch: when compiles(...)
21:57:56*skoude quit (Ping timeout: 255 seconds)
21:58:18PMunchAh, I tried it with "when compiles(let x = 4):" but it didn't like that so I thought I was doing it wrong
21:58:21Demos[m]Should it be a seperate flag or a value of the dynlibOverride flag?
22:05:54*aziz joined #nim
22:14:52*aziz quit (Quit: Ex-Chat)
22:14:55*skoude joined #nim
22:15:48PMunchhttps://forum.nim-lang.org/t/1486
22:16:06PMunchIs it not possible to do "type(call(arg))" any more?
22:19:13*skoude quit (Ping timeout: 248 seconds)
22:21:42*yglukhov quit (Remote host closed the connection)
22:28:06*skrylar joined #nim
22:28:08skrylar#nim-offtopic
22:28:11skrylarand i fail
22:32:00*skrylar quit (Remote host closed the connection)
22:36:50*jjido quit (Remote host closed the connection)
22:37:18*jjido joined #nim
22:40:34*MJCaley joined #nim
22:41:18*skrylar joined #nim
22:43:11*couven92 quit (Quit: Client Disconnecting)
22:43:12AraqDemos[m]: keep the implementation simple
22:49:56Demos[m]allright pull request submitted
22:50:00Demos[m]just using dynlibOverrideAll
22:50:28Araqok
22:50:50*rbrt_ quit (Quit: Oíche mhaith)
22:52:00*rbrt joined #nim
22:54:25*rbrt quit (Client Quit)
22:57:56*endragor joined #nim
23:02:25*endragor quit (Ping timeout: 248 seconds)
23:07:23*jjido quit (Remote host closed the connection)
23:11:58*nsf quit (Quit: WeeChat 1.9.1)
23:24:21FromGitter<zacharycarter> @Araq I'm going to work on porting - https://github.com/JoeyDeVries/Cell - (but use BGFX and SDL2) and then using it in the rts
23:25:39*madpat quit (Read error: Connection reset by peer)
23:25:47*madpat joined #nim
23:29:18*rbrt joined #nim
23:31:16FromGitter<zacharycarter> or I could use godot :/
23:31:59dom96is there something wrong with GoDot? :)
23:32:57FromGitter<zacharycarter> Mmm, I just am worried the bindings will go unmaintained
23:34:05FromGitter<zacharycarter> It'd also be cool to have a port of Cell in Nim
23:34:31FromGitter<zetashift> endragor said they're using it for their company's stuff so I doubt it; Also even if it goes unmaintained updating should be easy, though @Calinou can shed some more info about this
23:35:28FromGitter<zetashift> I like the idea of Cell; a learning graphics engine in NIm does sound tempting
23:36:06FromGitter<zacharycarter> I agree
23:36:06Calinouhi :)
23:36:22CalinouGodot is getting a lot of steam lately
23:36:23FromGitter<zacharycarter> hi Calinou
23:36:32Calinouthe Patreon campaign is at $5,800/month: https://www.patreon.com/godotengine
23:36:52Calinouthe lead developer is now working full-time on the engine, and there's a part-time developer too
23:36:54Calinou(and maybe two more, soon)
23:37:10Calinoufun fact: I made the video that's on the Patreon page :)
23:37:35FromGitter<zetashift> I think zachary ment the bindings for nim go unmaintained haha
23:37:59FromGitter<zetashift> I think godot is one of those gems of open-source projects
23:38:37FromGitter<zetashift> Mhmhm currently making a toy backend in Go. It feels nice but I miss the cleanliness of Nim
23:39:13FromGitter<zacharycarter> @dom96 I think a port of cell would be a good way to show off Nim
23:39:17FromGitter<zacharycarter> especially if it used BGFX
23:39:27FromGitter<zacharycarter> you'd get a link on the bgfx repo automatically
23:40:26FromGitter<zacharycarter> or a mention at least
23:41:32*MJCaley quit (Quit: MJCaley)
23:43:09*rbrt quit (Quit: Oíche mhaith)
23:47:59*rbrt joined #nim
23:49:09*rbrt quit (Client Quit)
23:50:44*rbrt joined #nim
23:53:12*rbrt quit (Client Quit)
23:55:10*MJCaley joined #nim