<< 16-11-2014 >>

00:04:29EXetoCmy eyes don't like #fff on dark backgrounds though
00:04:35EXetoCI don't care for #fff in any case
00:07:17flaviuEXetoC: Feedback is very welcome, what would work better for you?
00:09:09*irrequietus quit ()
00:11:24flaviuBTW, it's #ddd, not #fff
00:11:43EXetoC#e9e9e9? noticed that now
00:12:28flaviuhuh, I told it to use #ddd
00:12:50flaviuah, links are #e9e9e9
00:12:57EXetoCright
00:17:30EXetoCI'm using solarized now. the background is slightly lighter and the foreground is slightly darker so it doesn't cause any discomfort
00:19:33dom96_That's not good.
00:20:08EXetoC?
00:20:59dom96_That the new forum crashed.
00:21:19dom96_Looks like a very bad crash: https://gist.github.com/dom96/d7ff9b42d208a473fa74
00:21:22dom96_anyway, I restarted it.
00:21:50flaviuEXetoC: That is a bit better
00:21:59flaviuI did what you said, 5%
00:22:27flaviudom96: Do you have a png version of the background image?
00:22:43flaviuOr a vector version of both the icon and background?
00:24:40onionhammerflaviu that 24.126.215.38 link looks good, i like how all the content is laid out and the structure of the page
00:24:45onionhammerbut I stll think the theme is too dark
00:27:17flaviuonionhammer: Ok, I tried another 5%. Don't worry about sounding too critical, I don't mind at all.
00:31:30flaviuhmm, the background is still quite dark on the actual posts. I'll have to wait until I get the source svgs for that to fix it. :/
00:31:51EXetoCI guess I have a problem with alternating colors when the background is so dark
00:32:03onionhammeri think a solid background would look better too
00:32:22onionhammeror maybe a subtle checkered pattern in 1 corner
00:32:23EXetoCdo you do live color edits? it's pretty convenient
00:33:25flaviuEXetoC: Not quite live -- I need to restart the server. But live enough, it uses some CSS dialect that has variables
00:33:42flaviuSo I just need to change the colors in the web UI
00:34:00EXetoCmy eyes are pretty tired though. will have to get back to this at another time
00:34:03EXetoCscss?
00:34:16flaviuI don't really know, sorry
00:34:53EXetoConionhammer: are the alternating rows distracting for you?
00:46:37*BlaXpirit quit (Quit: Quit Konversation)
00:49:10flaviuonionhammer: I made it so the background doesn't scroll with the view, so that should make things much better already. I'm not sure what you mean by a subtle checkered pattern, do you have any examples?
00:51:24*boydgreenfield joined #nimrod
00:53:51EXetoCI don't like the reddish color that appears, but no discomfort at least
00:54:56flaviuEXetoC: Make an account, and I can let you play with the colors
00:58:07flaviuI don't mind doing it myself, but it might be faster if you look at all the colors there are.
00:59:38EXetoCtomorrow maybe
01:07:39onionhammerflaviu i dont mind the alternating rowcolor
01:08:16EXetoCwell I don't mind it now
01:08:38flaviuOk, great. Because I really like the alternating row color
01:10:04EXetoCI think it will look good once the other colors have been adjusted too
01:10:33flaviuRight now I have a bug to report: http://24.126.215.38/t/yet-another-public-topic/17
01:10:54fowlneed contrast
01:11:33onionhammerflaviu topic-body is hard to read too
01:11:39onionhammerwhite on light text
01:11:42fowl^
01:11:44onionhammeri'd just darken the text
01:11:53onionhammeri like the contrast w/ the white background though
01:12:12fowlwrote this l-system thing https://gist.github.com/fowlmouth/394ad9bd43aae81d4bc5
01:12:18flaviuI want to keep it similar in appearance to the rest of the nim website
01:12:28*ehaliewicz joined #nimrod
01:12:44flaviuonionhammer: topic-body?
01:12:46fowlparses a string like "A->AB,B->A" into a closure
01:13:14fowlflaviu, the post
01:13:17onionhammerflaviu the topic-body element http://24.126.215.38/t/yet-another-public-topic/17
01:13:26fowlcannot read that
01:13:31onionhammer$(".topic-body")
01:13:42flaviuOh, yes, I know about that. That's the bug that needs reporting
01:13:51flaviuhttps://github.com/discourse/discourse/commit/199896a607c15223e3dbfea546639772d7333a06#diff-217d6a1274541dcb31325d9fe17e7358R120
01:14:03flaviuThat should adjust the transparency, not the lightness
01:14:31onionhammerok
01:14:41flaviuIf you go to another page, it works fine: http://24.126.215.38/t/faq-guidelines/5
01:15:21onionhammeri like the white background honestly
01:15:28onionhammerrather than transparent
01:17:44flaviuonionhammer: I don't want to do that because I want it to match the rest of the web site.
01:17:44flaviuThere are lots of feature requests for Discourse to allow per-user themes, but they said no
01:17:44flaviuWhen I iron out the CSS, I can give you a light version that you can use with Stylish to make the site white
01:23:10EXetoCis there a preview of the rest? looking at the official site now, and it does indeed have a little 90s touch to it :p but the background for the content area is nice
01:23:37flaviuEXetoC: I'm not sure what you mean.
01:25:55*darkf joined #nimrod
01:26:53EXetoCnevermind. I don't what it is that it should match
01:27:25*johnsoft quit (Ping timeout: 250 seconds)
01:27:49*Varriount|Mobile joined #nimrod
01:28:09*johnsoft joined #nimrod
01:34:02Varriount|Mobileflaviu: I'd rather have the forum written in nimrod...
01:34:34flaviuVarriount: dom96 had a good point there, the forum should show that Nim is ready for production use.
01:35:34flaviuI believe it's more important for the forum to be the best possible, but I wouldn't be against the use of nim-forum for the reason dom96 pointed out
01:35:36EXetoCbut then someone has to work on it
01:35:57EXetoCI'd assume that it matters for the sake of adoption
01:36:21flaviuYes, time could be better focused on other things. Also CSS is terribly finicky, it's all much easier when someone else deals with that mess
01:37:18EXetoCthat's why you go for ready solutions in some cases
01:37:48flaviuEven bootstrap is a non-insignificant amount of work.
01:39:23EXetoCI stopped using it because of all those color definitions
01:46:51Varriount|Mobileflaviu: But what about the new forum look filwit is working on?
01:47:52flaviuVarriount|Mobile: You'll notice I took the background and logo from there
01:48:30flaviuThe colors are inspired by it too
01:52:19*q66[lap] quit (Read error: Connection reset by peer)
01:52:44Varriount|Mobileflaviu: Yes, but I don't see what, besides that, should prompt a move from Nimforum
01:53:11flaviuVarriount|Mobile: Make an account, play around with it
01:53:34EXetoCbecause of what I said
01:53:37flaviuI suppose I'm a bit biased, but it's pretty great.
01:53:42EXetoCprogress
01:53:58Varriount|Mobileflaviu: Also, I commented on your nim-buildbot PR
01:54:42EXetoCflaviu: but maybe if you want to work on features for the existing forum, in case the others insist
01:55:08flaviuVarriount|Mobile: Oh, forgot to mention it's mostly not my code; I don't want to take credit for someone else's work. I'll fix all that anyway though
01:55:17Varriount|MobileMy only gripe with the current forum is not being able to change passwords/emails, and the inconvenient url syntax
01:55:26flaviuAll I did was download prettier icons
01:55:40dom96_Varriount|Mobile: What's inconvenient about the URL syntax?
01:56:14EXetoCVarriount|Mobile: and then there's encryption, but it's not so obvious
01:57:02*q66[lap] joined #nimrod
01:57:05Varriount|Mobiledom96: I can never remember it. I like reddit's url syntax '[link text](url)'
01:57:26flaviuDiscourse supports both markdown and BBCode
01:57:43dom96_Varriount|Mobile: oh, I thought you meant http://forum.nim-lang.org/t/threadID.
01:57:48Varriount|MobileIn fact, I don't remember it at the moment either, just the fact that I dislike it.
01:58:05dom96_I agree with you on that.
01:58:33dom96_If somebody could write a markdown parser then I will put it in the forum.
01:58:58Varriount|MobileOne moment, switching to laptop
01:59:05*Varriount|Mobile quit (Quit: AndroIRC - Android IRC Client ( http://www.androirc.com ))
01:59:27flaviuBut guize, Discourse has pretty emoticons http://24.126.215.38/t/test-different-emojis/19 :D
02:01:35*boydgreenfield quit (Quit: boydgreenfield)
02:06:05*Varriount|Mobile joined #nimrod
02:06:26Varriount|MobileOk, back.
02:07:25*boydgreenfield joined #nimrod
02:13:53Varriount|Mobilefowl: What does you lsystem thing do?
02:14:52flaviuVarriount|Mobile: It's a sort of cellular automata, IIRC
02:15:23flaviuNope, I was wrong. But it's used in procedural generation: https://en.wikipedia.org/wiki/L-system#mediaviewer/File:Dragon_trees.jpg
02:16:57Varriount|MobileAh, ok.
02:17:57flaviuYou can reference StackExchange and Github from Discourse! http://24.126.215.38/t/test-lots-of-cool-features/19
02:19:35Varriount|Mobileflaviu: But... it's not in nimrod... :<
02:19:56EXetoCeverything in nimrod!
02:20:08flaviuruby, nimrod, apples, oranges
02:20:13flaviuWhat's the difference?
02:20:15flaviu:P
02:20:52Varriount|Mobile flaviu: Logically, yes, discourse is much better than the current forum software. But... it's not written in Nimrod
02:21:43Varriount|MobileAnd before you say anything about the buildbot not being written in Nimrod, the buildbot is much less visible, and I have... plans.
02:22:41EXetoCflaviu: just the syntax really
02:22:54dom96_You know what's written in Nim? Nimbuild
02:23:12Varriount|MobileEXetoC: Don't forget the whole VM vs Static Compilation
02:23:24Varriount|Mobiledom96_: As I said, I have *plans*
02:23:47dom96_what are these plans?
02:24:15Varriount|Mobiledom96_: Well, there are a great many things that nimbuild does that buildbot can't do (out of the box)
02:24:33Varriount|Mobiledom96_: And since python has a C interface, and nimrod has a C backend...
02:25:29Varriount|MobileWell, lets just say, "Built with Nimrod and Python" is much better than just "Built with Python"
02:25:47EXetoCVarriount|Mobile: I forgot
02:25:49EXetoC:p
02:26:49flaviuhttp://i.imgur.com/iauHIwp.png
02:27:23Varriount|Mobileflaviu: Stop trying to tempt me over the dark side.
02:27:28flaviuSo... that button should be pretty great for encouraging participation
02:28:16flaviuSearch is amazing too! http://i.imgur.com/l1He0l5.png
02:28:28Varriount|Mobileflaviu: What about performance? I haven't heard very good things about the Ruby VM and memory usage.
02:29:10dom96_Nothing is more encouraging than using a programming language which nobody apart from the compiler devs use for production quality software.
02:29:12flaviuPerformance is meh, it uses about 275MB per worker
02:29:25Varriount|MobileO_o
02:29:50dom96_I know that it's more work to get stuff in Nim working but it pays off big time for everyone.
02:30:27flaviuSorry, but it's just too much fun to use something as polished as Discourse.
02:30:43dom96_If I did what you're doing now then there would be no nimble, aporia or jester.
02:32:29flaviunimble, aporia, and jester are reasonable. There isn't an off the shelf package manager kit, IDE kit, or web server in a specific language.
02:33:00flaviuBut very user-facing things should be polished and as close to perfect as possible.
02:34:25Varriount|Mobileflaviu: This is one decision I'm going to stay out of. For all intents and purposes, I think it's dom96_ and Araq that you need to convince.
02:35:14flaviuI can migrate the old forum over, dom96 and Araq
02:35:34EXetoCyou don't want to patch up the original project?
02:35:46EXetoCwell, you kind of hinted at that
02:36:06Varriount|MobileEXetoC: Was that aimed at me?
02:36:13flaviuEXetoC: patch up nim-forum?
02:37:00*q66[lap] quit (Read error: Connection reset by peer)
02:37:20dom96_lol, discourse totally stole nimforum's URLs
02:37:43*q66[lap] joined #nimrod
02:39:12flaviuIt should be possible to get by with just one worker
02:39:28flaviulooks like nginx is doing lots of caching
02:40:30EXetoCflaviu: the current forum
02:41:02flaviuOh, I was thinking of fixing some CSS. I decided it'd be easier to just mess with Discourse
02:43:02dom96_Seriously though guys, who's going to take us seriously if we don't write anything in the language we are trying to promote.
02:44:15EXetoCthe other projects are not enough?
02:44:30EXetoCfor now that is. obviously the majority of the projects will be by users eventually
02:44:53dom96_what other projects?
02:44:56Varriount|Mobiledom96_: I agree.
02:45:02flaviu"We prefer to focus our energy on the core of the project: a bug-free compiler and useful libraries. See http://www.joelonsoftware.com/articles/fog0000000007.html"
02:45:27Varriount|MobileEXetoC: I think dom96_ means 'publically visible and running' projects.
02:46:59EXetoCI'll just hope it gets some more love soon then
02:47:15EXetoCI'll stop repeating myself now
02:48:25dom96_EXetoC: what do you hope gets some more love soon?
02:50:43Varriount|Mobiledom96_: The nim forum software
02:51:27flaviudom96_: Make an account and mess with discourse a bit. Join the dark side!
02:52:30dom96_I'm familiar with Discourse.
02:53:02dom96_I'd rather give the nim forum some love.
02:53:36Varriount|MobileHm. Was discourse affected by the the shellshock bug?
02:54:32Varriount|MobileOh. Look. It was - https://meta.discourse.org/t/bash-shellshock-is-now-patched-in-our-base-image/20491
02:54:55Varriount|Mobiledom96_: Does nimforum suffer from the shellshock bug?
02:55:04flaviuVarriount: No, it doesn't use CGI
02:55:36flaviuAlthough I don't see shellshock as being a negative for Discourse, many websites were effected
02:55:44dom96_Varriount|Mobile: nope.
02:55:58Varriount|Mobileflaviu: Rather, it's a positive for nimforum.
02:56:17flaviuI'm confident I can find security holes.
02:56:44Varriount|Mobileflaviu: Please do. And while your at it, spice up nimforum. ;)
02:56:51flaviuPasswords still aren't properly hashed.
02:56:51Varriount|Mobile*you're
02:57:52*BitPuffin quit (Ping timeout: 240 seconds)
02:58:42Varriount|MobileAnyway, I'm off - I have to study for an exam on monday.
02:59:00flaviuohh, the password problems are worse than I thought!
02:59:11flaviumd5 O_o
02:59:12Varriount|Mobileflaviu: I'll merge your PR later tonight, and hopefully update the master's version tomorrow.
02:59:24*Varriount|Mobile quit (Quit: Page closed)
03:01:05dom96_flaviu: Passwords will be properly hashed. Complaining about it further does not help anybody.
03:01:34dom96_The passwords are salted though so I am still sceptical that it's really /that/ easy to brute force crack them.
03:02:12flaviudom96_: I could be logged in as you for no more than $5
03:02:24EXetoCcan you try it?
03:02:41EXetoCwhatever. someone's gotta fix it
03:02:45flaviuSure, I guess I can try. I'll probably fail
03:03:38dom96_How can you try? You don't have access to the database?
03:03:45flaviudom96_: Timing attack
03:04:09flaviudom96_: just so I don't waste my time, do you use a password manager?
03:04:18dom96_no.
03:05:35*boydgreenfield quit (Quit: boydgreenfield)
03:06:43*boydgreenfield joined #nimrod
03:09:06dom96_flaviu: I'd love for you to try it. I bet my salting makes things pretty difficult.
03:09:08*darkf_ joined #nimrod
03:10:12*darkf quit (Ping timeout: 250 seconds)
03:11:12EXetoCdoes it matter for such attacks?
03:11:14*darkf_ is now known as darkf
03:15:04*darkf_ joined #nimrod
03:15:30flaviuWell, I won't have the salt, so it'll be harder
03:16:07*darkf quit (Ping timeout: 264 seconds)
03:18:44*Varriount__ quit (Read error: Connection reset by peer)
03:18:48*ehaliewicz quit (Remote host closed the connection)
03:19:18*darkf_ quit (Ping timeout: 250 seconds)
03:20:26flaviudom96_: You're right, just a timing attack is insufficient. Your salts are too long
03:35:07flaviuhttps://github.com/Araq/Nimrod/blob/devel/lib/pure/sockets.nim#L400-L427 almost makes me cry
03:37:55EXetoCwai
03:38:33EXetoCnot enough unrepetitionifying?
03:39:36EXetoCor the lack of indents?
03:39:54flaviuWell, the first thing that came to mind when seeing that was code golf
03:40:05EXetoC:p
03:40:07EXetoCor empty lines
03:41:16*hudson joined #nimrod
03:43:42*hudson left #nimrod ("Leaving")
03:47:58EXetoCtoo bad we can't cram it into one line using semicolons
03:48:18flaviuEXetoC: You can
03:48:36flaviuThere's a way to write nim with semicolons
03:48:46flaviuSee if you can figure it out :)
03:49:00flaviuIt's not in the docs, nor is it particularly hidden
03:50:05EXetoCoh right
03:50:18EXetoCless code-colfy though, right
03:55:08flaviuWell, it costs you two characters, but it saves you at least 2 characters per line
03:56:05EXetoClet's have bf syntax too in cases where it matters
03:57:10flaviuEXetoC: All nimrod code is correct brainfuck
03:57:25flaviuIt just so happens that most of it gets stuck in loops
04:03:19EXetoCright
04:03:34EXetoChttp://www.pcengines.ch/alix2d3.htm nice and simple website
04:03:46EXetoCI would like to use one of those as a router
04:05:01*Varriount|Mobile joined #nimrod
04:05:59EXetoCyou can buy dedicated routers for less, but this is good in some ways
04:06:14Varriount|MobileI found a mention of Nim! http://www.reddit.com/r/programming/comments/2mea0l/circumventing_the_d_garbage_collector/
04:06:36EXetoCspeaking of which, how often do you have to restart your routers? I've had two, and both have needed frequent restarts
04:06:40Varriount|MobileSeems like having a soft-realtime GC is a somewhat unique attribute.
04:06:55flaviuEXetoC: use openwrt
04:07:09flaviuI haven't had to restart it once.
04:07:30EXetoCthere's no support for my current router I think
04:08:02dom96_flaviu: hah. So you can't do it? :P
04:08:14flaviudom96_: Sure I can. It'll just take more work
04:08:23EXetoC<10 years?
04:08:47flaviuYes.
04:09:13flaviuugh, I can't get nimforum to compile, no matter what I do.
04:10:22*q66[lap] quit (Read error: Connection reset by peer)
04:11:05EXetoCso when do we make adaptions with the assumptions that quantum computers can do useful things soon? :>
04:11:57Varriount|Mobileflaviu: Just curious, what errors are you running into?
04:12:26*q66[lap] joined #nimrod
04:12:32Varriount|MobileEXetoC: When quantum hardware becomes available to the common person?
04:12:39flaviuVarriount|Mobile: Well, first an ICE
04:12:53flaviuThen gcc locks up while compiling HEAD~50
04:13:18Varriount|MobileAre you using the latest stable version of GCC?
04:13:28EXetoConly after the fact?
04:13:29flaviuWell, it turns into a zombie and nim never reaps it
04:14:25flaviuEXetoC: Well the idea was that even if I don't find a vulnerability, someone else will. It just takes one.
04:14:50EXetoCnm
04:14:54EXetoCwanna implement password reset? :>
04:14:56*boydgreenfield quit (Quit: boydgreenfield)
04:14:59flaviuNope
04:15:11flaviuDiscourse is better
04:16:47*boydgreenfield joined #nimrod
04:16:48EXetoCoh well
04:21:04*darkf joined #nimrod
04:23:00*q66 quit (Quit: Leaving)
04:34:44*boydgreenfield quit (Quit: boydgreenfield)
04:36:37*Varriount|Mobile quit (Ping timeout: 246 seconds)
04:37:37*flaviu quit (Quit: Leaving.)
04:47:57*flaviu joined #nimrod
04:48:18*boydgreenfield joined #nimrod
05:05:06*boydgreenfield quit (Quit: boydgreenfield)
05:19:54*kemet joined #nimrod
05:35:05*kemet quit (Quit: Instantbird 1.5 -- http://www.instantbird.com)
05:47:22*saml_ joined #nimrod
05:49:39*untitaker quit (Ping timeout: 265 seconds)
05:53:22*saml_ quit (Ping timeout: 240 seconds)
05:55:05*BitPuffin joined #nimrod
05:55:16*untitaker joined #nimrod
05:59:44*BitPuffin quit (Ping timeout: 255 seconds)
06:06:20*saml_ joined #nimrod
06:15:43*bjz quit (Ping timeout: 272 seconds)
06:23:54*saml_ quit (Ping timeout: 250 seconds)
06:35:28*boydgreenfield joined #nimrod
06:36:33*saml_ joined #nimrod
06:45:17*saml_ quit (Ping timeout: 240 seconds)
06:52:10*ehaliewicz joined #nimrod
06:58:56*saml_ joined #nimrod
07:07:12*bjz joined #nimrod
07:11:32*bjz quit (Ping timeout: 245 seconds)
07:15:32*saml_ quit (Quit: Leaving)
07:32:43*bjz joined #nimrod
07:38:19*bjz quit (Ping timeout: 264 seconds)
07:43:15*boydgreenfield quit (Quit: boydgreenfield)
08:08:08Araqflaviu: the quality of the stdlib and the compiler improve tremendously with realworld software like nimforum.
08:08:49*bjz joined #nimrod
08:08:53Araqit helps us with the core, so it's completely unreasonable to switch to feature-rich non-nim forum at this point
08:09:26Araqand about NimForum being insecure. prove it. attack it, login as Araq
08:10:41Araqotherwise shut up. the larger the system is, the larger is the attack vector. And Nimforum is really small.
08:12:48*ARCADIVS quit (Quit: ARCADIVS)
08:14:40*bjz quit (Ping timeout: 256 seconds)
08:15:54*bjz joined #nimrod
08:17:11*Trustable joined #nimrod
08:17:44AraqTrustable: the problem is that *= takes a 'var int'
08:17:59Araqthis is translated into an array of size 1
08:18:11Araqso that it can modfified inplace
08:18:22Araqbut the codegen is not consequent about it, hence the bug
08:19:00Trustableok
08:24:57*gour joined #nimrod
08:25:26Triplefoxhaxe did exactly the same thing with its forum and wiki software...not amazing software but it is usable
08:30:51kokozedmanhey guys
08:31:07kokozedmanwhen I import logging ... it tries to import on the currenct directory
08:31:25kokozedmanvery weird, is the a gotcha around it?
08:31:31kokozedmanis there*
08:33:55*ehaliewicz quit (Remote host closed the connection)
08:33:59Araqkokozedman: er no? don't have a logging module in the current directory?
08:34:34kokozedmanno, I don't, I have a Log.nim that imports logging (adds some other procs)
08:34:48kokozedmanI tried Logging.nim also, same error
08:35:05kokozedmanand if I change to logging.nim, it will complain logging.nim(1, 7) Error: A module cannot import itself
08:35:49Araqwell log.nim means you get a 'log' module identifier in the code
08:36:02Araqand then you import logging which exports 'log'
08:36:10gourmorning
08:36:13Araqmaybe that confuses the compiler
08:36:28kokozedmanmodules are case insensitive?
08:36:54Trustablebbl
08:36:56*Trustable quit (Quit: Leaving)
08:38:07*gour is impressed seeing that nimble has 'uninstall' target - something which is, afaik, still not present in e.g. haskell's cabal
08:38:22Araqkokozedman: no idea what you mean
08:38:25kokozedmanAraq: I have a main file that imports my own logging module... that in turn imports the actual logging... so: main <- MyLogging.nim (I tried this) <- logging.nim
08:38:42kokozedmanI mean, is module Logging.nim same as logging.nim?
08:38:58Araqsure
08:39:20Araqeverything else wouldn't work on windows anyway
08:39:36kokozedmanalright, so, I changed my module to MyLogging.nim, nothing to do with log or logging ... still can't import the actual logging.nim
08:39:49gouris nimble designed in a way to easily add support for other dvcs-es?
08:39:54kokozedmanstill tries to import on the ./ directory
08:40:22Araqkokozedman: 'import logging' is the syntax, not 'import logging.nim'
08:40:37kokozedmansure, I know that
08:40:46kokozedmanbut it doesn't work
08:41:35kokozedmanAraq: could there be something wrong with my flags? --cpu:mips --os:linux --threads:on -d:uClibc --parallelBuild:1 --nimcache:/home/elie/tmp/nimcache --verbosity:1 --deadCodeElim:on
08:41:50kokozedmanyet, I've been working on these flags for a while now
08:41:51kokozedmanno problem
08:42:18kokozedman(for a week to be exact)
08:42:43Araqgour: dunno, but we already support 2
08:42:59Araqkokozedman: well what's the error message?
08:43:00gourAraq: i'm interested about fossil
08:43:26kokozedmanError: cannot open '/.../.../logging.nim'
08:43:38kokozedmanand that referers to the current directory
08:43:45kokozedmancurrent working directory*
08:44:14gourAraq: am i right that nim's (std)lib is as complete as the one in Ada, if not even more? (here i'm thinking about e.g. utf8 support built in nim)
08:46:51Araqkokozedman: logging is in lib/pure same as strutils and os. so either importing strutils fails too or you have some other problem
08:47:50kokozedmanAraq: it seems that if I import logging in the main file, and then I import MyLogging (which import logging again), it will work
08:48:40Araqgour: afaict we have more modules and wrappers than Ada.
08:50:08Araqkokozedman: why does it say '/.../.../'? do you use some relative import?
08:50:52kokozedmanAraq: no no, I suppressed the actual path... but like I said, it referers to the CWD
08:51:04kokozedmansorry for the confusion
08:52:03kokozedmanthat's weird... for some reason, it doesn't complain anymore
08:52:31kokozedmanI added the import logging before import MyLogging ... then compilation passed... then I removed import logging, and now, things are ok
08:57:37Araqah wait
08:57:49Araqyou're the guy with ulibC patches, right?
08:58:01kokozedmanyeah
08:58:06kokozedmanbut I'm using master now
08:58:21Araqso ... no patches necessary anymore?
08:59:08kokozedmanyes, barely some patch ... just some osproc patch, where I removed execvpe because uClibc only has execve
08:59:25Araqok, please make a PR then
08:59:44kokozedmanPR about what?
08:59:56Araqyour osproc patch
09:00:04kokozedmanah, ok
09:13:49Araqbbl
09:29:37kokozedmanI'm actually on devel ... I was mistakenly thinking I was on master
09:30:14*bjz quit (Ping timeout: 250 seconds)
09:35:39*Demos_ quit (Read error: Connection reset by peer)
09:46:23gourAraq: yeah, i was investigating Nim's ecosystem yesterday and got feeling it's in a better shape than Ada's...quite impressive!!
10:10:00kokozedmanAraq: PR sent
10:10:06kokozedmanshould be very trivial
10:17:25*Arcanum_za is now known as Trixar_za
10:31:50*bjz joined #nimrod
10:32:33*silven_ is now known as silven
10:36:31*EXetoC quit (Quit: WeeChat 1.0.1)
10:44:20*Matthias247 joined #nimrod
11:04:38gokr1Hey folks
11:10:55*gokr1 forcing linux32 one more time. :) Will see if I can take a look at that t5000 test a bit closer.
11:11:12*gokr1 really should be changing tires on one of our cars but... hacking Nim is more fun
11:14:07*gour urges gokr1 to consider safety issue as well ;)
11:14:27gokr1I will change tires... soon :)
11:15:03gokr1Are you swedish?
11:15:36gournope, from croatia
11:16:22gokr1Just curious, you connect via a swedish IRC server I think. But not sure how that works.
11:16:58gokr1Did you see my articles on Nim btw? They might be of interest and since they are fairly new I am not sure they are very well "linked"
11:18:43*AMorpork is now known as AFKMorpork
11:21:51gourwell, this is what i've in my weechat setup: chat.freenode.net/7070, it probably goes random
11:24:12gourgokr1: i saw read (some) and commented on one article...i must say it re-ignited my interest in nim considering i see that Ada's roadmap is not going towards open-source
11:24:21gokr1Ah, cool
11:24:54gokr1I am an oddbird here I guess, being a long time Smalltalker (but polyglot).
11:25:04gourmoreover, it looks that now Nim's ecosystem is not at all behind the one in Ada, it even looks more advanced
11:26:17gokr1My sense of Nim after hacking a bit - is that there is a "simplicity" that I like. Well, the language itself is fairly big, but the code you read and write is often very simple.
11:26:25gokr1The compiler is simple to use. Nimble is simple.
11:26:26gourprogramming is not my bread & butter these days although i graduated computer engineering long ago, so nim/ada/whatever would be used for kind of hobby project...and i played with digitalk (if you know about it) long ago when using os2
11:26:42gokr1Yeah, Digitalk, sure.
11:26:52gokr1Also used it a looooong time ago :)
11:27:01gourdidn't try nimble, but i'm impressed it even has 'uninstall' target
11:27:04gokr1The Smalltalk with the most push these days is Pharo.
11:27:31gouri heard about it, but believe that smalltalk is not for me these days
11:27:47*BitPuffin joined #nimrod
11:27:48gokr1Its... comparing to Nim its a totally different beast :)
11:28:28gokr1The IDE of Pharo is about 20x more advanced. But Nim has a range of other advantages.
11:29:52gokr1So what are you going to "hack"?
11:30:18gourmy 'niche' is more application's space, iow. 'general applications' if such things still exist along with today's web-app's hype, not so interested in low(er)-level system programming and nim really looks nice, especially after evaluating (too) many langs
11:31:07gourgokr1: something like 'research' version of http://saravali.de/maitreya.html
11:31:47gourgokr1: why are you going from smalltalk to nim?
11:32:19gokr1Well, we work with a huge virtual reality collaboration system called Terf. Its written almost entirely in Smalltalk.
11:32:37gourwhat's wrong with it?
11:33:14gokr1And that's fine, but we are now moving towards integrating and using a game engine instead of our own homegrown OpenGL engine, and also we are moving towards Android/iOS (not only OSX and Win32 as today).
11:33:58gournim is going to be suitable for mobile platforms?
11:34:06gokr1Sure
11:34:12gokr1Nim compiles to C or C++.
11:34:31gokr1The gaming engine we are looking at is C++, and its already portable over those 4 + Linux.
11:35:49gokr1So for us this is a HUGE step, the codebase we have is BIG. But we feel its our path forward. We integrate a whole bunch of stuff from the C/C++ eco systems - so that factor is important.
11:36:25gokr1Hmmm, this channel is logged so ... I don't want to go into too much detail :)
11:39:28gour:-)
11:48:42gokr1My current little nim hack is "blimp": https://gitlab.3dicc.com/gokr/blimp
11:48:55gokr1Sorry about the broken cert there, needs to fix it.
11:50:07gokr1Its working quite well, just need to polish it a bit. Also only tested on Linux, well, the idea is for it to work on all 3 platforms - it probably works on all, but I haven't yet tested.
11:50:27gokr1Ok, time for the garage, later
12:02:22*t4nk600 joined #nimrod
12:02:45t4nk600Hello, is it possible to modify the command line used by the C compiler? I would like to add some extra defines. Thanks!
12:06:00*Trustable joined #nimrod
12:06:14*tillzy joined #nimrod
12:23:17*bjz quit (Ping timeout: 264 seconds)
12:33:29flaviuAraq: I know, I'm trying to. I needed to sleep first.
12:34:14flaviut4nk600: --passC:-stuff ?
12:45:00t4nk600flaviu: thanks!
12:45:30dom96_gour: Nimble is designed for the trivial addition of extra dvcs'. Take a look at https://github.com/nim-lang/nimble/blob/master/src/nimblepkg/download.nim
12:48:50flaviudom96_: Just being pedantic here, but there exist non-dvcs vcs's
12:50:19dom96_flaviu: Yes, i'm aware of that.
12:55:52gourdom96_: looks good. will take a look and see how it could work for fossil
13:05:31gour..although fossil does things a bit differently, e.g. there is nothing like ./fossil directory etc.
13:08:02*bjz joined #nimrod
13:13:48*jhc76 joined #nimrod
13:27:07*kemet joined #nimrod
13:45:49t4nk600I am now using gcc to compile (on Linux). How can I choose Clang instead? thanks!
13:50:49Araqedit your config and set cc=clang
13:51:22*q66 joined #nimrod
13:51:29Araqbtw this is the last question of http://nimrod-lang.org/question.html
13:59:41t4nk600Araq: thanks!
14:02:43t4nk600Araq: well actually, where is the config file is supposed to be? I am not able to find it in my home. Only the system one in "etc"
14:02:57t4nk600etc -> /etc
14:03:25AraqI think you can copy the one from /etc to your home
14:03:43Araqsomething like ~/nimrod/nimrod.cfg
14:04:00t4nk600Araq: thanks!
14:04:30Araqbut I refuse to accept that it is our problem, that's just how unix works
14:04:50Araq(it doesn't)
14:05:28t4nk600Araq: ? This is just about searching first in a local path. What is unix specific here?
14:06:25Araqthe way of "installing" stuff by spreading it out over the whole dir hierarchy with questionable access rights
14:07:30t4nk600Araq: OK. ~/nimrod/nimrod.cfg does not seem to work though.
14:07:53Araqtry ~/nimrod.cfg then
14:08:09Araqor ~/.nimrod.cfg
14:08:16Araqor ~/.nimrod/nimrod.cfg
14:08:36Araqor ~/nim/nim.cfg (do you use nimrod or nim?)
14:09:02Araqor just make some local project.nimrod.cfg
14:09:18t4nk600work in the current dir actually. Since this is work local tests, it is even better for me. Thanks for your help!
14:09:37Araqactually iirc it is ~/config/nimrod.cfg
14:18:32*kemet quit (Ping timeout: 265 seconds)
14:19:37*BlaXpirit joined #nimrod
14:20:29*gokr_ joined #nimrod
14:20:29*gokr quit (Read error: Connection reset by peer)
14:21:52*gokr joined #nimrod
14:21:53*gokr_ quit (Read error: Connection reset by peer)
14:31:19*q66[lap] quit (Read error: Connection reset by peer)
14:33:23*q66[lap] joined #nimrod
14:36:19*bjz quit (Quit: Textual IRC Client: www.textualapp.com)
14:36:51*bjz joined #nimrod
14:44:33flaviuAraq: Ok, got it.
14:44:53flaviuAraq: Look: http://178.62.143.63:5000/t/11
14:45:31*tillzy quit (Ping timeout: 264 seconds)
14:45:56*EXetoC joined #nimrod
14:46:59flaviudom96: You should too.
14:48:57EXetoChow's it going with the forum stuff?
14:49:31EXetoCwhat's the address again?
14:49:46flaviuEXetoC: I just posted it.
14:50:10flaviuhttp://178.62.143.63:5000/
14:50:15flaviuOr do you mean Discourse?
14:50:24flaviuI haven't done anything since last night
14:50:34flaviuDiscourse: http://24.126.215.38/
14:52:14EXetoCboth
14:52:28EXetoCok
14:53:29Araqflaviu: we won't use discourse
14:53:35flaviuAraq: Ok.
14:54:07flaviuAraq: Can you look at the topic that I showed you?
14:54:19Araqlink?
14:54:24flaviuhttp://178.62.143.63:5000/t/11
14:54:56Araqwhat does that prove?
14:55:47flaviuAraq: Ah, you're not logged in.
14:55:53flaviuBe logged in and make an account
14:56:05flaviuerr, be logged in and go to that link
14:56:19flaviuLook at what EXetoC posted: http://178.62.143.63:5000/t/12
14:57:15EXetoCc(:)|<
14:57:20Araqwell I'm logged in now and don't get it
14:57:26EXetoCI didn't btw. I got haxored
14:58:00flaviuAraq: Logged in on the new forum
14:58:15Araqyeah
14:59:04flaviuAraq: Do you have noscript enabled?
14:59:32AraqI don't think so, but I have an ad blocker (who doesn't?)
14:59:52flaviuSo do I, but it works for me.
14:59:55EXetoCpeople who say "BUT OMG, PAYWALL"
15:00:13*kemet joined #nimrod
15:01:40Araqwell sooooo ... flaviu pretended to be EXetoC ?
15:01:48flaviuAraq: No, I see the problem.
15:02:02EXetoCI assume he did
15:02:17flaviuI could have very easily.
15:05:56*kemet quit (Remote host closed the connection)
15:06:07Araqflaviu: prove it! :P
15:06:19flaviuAraq: Give me a few moment
15:06:25AraqI really enjoy you trying to break our software, don't get me wrong
15:06:36AraqI'm also sure you'll succeed
15:06:48Araqbut we should improve what we have, not abandon it
15:06:56Araqbbl
15:06:58*kemet joined #nimrod
15:09:22dom96_flaviu: are you trying to inject HTML?
15:09:44dom96_Doesn't quite relate to the password hashing algorithm does it?
15:09:51flaviudom96_: Sure it does.
15:12:04*darkf quit (Quit: Leaving)
15:12:24dom96_How?
15:12:34dom96_Also, are you just spamming the forum?
15:12:42flaviuSorry about the spam
15:12:55flaviuEvery time I reload the page, it submits a new topic
15:14:05*BlaXpirit-UA joined #nimrod
15:16:20goursince you like web forums, let me say that in such scenario i like forum <---> mailing list gateway so that the list can be subscribed to gmane and be read/posted to via nntp
15:16:41*BlaXpirit quit (Ping timeout: 264 seconds)
15:18:45flaviudom96: Ok, click that link again
15:19:40flaviuhttp://178.62.143.63:5000/t/12
15:25:46dom96_what are you trying to do?
15:27:06flaviudom96: Just be logged in and click the link, and I'll give you your password hash
15:27:31flaviuWhich allows me to impersonate you.
15:27:36dom96_I already did.
15:28:38flaviuOops, wrong link.
15:28:39flaviuhttp://178.62.143.63:5000/t/11
15:29:49dom96_done
15:30:16flaviuLooks like it crashed, but the crash isn't my fault
15:30:25flaviuOr at least not my goal.
15:32:25gokr1He, Linux32 came through this time. So its obviously non deterministic.
15:33:45gokr1gour: I am with you.
15:33:51gokr1Can't be hard to bridge.
15:34:56dom96_flaviu: restarted
15:35:39dom96_flaviu: well done
15:35:53gourgokr1: well, it might be old-school, but, for me, it's still the most effective communication channel
15:35:57flaviu16b32d7ed45f9bed2b0873e7918427ba
15:36:07gokr1gour: I am all with you.
15:36:31dom96_flaviu: can you figure out what that password is?
15:37:19flaviuperhaps, did the server crash again?
15:37:28flaviunope, it's just being slow
15:39:11gokr1So given that I don't want dom96 to have to abandon his work - and there are several good points in dog fooding too - then I suggest integrating the forum with an ml somehow. I am not sure I can commit work on it, but I can look into it at least.
15:40:28flaviugokr1: We're not switching to discourse anyway, since Araq doesn't want it.
15:41:51gokr1I read that, and I just wanted to support that viewpoint. I agree with you, groupserver and discourse look very impressive. But we should preserve the work being put into the forum. Now, if it gets abandoned, that's another story.
15:42:04dom96_flaviu: How did you trick rstgen to allow you to embed html then?
15:42:17flaviuimage tags
15:42:34flaviu.. image:: "/><script>...</script>
15:43:27gokr1The hours I can spend I will probably put into nimble though, seems like more payback.
15:44:02*gokr1 still heavily confused why so many like web forums... :)
15:44:20*gour *shrugs*
15:44:53dom96_flaviu: Could you please write a markdown parser for the forum?
15:45:00flaviudom96_: I then embedded the code in `.customscript1`, which I evaled. The reason I didn't put everything in the image directive was that using a space would break.
15:45:22*johnsoft quit (Ping timeout: 240 seconds)
15:45:31flaviuhttps://github.com/flaviut/stupid-markdown-parser/blob/master/markdown.nim
15:45:33flaviu:P
15:45:48flaviu100% secure, 0 bugs, and impossible to exploit :P
15:46:18*johnsoft joined #nimrod
15:46:55flaviuNow with 200% more PCRE and 100% more angry dom96s!
15:50:20gokr1flaviu: Ouch, my eyes... my eyesss!!!
15:50:46gokr1Which reminds me to take a look at the peg stuff in Nim, is it good?
15:51:27gokr1Ok, time to pack the bag and go play badminton. Keep up the good work, and Dominik - make that forum rock, ok? :)
15:51:45flaviuYes, it's nice. The reason I didn't use it is because of some weirdness I don't recall right now.
15:52:52flaviudom96: The forum is down again, it looks like.
15:53:33dom96_keeps crashing the same way, what are you doing?
15:53:33dom96_https://gist.github.com/dom96/27084b8f9ccc64210952
15:53:50gourin a recent time, after seeing progress of asciidoctor, i'm more into asiidoc (instead of rst & markdown). now there is also asciidoctor.js enabling to render asciidoctor in browser.
15:54:05dom96_oh yeah, you were the one who made that awful regex markdown parser...
15:54:15dom96_:P
15:54:27dom96_gokr1: i'll try heh.
15:54:48flaviudom96_: I'm not doing anything, I'm just using it normally
16:13:05*johnsoft quit (Ping timeout: 265 seconds)
16:13:17*johnsoft joined #nimrod
16:22:20*bjz quit (Read error: Connection reset by peer)
16:22:35*bjz joined #nimrod
16:23:27*q66[lap] quit (Read error: Connection reset by peer)
16:24:29*q66[lap] joined #nimrod
16:32:52*q66[lap] quit (Read error: Connection reset by peer)
16:33:42*q66[lap] joined #nimrod
16:39:03*vendethiel joined #nimrod
16:46:06*boydgreenfield joined #nimrod
17:19:15*Demos joined #nimrod
17:30:28*Varriount|Mobile joined #nimrod
17:31:30*joj joined #nimrod
17:31:44*joj left #nimrod ("Exeo.")
17:32:15*Var|Mobile joined #nimrod
17:36:13*Varriount|Mobile quit (Ping timeout: 265 seconds)
17:37:54*boydgreenfield quit (Quit: boydgreenfield)
17:39:28*Var|Mobile quit (Ping timeout: 250 seconds)
18:04:35Araqflaviu: can you fix rstgen.renderImage to prevent this attack?
18:04:45Araq(that's where I think the bug is)
18:05:56flaviuYeah, but that won't fix the general CSRF attack
18:07:14flaviunimforum needs to generate a unique token for each page load that's submittable, and needs to verify that the submission has that token.
18:07:49flaviuIt also needs to start using real, 100% unique session ids.
18:09:13Araqbtw better usage of 'distinct string' would have prevented this rstgen bug ...
18:09:31Araqif I only I would practice what I preach
18:11:03flaviuNo, it wouldn't have. The url cannot be escaped in the same way as html, so there's still a good chance you wouldn't have escaped it.
18:12:08Araqcan't follow
18:13:05flaviuYou can't escape http://foo.com/search?q=123&b as http://foo.com/search?q=123&amp;b
18:15:04flaviuSo there would be a good chance that you would forget to consider that urls can contain `"` or `'` or ```
18:15:40Araqwell an URL within an HTML document surely is escaped this way
18:15:40flaviuOr `\\$`
18:16:19flaviuthe visible url is escaped that way, the href="..." is escaped differently.
18:17:00flaviuPerhaps I misunderstood what you said
18:19:40Araqmy knowledge of the xml spec is rusty, but are you sure about this?
18:20:00Araqiirc it's allowed to escape it the same way
18:20:38*jab quit (Read error: No route to host)
18:25:48flaviu<a href="https://google.com/search?q=">https://google.com/search?q=%20foo%20bar%3E%3C&ie=UTF-8">https://google.com/search?q= foo bar&gt;&lt;&amp;ie=UTF-8</a>
18:28:08dom96_You can escape the " though
18:28:12dom96_Which is the real issue I think.
18:28:37flaviuI guess you can escape the href in the same way as the contents, but the urls would no longer be equivalent since no URI parser cares about the &; escapes
18:28:49flaviudom96_: That only partially fixes the problem
18:28:56dom96_I feel like we need something separated away from the rst gen.
18:29:29flaviudom96_: read about CSRF
18:46:07*irrequietus joined #nimrod
18:49:36*gour quit (Disconnected by services)
18:49:38*gour_ joined #nimrod
18:55:10*BlaXpirit-UA quit (Quit: Quit Konversation)
18:55:29*BlaXpirit joined #nimrod
18:58:46*ARCADIVS joined #nimrod
19:00:42*q66[lap] quit (Read error: Connection reset by peer)
19:01:26*q66[lap] joined #nimrod
19:07:04*gour_ is now known as gour
19:15:24*kemet quit (Ping timeout: 256 seconds)
19:38:26NimBotAraq/Nimrod devel 03d76c6 Elie Zedeck [+0 ±1 -0]: Added generic OpenWrt compilers for --cpu:mips
19:38:26NimBotAraq/Nimrod devel 04069bb Elie Zedeck [+0 ±1 -0]: Uses execve() in osproc on OpenWrt and uClibc-based platforms.
19:38:26NimBotAraq/Nimrod devel 605b4a8 Andreas Rumpf [+0 ±2 -0]: Merge pull request #1662 from eliezedeck/devel... 2 more lines
19:40:27*bouliii_hopla joined #nimrod
19:40:44bouliii_hoplahello all. I got some time to start to implement x86 simd intrinsics https://github.com/bsegovia/x86_simd.nim I'll fix windows tomorrow at work (no windows now). Comments are welcome!
19:41:57NimBotAraq/Nimrod devel 90b606b Simon Krauter [+0 ±1 -0]: Fix issue #1660... 2 more lines
19:41:57NimBotAraq/Nimrod devel 11cb8ff Andreas Rumpf [+0 ±1 -0]: Merge pull request #1661 from trustable-code/PR7... 2 more lines
19:43:37*gour quit (Quit: WeeChat 1.0.1)
19:45:27Araqhi dom96_ I disagree. rstgen is perfectly up for the task (except some bugs)
19:46:07NimBotAraq/Nimrod devel f7dca91 Araq [+0 ±8 -0]: fixes #619
19:46:07NimBotAraq/Nimrod devel 8349cee Araq [+1 ±4 -0]: fixes #1055
19:46:07NimBotAraq/Nimrod devel 4c7c612 Araq [+0 ±1 -0]: document uClibc switch
19:46:07NimBotAraq/Nimrod devel 69a994b Araq [+0 ±3 -0]: Merge branch 'devel' of https://github.com/Araq/Nimrod into devel
19:51:31*t4nk600 quit (Ping timeout: 246 seconds)
19:53:22flaviuAraq: I think the bigger reason is that Markdown has a huge market share and everyone knows it.
19:55:04flaviuRST is markup language for text, Markdown is a way of parsing typical text.
19:56:02Araqyeah yeah yeah bli bla blub
19:56:29AraqRST is almost a superset of markdown anyway
19:56:40Araqand I already added some markdown extensions
19:56:48Araqthe obvious hole is URL syntax
19:56:58Araqcan be easily added to
19:57:37flaviuBut people don't want RST, they are used to markdown. The only place where RST is better is for definition lists.
19:58:02dom96_Araq: Could you make the smileys non-const?
19:58:08Araqbut I do want RST ...
19:58:19Araqdom96_: could you rename the filenames instead?
19:58:32dom96_The new smileys I got are not gifs
19:58:44dom96_and their size is different
19:58:56dom96_You should allow me to specify the filenames and use some css class
19:59:02dom96_so that I can easily specify the size
19:59:33Araqwell given the recent security loopholes I don't want to make it non-const
19:59:48dom96_that won't add any vulnerabilities
19:59:54Araqbut you can change the consts to something more reasonable
19:59:56dom96_bbl
20:00:21flaviuAll that stuff is too much work
20:00:23flaviu<script src="//cdn.jsdelivr.net/emojione/1.3.0/lib/js/emojione.min.js"></script>
20:00:47Araqyeah let's add *more* scripts
20:00:57Araqthat surely helps security
20:01:36flaviuAraq: That's not the way security works.
20:02:24Araqdo not lecture me, boy
20:02:38flaviuAll that needs to be done is add CSRF tokens and fix script injection.
20:02:40flaviu?
20:04:04*Mat3|coding joined #nimrod
20:04:11Mat3|codinghi all
20:06:18flaviuAraq: I hope that was sarcasm, because that'd be awfully rude otherwise.
20:07:13AraqI cannot see how it's overly rude, I intended it to be a bit rude
20:08:21flaviu-_-
20:09:46fowlcalling someone boy in america might get you punched in the face just saying
20:10:08Araqoh hrm
20:10:15AraqI wasn't aware of that
20:10:16*gokr_ joined #nimrod
20:13:37*gokr quit (Ping timeout: 272 seconds)
20:18:53*sdw_ joined #nimrod
20:21:32*sdw quit (Ping timeout: 250 seconds)
20:31:09*Demos quit (Read error: Connection reset by peer)
20:41:34*bouliii_hopla quit (Ping timeout: 246 seconds)
20:41:44flaviure. markdown, perhaps http://www.pell.portland.or.us/~orc/Code/discount/ would work?
20:42:00flaviuhastyscribe uses it and it seems to work quite well.
20:44:59Mat3|codingfowl: can such a reaction generally called as established in American society ?
20:47:05Triplefox"Boy" is used as a slur against blacks
20:48:23flaviuYep, the only time when it's somewhat tolerated is when it's someone old and from the south.
20:53:54Mat3|codinghmm, I see but do not understand the essential for violence as the appropriate response
20:56:31*q66[lap] quit (Read error: Connection reset by peer)
20:56:47flaviuWell, not everyone would punch you, most would exercise moderation. But if someone random came up to you with that sort of tone, no one would fault you for punching them.
20:58:35*q66[lap] joined #nimrod
21:02:56onionhammerflaviu https://github.com/onionhammer/onion-nimrod/tree/master/markdown
21:04:18Araqso how do you call a male child?
21:04:48Araqwhat do we do about: https://github.com/Araq/Nimrod/issues/546 ?
21:05:18Araqthis import path thing is a mess
21:06:01TriplefoxUsually "kid", but boy is OK affectionately
21:07:13*Trustable quit (Quit: Leaving)
21:08:27TriplefoxThere are tons of exceptions with that word, it's mostly the "disrespectful term of address" that is viewed negatively
21:21:02Mat3|codingAraq: probably module reimports should not be possible at all
21:21:41AraqMat3|coding: they are not and that's not the problem.
21:23:17Araqthe only problem is that the current directory is prefered over the stdlib and for good reasons
21:23:26Araqwell
21:23:37Araqyou can override a stdlib module this way
21:23:53Araqwhich I consider a feature, but nobody really agrees with me
21:24:30Araqbut what's the alternative? when I import foo and then later the stdlib too gets a 'foo' module, what should be used?
21:25:24Araqbut hrm only modules in the cwd should see modules in the cwd I guess
21:31:36*superfunc joined #nimrod
21:32:13Mat3|codingas you had written for standalone applications I see the usefulness of this behaviour
21:33:53fowlinteresting
21:34:19Mat3|codingis someone here writing a kernel ?
21:34:28Mat3|codingI mean at current
21:40:29*Hakaslak joined #nimrod
21:49:40AraqMat3|coding: I don't think so
21:56:07Mat3|codingthat is one scenario where I can think overriding a standard library can be useful. Because I can not estimate whether someone choosing Nim for OS development in future and the current behaviour allows overriding in an easy way I vote for call this a feature (and documentary it well)
21:56:51Mat3|codingwell, I know that is a minority position for sure
21:57:38Araqwell yeah that's what --os:standalone is about really
22:00:05Mat3|codingfine, one fewer issue. What's the next on the agenda ?
22:00:15Mat3|coding;)
22:01:29flaviuIf you want as specialized a use as a kernel, can't you just fork Nim?
22:03:11*superfunc quit (Ping timeout: 272 seconds)
22:03:34*bouliiii joined #nimrod
22:04:24Mat3|codinghmm, no, probably someone other would find that a good idea however
22:05:53bouliiiiAbout stdlib, how much is it dependent on libc, in particular, malloc/free? Same for codegen to C. video games developer would strongly like kind of orthogonality here (with ease to replace allocators at least and all low level threading primitives).
22:08:34Araqhi bouliiii I can't review your stuff tonight, sorry
22:08:46bouliiiiAraq: no problem no hurry :-)
22:09:34bouliiiiAraq: I will check windows tomorrow anyway. And add some noSideEffect/sideEffect here and there (at least for the principle of it :-))
22:09:53Araqwell we don't use malloc but have our own mechanisms to override the memory manager, currently it only works via compile-time and you need to modifiy the source a bit. the latter can be fixed easily though
22:11:11Araqsame for threading primitives
22:13:30bouliiiiAraq: great!
22:21:18*Etheco joined #nimrod
22:22:08*Etheco quit (Max SendQ exceeded)
22:22:53*Etheco joined #nimrod
22:25:29*irrequietus quit ()
22:38:04*brson joined #nimrod
22:56:36*Mat3|coding left #nimrod (#nimrod)
22:59:15*enurlyx joined #nimrod
23:00:45enurlyxBitmapHeader = object {.pure, packed.}
23:00:46enurlyx typ: int16
23:00:46enurlyx size: int32
23:00:46enurlyx reserved: int32
23:00:46enurlyx offbits: int32
23:01:59enurlyxHello, i try to write a bitmapheader to a file. But between type and size two bytes get padded. Do I miss something in the definition? I thougt with packed there would be no padding?
23:03:28Araqpacked is passed to the C compiler and I dunno if it works
23:03:41Araqhowever, try this first please:
23:03:54AraqBitmapHeader {.packed.} = object ...
23:06:51enurlyxNo, that makes no difference
23:07:10Araqlook at the produced C code then please
23:07:31*q66[lap] quit (Read error: Connection reset by peer)
23:08:13*q66[lap] joined #nimrod
23:08:26enurlyxstruct __attribute__((__packed__)) bitmapheader90006 {
23:08:26enurlyxNI16 Typ;
23:08:26enurlyxNI32 Size;
23:08:26enurlyxNI32 Reserved;
23:08:26enurlyxNI32 Offbits;
23:08:27enurlyx};
23:09:49bouliiiiI am starting to look at disasm from nim. There is something a bit nasty when relying on C compiler. Anything with sideeffect cannot go away: https://gist.github.com/bsegovia/8f6aed4b57e5bf2e61bf
23:10:26enurlyxAraq: Does this mean the c compiler is not doing the packing?
23:11:07bouliiiiso basically, the final asm shows that the adder function is directly called (i.e. by cst propagation C compiler directly jumps to it) but the variable is still on the heap since it cannot be optimized. Is there middle opt planned for nim?
23:11:26bouliiiimiddle opt -> middle end opt
23:13:02Araqbouliiii: yes and it will remove exactly that among other things, but don't hold your breath. you can also very often templates instead of trivial closures
23:13:17Araq*can use
23:14:06Araqenurlyx: quite likely, but it's a stupid idea to begin with, what about endian differences?
23:18:14*ARCADIVS quit (Quit: ARCADIVS)
23:19:14enurlyxMh ok. BMP is little endian
23:21:49enurlyxOn the other hand i just wanted to write some bmp as output for some rasterization tests
23:21:58enurlyxNoting important
23:22:21Araqso write 4 explicit write calls :P
23:22:30Araqhow hard can it be?
23:28:12enurlyxcool, i discovered the endians module :D
23:28:58enurlyxgood night
23:29:00*enurlyx quit (Quit: Leaving.)
23:32:39*AFKMorpork is now known as AMorpork
23:34:28*bouliiii quit (Ping timeout: 246 seconds)
23:37:02*BitPuffin quit (Ping timeout: 244 seconds)
23:39:22*BlaXpirit quit (Quit: Quit Konversation)
23:47:54*Etheco quit (Quit: Leaving)
23:48:05*tinAndi joined #nimrod
23:48:10*BitPuffin joined #nimrod