<< 24-10-2013 >>

00:01:51fowlDirkson, its an sdl color
00:01:54fowlTColor
00:02:12fowlthats nothing to do with the quadtree tho
00:02:40DirksonAye. I was just trying to get your code to compile and work first, though : ) And my nimrod wasn't a fan of the toSdlColor stuff
00:03:14fowloh ok
00:03:50Dirkson Error: undeclared identifier: 'toSDLcolor'
00:05:57fowlline 108
00:06:04fowlshould be import_all_sdl2_things
00:06:59DirksonAlrighty
00:10:39VarawayDirkson, what OS are you using?
00:10:44*Varaway is now known as Varriount
00:10:48DirksonVarriount: Debian
00:10:58DirksonVarriount: Why do you ask?
00:11:09VarriountAh, not my area of expertise then.
00:11:24DirksonI'm confused
00:11:37VarriountWell, since most of you hard-core developers use Linux, someone has to help those who use windows
00:11:58VarriountI (and Araq) am that person
00:15:48xenagiwhy Windows
00:16:02xenagi*nix is where it's at :)
00:16:10VarriountBecause most new programmers start off using it.
00:16:27xenagiic
00:16:29*xenagi quit (Quit: Leaving)
00:16:33VarriountO_o
00:22:46BitPuffinbut then again
00:23:09BitPuffinmost people starting off using nimrod is in general not new programmers
00:23:16BitPuffinso by now they should have moved off windows :P
00:25:41VarriountBitPuffin, and if we ever want to use nimrod in an enterprise or business environment?
00:25:52*xenagi joined #nimrod
00:26:15*Varriount points to the percentage of linux users, vs windows users
00:29:01BitPuffinVarriount: RHEL?
00:30:19VarriountI'm talking small businesses
00:30:37VarriountOr government
00:30:54*Varriount has yet to see a school system which uses Linux desktops for students.
00:30:57BitPuffinDebian?
00:33:54fowlchina
00:46:18*DAddYE quit (Remote host closed the connection)
01:23:13*fowl quit (Quit: Leaving)
01:32:30*zahary quit (Read error: Connection reset by peer)
01:32:59*zahary joined #nimrod
01:39:21*DAddYE joined #nimrod
01:39:28*DAddYE quit (Remote host closed the connection)
01:39:34*DAddYE joined #nimrod
01:51:17*XAMPP quit (Read error: Connection reset by peer)
01:52:51*XAMPP joined #nimrod
02:28:54*BitPuffin quit (Ping timeout: 252 seconds)
02:54:55*BitPuffin joined #nimrod
03:06:13*jamil_1 quit (Ping timeout: 246 seconds)
03:58:36*xenagi quit (Quit: Leaving)
04:06:26*BitPuffin quit (Quit: WeeChat 0.4.2)
04:08:28*OrionPK quit (Read error: Connection reset by peer)
04:29:34*dyu_ joined #nimrod
04:59:25*DAddYE quit (Remote host closed the connection)
05:02:05*DAddYE_ joined #nimrod
05:02:35*dyu_ build.nimrod-code.org is down
05:03:55*DAddYE_ quit (Remote host closed the connection)
05:07:20*DAddYE joined #nimrod
05:11:25*DAddYE quit (Ping timeout: 248 seconds)
06:08:45*DAddYE joined #nimrod
06:13:15*DAddYE quit (Ping timeout: 245 seconds)
06:15:20*DAddYE joined #nimrod
06:20:05*DAddYE quit (Ping timeout: 260 seconds)
06:20:05*q66 joined #nimrod
06:45:45*brson quit (Quit: leaving)
08:27:46*wlhlm joined #nimrod
09:14:22*Araq_ joined #nimrod
09:43:27*faassen joined #nimrod
10:41:07*dyu_ quit (Quit: Leaving)
10:58:22*jamil_1 joined #nimrod
11:06:03jamil_1hi all
11:06:23jamil_1I am playing with generics
11:06:33jamil_1http://paste.ubuntu.com/6294294/
11:07:28jamil_1basically, a generic method with concrete type string compiles, but fails to compile when supplied an int
11:17:43*guaqua` joined #nimrod
11:19:08*guaqua quit (Ping timeout: 240 seconds)
12:03:08wlhlmwow, the nimrod repository is quite huge - 250MB @75% - is this because of large binary files?
12:46:03Varriountwlhm, if you're going by git, it's because of all the commits
12:46:43VarriountIt took about 30 minutes for my laptop to download the entire repository, and most of that was getting the commit history.
12:51:28*io2 joined #nimrod
12:53:28jamil_1http://paste.ubuntu.com/6294294/
12:54:24jamil_1a generic method fails with value of one type(string) but fails with value of another type(int)
12:54:49wlhlmVarriount: the number of commits is not the main reason - you can have thousands of one-line-commits and they wouldn't be 300MB in size, also all git objects are compressed, so the repo size is even more astounding.
12:55:04jamil_1oops, succeeds with string
12:58:09*Ricky_Ricardo joined #nimrod
13:01:39wlhlmVarriount: for comparison, mpv (fork of mplayer) has a long history with more than 36,000 commits and is "only" 50MB.
13:08:49Araq_yeah it's due to the .zip files in it, we know
13:10:04Araq_jamil_1: 'nil' is not a valid value for 'int' and the error message is perfectly clear imo
13:11:04jamil_1becuase string is nil(lable) while int is not ?
13:11:04Araq_yes
13:11:14Araq_you can use 'if not value.isNil'
13:11:14Araq_proc isNil(x: int): bool = false
13:11:44Araq_isNil is built-in but you can overload it for 'int' and then use that
13:12:04Araq_seems to be a good solution, in fact
13:14:09jamil_1Error: ambiguous identifier: 'FALSE' -- use a qualifier
13:16:29jamil_1sorry if the problem is evident from the error message. but I am pretty new to the language (2nd day)
13:18:09Araq_use system.false then but where did you redefine false? o.O
13:20:09jamil_1sorry my bad
13:20:29jamil_1it was defined by binding of glfw
13:21:09jamil_1Araq_: is there string interpolation facility somewhere ?
13:22:49jamil_1here is the Maybe type implemented: http://paste.ubuntu.com/6294858/
13:23:09jamil_1any critique is welcome
13:27:59Araq_jamil_1: strutils.`%` and there is also "subexes" which nobody uses
13:32:29Araq_and the glfw binding should not introduce yet another 'false' imo
13:32:49Araq_somebody should submit a bug report for that
13:36:04jamil_1glfw bindings are out of date. I wrote a translator from bindings for rust to nimrod
13:36:29jamil_1rust's bindings were defining false
13:36:49jamil_1hence the issue
13:38:59*OrionPK joined #nimrod
13:42:59*BitPuffin joined #nimrod
13:46:24*io2 quit ()
13:52:24Araq_meh, we have c2nim for binding creation
13:52:44Araq_no need to translate rust; in general every interim step adds bugs
13:53:04Araq_that's my experience with translating pascal wrappers anyway
13:57:09*gdos quit (Ping timeout: 245 seconds)
13:58:39Araq_I need to go see you later
13:58:39*Araq_ quit (Quit: ChatZilla 0.9.90.1 [Firefox 24.0/20130910160258])
14:08:19*Ricky_Ricardo quit (Quit: Ricky_Ricardo)
14:08:39*wlhlm quit (Ping timeout: 252 seconds)
14:44:04*OrionPK quit (Quit: Page closed)
15:09:10jamil_1so whats the equivalent of void pointer?
15:13:20*wlhlm joined #nimrod
15:19:10*Endy joined #nimrod
15:26:58*fowl joined #nimrod
15:29:24*MFlamer joined #nimrod
15:30:36dom96jamil_1: 'pointer'
15:38:51wlhlmdom96: hi, can you rename the wikipedia page from sandbox to nimrod? the page ist still visible in the "systems programming language" catagory: https://en.wikipedia.org/wiki/Category:Systems_programming_languages
15:39:39wlhlm*category
15:40:03fowl^
15:40:46dom96I commented out the categories.
15:41:17dom96If I rename it to 'Nimrod' it would probably get deleted again.
15:41:35fowlnot from dom69/Nimrod
15:41:38dom96So until we get more "reliable" references I will keep it in my sandbox.
15:41:56dom96oh I see what you mean.
15:42:22VarriountHow could we get more reliable sources?
15:42:22dom96I think a bot would then just remove the categories anyway.
15:42:38wlhlmdom96: ok, I thought so that the page than would be more visible, but that might be aigainst wikipedias rules, so…
15:42:48wlhlm*against
15:43:43wlhlmVarriount: write a book about nimrod :P
15:43:59*q66 quit (Ping timeout: 246 seconds)
15:44:05VarriountOnly if I can somehow get it to count as credits for my major.
15:44:15VarriountOr get paid for it in advance.
15:44:39*MFlamer quit (Remote host closed the connection)
15:44:51dom96write blog posts, raise awareness, make Nimrod more popular.
15:45:18*Varriount doesn't have a blog
15:45:25dom96make one then
15:46:00wlhlmyeah, you can use github pages!
15:46:03fowlVarriount, is your major journalism/
15:46:13VarriountNope. Computer Science
15:46:55fowlthen you can probably get a good paper to count towards it
15:47:17fowljust gotta hustle your professors
15:48:01Varriount?
15:49:31dom96or make some sacrifices for the sake of Nimrod :P
15:50:34fowllol nvm
15:51:06VarriountEasy for you to say, you aren't paying 300+ per credit hour per class.
15:51:34fowlare you paying that?
15:51:44*Varriount nods
15:52:05fowlwhy dont you get student loans
15:52:21VarriountYou have any idea the rates they charge on those?
15:52:39VarriountI'd rather not be paying off debt for 40 years
15:52:58fowlwho cares lol this economy cannot last
15:53:05fowlthe word is: unsustainable
15:53:24fowlVarriount, what do you look for when picking a college? (I want to go)
15:53:47VarriountFlexible classes and good transfer programs
15:54:19fowlwhats that mean, flexible class
15:54:29fowlprivate final class Foo {}; ?
15:54:37Varriount-_-
15:54:44fowlbeing serious tho
15:54:48fowlwhats a flexible class
15:55:10VarriountOne that has a wide choice of hours/schedules.
15:55:23Varriountdiscard retrieveFowl()
15:55:36fowlok
15:55:43dom96Varriount: How much do you pay for uni?
15:55:56VarriountCan't say off the top of my head.
15:56:14*dom96 has no other choice but to take a loan
15:56:29*Varriount has parents who save college funds.
15:56:33dom96I have a feeling that UK unis are cheaper than the US ones though.
15:56:56*q66 joined #nimrod
15:57:10VarriountProbably. I've had friends in Ireland and London whove gone to Uni
16:05:32*krusipo Feals bad for living in a country with state-funded unis and government student loans
16:06:22VarriountMeh, I have a better life than many, and am thankful for it, debt and all.
16:06:43dom96krusipo: what country is that?
16:06:59krusipodom96: Sweden
16:09:38fowlkrusipo, I heard that the police there can just cap you for any small infraction
16:10:26*gdos joined #nimrod
16:11:36*shodan45 quit (Quit: Konversation terminated!)
16:12:00*shodan45 joined #nimrod
16:14:55krusipofowl: Nah, but theres lots of fun giggles about sweden when reading internet sources.
16:16:24*io2 joined #nimrod
16:20:47Varriountkrusipo, be honest - what do people living in Sweden (Swedes?) think of Americans/America?
16:24:27*MFlamer joined #nimrod
16:26:58krusipoVarriount, The general honest hive mind (ofcourse not applying to all individuals) of swedes often view the american society and its people as lacking in sanity and careless in its obligations to the rest of the world.
16:27:37VarriountHm...
16:27:47VarriountYep, you're pretty much spot on.
16:28:06VarriountI blam it on our puritanical roots.
16:28:10Varriount*blame
16:29:21Varriountkrusipo, unfortunately/fortunately, not enough history is taught in schools for the general American populace to form an opinion on Sweden
16:29:22*Hannibal_Smith joined #nimrod
16:31:31fowli didnt even know i had obligations to the rest of the world
16:31:41fowlits like, im here, and you're there, and thats ok
16:32:02*fowl careless
16:32:04krusipoVarriount, Understandable we dont expect it either :)
16:44:01*Associat0r quit (Quit: Associat0r)
16:46:52*OrionPK joined #nimrod
16:55:37*Endy quit (Quit: HydraIRC -> http://www.hydrairc.com <-)
17:00:44*brson joined #nimrod
17:06:35*dyu joined #nimrod
17:06:45*Boscop quit (Read error: Connection reset by peer)
17:07:07*Boscop joined #nimrod
17:07:23*DAddYE joined #nimrod
17:07:28*DAddYE quit (Remote host closed the connection)
17:07:42*DAddYE joined #nimrod
17:07:43*DAddYE quit (Remote host closed the connection)
17:08:19*DAddYE joined #nimrod
17:41:01MFlamerIt will be awsome to have pattern matching, I've been trying to create a template or macro to do this my self actually
17:42:44*dyu quit (Quit: Leaving)
17:49:53dom96MFlamer: Did you ever get 'babel install' to work?
17:50:16MFlamernot yet, but I havent tried very hard either
17:50:30MFlamerIt builds, but wont install
17:53:06*capisce quit (Changing host)
17:53:06*capisce joined #nimrod
17:53:33MFlamerwhy do I need to build and then install? It seems like install is also building it
17:54:14dom96You don't need to. It's optional.
17:56:16*gdos quit (Ping timeout: 246 seconds)
17:57:03dom96however, I think I see the problem.
18:00:49NimBotnimrod-code/babel master 181c840 Dominik Picheta [+0 ±1 -0]: Fixed the format of the compiler command being executed.
18:00:53dom96MFlamer: Try it now please.
18:03:49NimBotAraq/Nimrod master e4e7530 Dominik Picheta [+0 ±1 -0]: Fixed asyncio crash when sending buffered data after connection was terminated.
18:11:38reactormonkdom96, https://github.com/Araq/Nimrod/commit/e4e7530078381eebb7aaa331a25f0f6a4475b9b7#diff-786a469224c53df2a2a155629f422893R246 conditions \o/
18:12:40dom96?
18:15:13reactormonkdom96, sounds like you want conditions.
18:15:17reactormonkfor error handling.
18:15:39MFlamernow it wont build either
18:15:46OrionPKwhats "ESSL"? dont think it's defined
18:16:04fowllol
18:16:21OrionPKpure\asyncio.nim(244, 18) Error: undeclared identifier: 'ESSL'
18:16:27dom96ugh
18:16:31dom96you're right
18:17:08MFlamerbut, I dont think it matters because I have the exe from last time and it works
18:17:31MFlamerI'll just add to my path and be done with it?
18:17:50MFlamerI just ran babel update and it did its thing
18:19:25NimBotAraq/Nimrod master 5daa5b7 Dominik Picheta [+0 ±1 -0]: Fixed breaking changes introduced by the last commit.
18:19:52dom96MFlamer: It won't build now? what. Why not?
18:22:09MFlamernevermind, builds fine. Still fails on the install though
18:22:44MFlamerwhat does install do?
18:22:54dom96it compiles babel in release mode
18:29:59*MFlamer quit (Remote host closed the connection)
18:39:17*MFlamer joined #nimrod
18:42:27MFlamerso if I just build babel in release mode and add the exe to my path, I should be good to go?
18:46:16fowldont add exe to path
18:46:23fowl./babel install babel
18:46:28fowladd ~/.babel/bin to path
18:51:27Zor_Araq: poke
18:52:24VarriountZor_, didn't you read the sign?
18:52:41VarriountDon't poke the developers. They bite.
18:52:52Varriount:p
18:53:02dom96fowl: His problem is that he can't install it.
18:53:09*fowl quit (Read error: Connection reset by peer)
18:53:42MFlamergot it
18:54:11dom96MFlamer: If you can't install babel then I doubt installing other binary packages will work
18:54:17dom96which is a bit of a problem
18:54:45MFlamerbabel install babel workes
18:55:28MFlamerthe repo says "babel install" which failes for me
18:55:53zangetwhy does babel get installed to ~/.babel/bin instead of ~/bin?
18:56:37MFlameras long as git is in my path, "babel install babel" downloaded, build and installed
18:57:07dom96MFlamer: please try to figure out why 'babel install' doesn't work, it sounds like a bug :\
18:57:22dom96zanget: because that's where all babel packages reside
18:57:40*zahary1 joined #nimrod
18:57:47*zahary quit (Read error: Connection reset by peer)
18:57:57zangetoh ok
18:58:00MFlamerwhats the difference between "babel install babel" and "babel install"
18:58:09*zanget still needs to install it
19:02:20dom96MFlamer: the former downloads it from the git repo and then installs it, the latter installs whatever is in the current directory
19:02:36MFlamerah
19:09:21*fowl joined #nimrod
19:09:41Zor_anyone know where the nimrod compiler determines the points to insert ref inc/dec instructions?
19:10:30VarriountYou could look in the nimcache
19:59:05AraqZor_: the algorithm is called "deferred reference counting", so refs on the stack are not counted. It's mostly statically determined whether it's a stack location or not.
20:01:07Araqreactormonk, MFlamer: IMO a lockfree hash table should be part of the stdlib, not some Babel module
20:06:31MFlamerok, I will not move it then
20:06:55MFlamerIt should go with the other tables
20:07:36Araqyeah
20:43:46*Hannibal_Smith quit (Quit: Sto andando via)
20:50:31*faassen quit (Quit: Leaving.)
21:00:37dom96Araq: Could you check if 'babel install' fails for you too?
21:01:32Araqit worked the last time I tried; what's changed since then?
21:01:49dom96Nothing AFAIK
21:06:19*q66 quit (Ping timeout: 246 seconds)
21:08:36dom96Araq: Try it again please.
21:09:52Araqwill do tomorrow
21:12:31*jamil_1|2 joined #nimrod
21:14:22*jamil_1 quit (Ping timeout: 246 seconds)
21:16:45reactormonkAraq, ok.
21:19:02*q66 joined #nimrod
21:37:41*OrionPK quit (Quit: Page closed)
21:42:43*Associat0r joined #nimrod
21:46:15*XAMPP quit (Ping timeout: 272 seconds)
22:08:45*MFlamer quit (Read error: Connection reset by peer)
22:10:13*MFlamer joined #nimrod
22:12:52*Dirkson quit (Ping timeout: 272 seconds)
22:16:14*Dirkson joined #nimrod
22:19:46*io2 quit ()
22:28:58*fowl quit (Quit: Leaving)
22:30:05MFlamershould the following ever work in nimrod proc foo[T,S](x: T[S]) = ........ ?
22:31:16MFlamerabstracting over a generic. I think this is what thay call "higher kinded types"
22:36:39*OrionPK joined #nimrod
22:36:48*fowl joined #nimrod
22:45:09MFlameractually, a higher kinded type is just a type that takes a type. I guess this would be abstraction over higher kinded types
22:46:25*zanget quit (Remote host closed the connection)
22:46:44*zanget joined #nimrod
22:49:50MFlamernot even sure if that is actually useful right now. Seems like I've wanted to do this in the past and couldnt get it to work...
22:55:34fowlMFlamer, try it
22:56:29fowldoesnt work for me
22:57:30MFlamerError: internal error: (filename: semtypes.nim, line: 832)
22:58:26MFlamerproc foo[T,S,U](x: T[S], f: proc(y: S): U): T[U] = f(x)
23:04:54MFlamerI gotta take the time to learn more about the compiler.
23:09:20MFlamerok, this is useful. Now I remember why. It's described in this paper. http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.112.6348&rep=rep1&type=pdf
23:10:42MFlamerapply a function to the types in a container and gaurantee the same type of container (or functor) will be returned
23:15:36*wlhlm quit (Ping timeout: 245 seconds)
23:21:49fowlok
23:21:57fowlcya
23:21:59*fowl quit (Quit: Leaving)
23:37:44*q66 quit (Quit: Leaving)