00:02:08 | * | yglukhov joined #nim |
00:06:33 | * | yglukhov quit (Ping timeout: 260 seconds) |
00:13:01 | * | bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
00:25:53 | * | space-wizard joined #nim |
00:36:29 | * | Snircle joined #nim |
00:57:08 | * | kulelu88 quit (Quit: Leaving) |
01:36:18 | * | dmi1 joined #nim |
01:37:59 | * | dmi1 is now known as dmi0 |
02:03:04 | * | space-wizard quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
02:10:52 | * | gokr quit (Ping timeout: 258 seconds) |
02:12:36 | * | vlad1777d quit (Quit: Leaving) |
02:44:16 | FromGitter | <vegansk> @andreaferretti, we had to fork jester with our implementation of async streams (https://github.com/vegansk/nimboost/blob/master/src/boost/http/jester.nim , https://github.com/vegansk/nimboost/blob/master/src/boost/io/asyncstreams.nim ). Maybe it's not so nice solution, but it mimics the current implementation of standard streams and it works on real projects with the big data posts :-) |
02:46:34 | FromGitter | <vegansk> Here is the simple example of async multipart handling from tests: https://github.com/vegansk/nimboost/blob/master/tests/boost/http/impl/run_test_server.nim#L111 |
02:56:56 | * | chemist69 quit (Ping timeout: 240 seconds) |
03:10:52 | * | space-wizard joined #nim |
03:11:08 | * | chemist69 joined #nim |
03:44:02 | * | eizua joined #nim |
03:49:00 | * | space-wizard quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
03:49:29 | * | space-wizard joined #nim |
03:53:52 | * | space-wizard quit (Ping timeout: 250 seconds) |
05:01:27 | * | PMunch joined #nim |
05:03:01 | PMunch | dom96, you there? |
05:31:07 | * | space-wizard joined #nim |
05:32:51 | * | PMunch quit (Quit: Bye) |
06:04:05 | * | yglukhov joined #nim |
06:08:28 | * | yglukhov quit (Ping timeout: 265 seconds) |
06:19:34 | * | bjz joined #nim |
06:39:51 | * | nsf joined #nim |
07:17:38 | * | byte512 joined #nim |
07:18:04 | * | bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
07:44:47 | * | yglukhov joined #nim |
08:01:58 | * | rokups joined #nim |
08:03:36 | * | brson quit (Quit: leaving) |
08:41:21 | * | Andris_zbx joined #nim |
08:58:26 | * | albertocg joined #nim |
08:58:34 | * | albertocg left #nim ("WeeChat 1.6") |
08:58:36 | * | albertocg joined #nim |
08:58:40 | * | albertocg left #nim ("WeeChat 1.6") |
09:00:40 | * | space-wizard quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
09:27:36 | * | kunev quit (Ping timeout: 265 seconds) |
09:29:39 | * | kunev joined #nim |
09:42:28 | dom96 | PMunch: now I am |
09:46:37 | zevlg | is it possible somhow to write nim program that prints all the imports occured in order to compile this program? I need to write some implicit dependences scanner |
09:47:34 | flyx | zevlg: transitively? |
09:48:56 | zevlg | what do you mean? just all import tree down to basic (with no imports) ones .. |
09:49:23 | flyx | yeah, that's transitive |
09:50:26 | zevlg | or should I simple parse the files extracting imports ? |
09:50:29 | Araq | zevlg: nim gendepend foo.nim |
09:51:15 | Araq | produces a "dot" file containing the dependency graph |
09:52:21 | zevlg | Araq: hm, sounds great, I'll check it out |
09:52:28 | Araq | don't parse this on your own, it's a "Nim complete" problem. |
09:53:05 | Araq | you need a full Nim implementation to do this reliably, imports can be in 'when' that depend on compiletime evaluations |
09:53:26 | * | dmi0 quit (Ping timeout: 264 seconds) |
09:53:46 | euantor | dom96 Looking at that Nimble issue. Looking at creating a Fork with the API - this comment makes it sound interesting... `Forking a Repository happens asynchronously. Therefore, you may have to wait a short period before accessing the git objects. If this takes longer than 5 minutes, be sure to contact Support.` |
09:57:35 | dom96 | euantor: why is that? |
09:57:46 | euantor | https://developer.github.com/v3/repos/forks/#create-a-fork |
09:58:07 | euantor | The current code waits 10 seconds, but it could take longer |
09:58:51 | dom96 | euantor: yep. It was a "good enough" solution. |
09:59:00 | euantor | Fair enough :) |
09:59:14 | dom96 | But you can certainly make it better by checking whether the fork was created ever n seconds |
09:59:17 | dom96 | *every |
09:59:39 | dom96 | Looks like Racket has a new website: http://racket-lang.org/ |
09:59:46 | Araq | thanks for looking into this issue btw, it makes me crazy |
10:00:40 | Araq | dom96: yeah, the old site was horrible. took me some time to figure out it's a Lisp |
10:02:20 | dom96 | btw anybody on Windows that could test Nimble's new output formatting? |
10:04:26 | Araq | dom96: later |
10:05:08 | zevlg | Araq: hm, got some weird error from gendepend - https://gist.github.com/830d9fb2c61b2d1949a27a09c5a75a97 |
10:05:52 | Araq | zevlg: does 'nim check' produce the same internal error? |
10:06:22 | Araq | does it compile at all? |
10:06:49 | zevlg | nope, check is ok - https://gist.github.com/3ac5bcb605c1dcfaa9e16216dd037fb0 |
10:07:42 | zevlg | Araq: yeah, sure it compiles |
10:08:18 | zevlg | I could try to narrow code a little, if this sounds like a problem |
10:08:31 | Araq | zevlg: nah, fix the compiler instead please |
10:08:35 | Araq | edit compiler/main.nim |
10:08:41 | Araq | remove line 37 |
10:09:01 | Araq | the "cleanupPass" is not used by the other commands and could cause trouble |
10:10:00 | zevlg | aha, will try, thanks |
10:11:06 | Araq | you can also patch the compiler to produce JSon instead/in addtion to the .dot file |
10:14:27 | * | adeohluwa joined #nim |
10:16:53 | euantor | Just realised the forked repository will also need to be updated from the upstream repository somehow... Unless I can create a branch on the fork based on the upstream's master ref which I'm going to try now |
10:22:31 | dom96 | yeah, this thing turns out rather complex unfortunately. |
10:22:33 | * | yglukhov quit (Remote host closed the connection) |
10:22:46 | dom96 | we need a nimble package website desperately |
10:29:46 | Araq | we already have one |
10:29:53 | * | adeohluwa quit (Remote host closed the connection) |
10:30:44 | dom96 | where? |
10:31:24 | euantor | Yeah, I just tried creating a branch on my fork using the master ref from the main repo and it looks like the response was successful |
10:31:33 | euantor | https://www.irccloud.com/pastebin/4UCrT4Qr/ |
10:31:47 | * | vlad1777d joined #nim |
10:31:48 | euantor | But there's no new branch or any sign of a new commit or anything: https://github.com/euantorano/packages/tree/master |
10:32:24 | euantor | Nevermind, got it sorted, it is possible! |
10:32:59 | dom96 | huh, IIRC the current publish code does this already |
10:34:28 | euantor | yes, but it does it on the checkout |
10:34:43 | euantor | I'm doing this through the GitHub API without chekcing out the packages repository at all |
10:34:53 | euantor | Just create a fork, add a new branch, modify the file, create a PR |
10:35:09 | euantor | The fork is already created in the existing code |
10:36:07 | dom96 | ahh awesome |
10:44:14 | Araq | dom96: https://github.com/nim-lang/nimble/issues/219 |
10:44:18 | Araq | points to: |
10:44:29 | Araq | https://nimble.directory/ |
10:44:54 | dom96 | yes, that's federico3's site. Not ready for general use yet though. |
10:45:07 | Araq | get rid of the "work in progress" and link to it from the main Nim site |
10:46:11 | dom96 | This is what I would like to see as a first version: http://crystalshards.xyz/ |
10:48:12 | * | Matthias247 joined #nim |
10:50:01 | Araq | I don't care what you like to see as a first version. the site exists and has a working "search" feature. |
10:50:32 | Araq | the unimplemented 404 links need to be removed and then it's already better what we have now. |
10:50:39 | Araq | which is nothing. |
10:54:29 | Araq | sorry for being rude, I'm hunting yet another annoying regression |
10:55:28 | dom96 | Yes, well, in that case http://nimble-explorer.com/ is better. |
10:55:34 | dom96 | (sorry federico3) |
10:55:51 | dom96 | The search on nimble.directory doesn't work correctly unfortunately. |
10:55:57 | * | yglukhov joined #nim |
10:56:39 | dom96 | But the point of a Nimble website isn't to search, it's to make publishing packages easier. |
10:56:51 | dom96 | I can search via Nimble easily |
10:57:32 | euantor | yeah,, that domain's mine too :) |
10:57:47 | dom96 | euantor: which one? |
10:57:48 | euantor | I've been meaning to update the css on it for a while |
10:57:56 | euantor | nimble.directory |
10:58:11 | dom96 | ahh |
10:58:11 | euantor | it's pointing to frederico3's site |
11:01:50 | Araq | dom96: well to return the argument. I can do that via 'nimble publish' easily (once it's been fixed) |
11:03:54 | dom96 | Araq: fair enough |
11:04:29 | dom96 | The actual point of the site is to have fully curated package repository. |
11:04:33 | dom96 | *to have a |
11:04:38 | Araq | a nicer presentation of seach results than what can be achieved in 4bit colors with fixed width font (terminal) is a worthwile goal |
11:05:41 | dom96 | Sure. What is also interesting is which packages are most popular. |
11:06:15 | euantor | WHat would be the easiest way to make a PUT request with httpclient with extra headers? |
11:06:32 | euantor | It looks like I have to create a new httpclient with the headers, then use request, right? |
11:08:18 | * | synshroud quit (Quit: ZNC 1.6.3 - http://znc.in) |
11:09:14 | dom96 | yes |
11:10:53 | * | synshroud joined #nim |
11:11:41 | * | bjz joined #nim |
11:14:22 | Araq | dom96: we could also have "package of the month" announcements |
11:32:20 | * | xet7 quit (Quit: Leaving) |
11:39:23 | euantor | Hm, GitHub isn't liking the base64 encoded content I'm sending. STrange |
11:44:32 | euantor | The `json` module appears to be creating invalid JSON when I try to enter a base64 encoded string. Here's the JSON it creates: |
11:45:33 | euantor | http://pastebin.com/88sSYav6 |
11:45:42 | euantor | It's created using: |
11:46:08 | euantor | https://www.irccloud.com/pastebin/piS4Pirl/ |
11:46:47 | euantor | GitHub is complaining about the `content` key containing invalid base64, JSON validators dislike the whole "content" key: https://jsonformatter.curiousconcept.com/ |
11:50:45 | euantor | Funnily enough, the `parseJson` proc in the JSON module also can't decode it |
11:51:34 | dom96 | interesting |
11:51:44 | dom96 | I guess there are still bugs hiding in the json module |
11:53:02 | euantor | It would seem so |
11:54:48 | euantor | Anyway, published what I have so far: https://github.com/euantorano/nimble/tree/feature-use-github-api-for-publish |
11:55:12 | euantor | If we can get that error fixed, it should work (hopefully). Do you want me to create a PR now? |
11:57:35 | Araq | what's wrong with the json? |
11:58:15 | Araq | it's rather long and has newlines in it becaues some tool inserted newlines |
12:00:17 | euantor | Araq: Not sure, but GitHub is complaining that the "content" is not valid Base 64 |
12:00:55 | Araq | when I shorten the JSON and remove the newlines, it's reported as valid |
12:01:14 | Araq | perhaps it's just too much data for github to accept |
12:01:45 | euantor | Possibly, but I hope not |
12:01:57 | euantor | If that's the case, we can't use the API to submit the changes |
12:02:04 | * | yglukhov quit (Remote host closed the connection) |
12:02:49 | * | dmi0 joined #nim |
12:03:06 | Araq | the problem is that you use CR-LF and the file originally uses LF only |
12:03:22 | Araq | so the diff is huge |
12:04:04 | Araq | json generation shouldn't use \n, but \L or be configurable |
12:04:13 | euantor | That's because I'm on a Windows machine |
12:04:25 | dmi0 | #gobolinux hi |
12:04:43 | euantor | I do the JSON modification in memory with the JSON module, so it's the JSON module that needs fixing ;) |
12:04:52 | euantor | Unfortunately, for work I have to use Windows |
12:05:42 | Araq | patch the stdlib please and see if it makes a difference |
12:05:51 | Araq | json.nim, line 955 |
12:05:57 | Araq | use \L instead of \n |
12:06:23 | Araq | I don't know if you actually transfer the 'diff' though ;-) |
12:06:28 | Araq | dmi0: hey |
12:06:34 | euantor | No, you just transfer the whole content |
12:06:39 | euantor | WHich is kind of crap really |
12:06:50 | euantor | I'm patching the stdlib now to test |
12:07:12 | Araq | you mean the full packages.json is base64 encoded and submitted to github? |
12:07:25 | euantor | yes |
12:07:32 | euantor | exactly |
12:07:32 | Araq | that cannot scale. |
12:07:41 | Araq | can we please use a database instead? |
12:07:44 | euantor | THeir API to modify a file requires you submit the whole content |
12:07:51 | Araq | that lies on our own servers |
12:07:57 | euantor | I would far prefer that personally |
12:08:13 | euantor | Especially as the Nim project grows |
12:08:24 | euantor | They will end up cutting us off for creating too much traffic |
12:10:35 | euantor | Yeah, changing the lines doesn't help, it must be too much data for them to handle |
12:11:22 | euantor | A proper database would make far more sense |
12:11:25 | Araq | even if you can get it to work for now, it fail later |
12:11:32 | Araq | *it will fail |
12:11:39 | euantor | If we agree that makes sense, I might be able to work on it over Christmas break |
12:11:53 | euantor | (using SQLite obviously since you've already expressed some preference ;)) |
12:12:29 | Araq | yeah, I use it for everything :-) |
12:13:20 | * | yglukhov joined #nim |
12:16:43 | dom96 | How does a SQLite database help us here? |
12:17:26 | dom96 | What we need instead is a web service that accepts package list changes. |
12:17:29 | euantor | The idea is to host the package list on a dedicated service backed by a database |
12:17:50 | euantor | I'm just saying the database backing said webservice would be an SQLite DB |
12:18:42 | dom96 | Sure, that's fine. |
12:19:31 | dom96 | As long as Nimble doesn't need to depend on SQLite |
12:19:39 | * | yglukhov quit (Remote host closed the connection) |
12:20:38 | euantor | no |
12:20:43 | euantor | just httpclient |
12:20:43 | * | bjz quit (Ping timeout: 252 seconds) |
12:22:29 | dom96 | euantor: In that case, could you fix what we already have? |
12:22:46 | dom96 | or finish your PR, just to tide us over until this web service is up and running |
12:22:48 | euantor | What's wrong with the existing code? |
12:23:07 | dom96 | No idea. It doesn't work for some reason, I didn't investigate far. |
12:23:10 | euantor | I can't finish the PR, unless GitHub has a different API to update the contents of a file |
12:23:17 | euantor | Ok, I'll have alook at the old code |
12:23:22 | dom96 | thanks |
12:27:14 | dom96 | I should get time over Christmas to finally set up two droplets for us |
12:27:16 | * | bjz joined #nim |
12:27:41 | dom96 | One for official things and another for anyone that wishes to help us with stuff like this web service :) |
12:28:07 | * | yglukhov joined #nim |
12:28:15 | euantor | Do you have a Nim team setup on DigitalOcean? |
12:28:32 | euantor | That's how I've set it up for the forum software I contribute to |
12:28:54 | dom96 | not yet, but I will be setting up lots of things for us. |
12:57:31 | * | dmi0 quit (Quit: BitchX-1.2.1 -- just do it.) |
13:16:40 | * | yglukhov_ joined #nim |
13:16:51 | * | bjz_ joined #nim |
13:17:12 | * | bjz quit (Ping timeout: 250 seconds) |
13:17:40 | * | yglukhov quit (Ping timeout: 265 seconds) |
13:20:26 | * | Matthias247 quit (Read error: Connection reset by peer) |
13:25:01 | * | yglukhov_ quit (Ping timeout: 260 seconds) |
13:28:18 | * | vlad1777d quit (Ping timeout: 250 seconds) |
13:30:42 | * | yglukhov joined #nim |
14:15:00 | federico3 | dom96, euantor: I was just going to spend some time on the pkg directory |
14:15:35 | federico3 | btw who's running nimble-explorer? |
14:15:57 | federico3 | dom96: how's the search broken? |
14:16:19 | dom96 | federico3: searching "nimbl" should return nimble |
14:16:23 | dom96 | it returns nothing |
14:16:44 | federico3 | it should? |
14:18:24 | dom96 | I think so |
14:18:39 | federico3 | why? |
14:18:50 | dom96 | say I want to search for sdl packages |
14:18:54 | dom96 | I search for "sdl" |
14:19:05 | dom96 | there are two packages, one named sdl2 the other coolsdl |
14:19:09 | dom96 | I want to see them both as results |
14:19:12 | * | Trustable joined #nim |
14:19:25 | federico3 | https://nimble.directory/search?query=sdl like this? |
14:20:32 | dom96 | yes, but it shouldn't rely on tags |
14:22:55 | federico3 | sounds like the default search could look for an exact match across tags and descriptions but "any" match across pkg names |
14:25:16 | federico3 | ...but only for tokens that are longer that 2 chars I guess? |
14:26:08 | dom96 | I don't think there is a need to make the rules too complex. |
14:26:15 | dom96 | As long as you limit the number of results returned. |
14:26:43 | dom96 | You could also add a rule where any quoted word is checked to match exactly |
14:28:40 | federico3 | or use a "LIKE" globbing syntax? e.g. sdl* |
14:29:36 | dom96 | I would prefer the default to return more results. |
14:30:10 | federico3 | ok |
14:30:39 | Araq | more important is proper priorization |
14:30:54 | dom96 | Nimble's search even uses non-exact matching for tags |
14:30:54 | Araq | you need a notion of "Match quality" and sort the results by that |
14:32:09 | * | bjz_ quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
14:32:52 | Araq | for i in 0..<db.len: |
14:32:53 | Araq | let c = contents[i] |
14:32:55 | Araq | if c.containsWord(key): |
14:32:56 | Araq | matches.add((db[i], -(30_000 - c.len))) |
14:32:58 | Araq | elif c.contains(key): |
14:32:59 | Araq | matches.add((db[i], c.len)) |
14:33:01 | Araq | matches.sort do (a, b: auto) -> int: |
14:33:02 | Araq | a[1] - b[1] |
14:33:12 | Araq | is what the search on our website does (look at dochack.nim line 260) |
14:34:16 | federico3 | it's already doing that |
14:34:34 | Araq | too many results is not an issue when the order is good, imo |
14:35:17 | federico3 | I'll update the search algo |
14:36:27 | dom96 | Araq: agreed |
14:39:59 | * | eizua quit (Quit: Leaving) |
14:48:28 | Araq | when I search for 'gtk' in synaptic I get 1615 results, ordered by alphabet, first match "0install" |
15:06:00 | * | gokr joined #nim |
15:38:02 | * | gokr quit (Ping timeout: 246 seconds) |
15:41:11 | * | Trustable quit (Remote host closed the connection) |
15:49:28 | * | Andris_zbx quit (Remote host closed the connection) |
16:05:11 | * | yglukhov quit (Remote host closed the connection) |
16:07:28 | * | vlad1777d joined #nim |
16:25:58 | * | vendethiel- joined #nim |
16:27:17 | * | vendethiel quit (Ping timeout: 248 seconds) |
16:28:12 | * | Jesin joined #nim |
16:39:04 | * | vendethiel- quit (Quit: q+) |
16:43:24 | * | gokr joined #nim |
16:47:33 | * | byte512 quit (Ping timeout: 245 seconds) |
16:57:08 | * | gokr quit (Ping timeout: 258 seconds) |
17:05:41 | * | yglukhov joined #nim |
17:10:26 | * | yglukhov quit (Ping timeout: 256 seconds) |
17:21:57 | * | rokups quit (Quit: Connection closed for inactivity) |
17:25:14 | * | space-wizard joined #nim |
17:36:14 | * | dmi0 joined #nim |
17:43:59 | * | space-wizard quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
17:48:58 | * | Sentreen quit (Ping timeout: 256 seconds) |
17:58:29 | * | Ven joined #nim |
18:01:20 | * | space-wizard joined #nim |
18:02:02 | * | Sentreen joined #nim |
18:07:15 | vlad1777d | Hello to all. I want to ask some question, for what after "proc name()" to define the proc there is need to place "=" symbol ? |
18:09:53 | vlad1777d | And after "for" and "while" instruction there is ":" symbol. Why so different ?) |
18:09:55 | vlad1777d | Thanks |
18:14:39 | * | devted joined #nim |
18:15:16 | * | devted quit (Client Quit) |
18:16:29 | dom96 | vlad1777d: You're defining a proc, you're not defining a for loop. |
18:16:38 | dom96 | Same for 'var', you're defining a variable |
18:16:43 | dom96 | hence the '=' |
18:16:54 | dom96 | Just implemented this: https://github.com/nim-lang/nimble/issues/88#issuecomment-269026811 :D |
18:25:56 | * | space-wizard quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
18:28:11 | * | yglukhov joined #nim |
18:32:48 | * | yglukhov quit (Ping timeout: 265 seconds) |
18:41:12 | * | azur_kind joined #nim |
18:42:11 | vlad1777d | Aha, I understood. Are somewhere some discussions\propositions about language syntax ? |
18:42:26 | vlad1777d | For me to read them =) |
18:49:32 | * | space-wizard joined #nim |
18:51:57 | * | yglukhov joined #nim |
18:52:11 | flyx | vlad1777d: there are few discussions. there's the language manual, but it mostly just explains how things work and not why they're designed that way |
18:57:15 | * | gokr joined #nim |
19:00:21 | * | space-wizard quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
19:02:11 | vlad1777d | flyx, thanks, I had read manual, tutorials and list of data in system\os module several times =) |
19:03:44 | * | space-wizard joined #nim |
19:06:01 | flyx | well then it's best to just ask here if you want to know something |
19:09:37 | renesac-away | vlad1777d: there was some discussion on that = vs : issue with filwit: http://forum.nim-lang.org/t/389 |
19:10:26 | vlad1777d | renesac-away, thanks |
19:26:56 | vlad1777d | And to change some syntax I must change only parcer.nim, right ? |
19:29:36 | * | azur_kind quit (Remote host closed the connection) |
19:30:38 | * | brson joined #nim |
19:34:17 | * | gokr quit (Ping timeout: 246 seconds) |
19:41:44 | FromGitter | <Izrab> Hello |
19:45:09 | dom96 | vlad1777d: why change the syntax? :O |
19:46:16 | * | dmi0 quit (Ping timeout: 265 seconds) |
19:47:31 | vlad1777d | dom96, 1 - to train in reading and understanding code, 2 - I want to remove "=" in proc definitions and ":" in loops, like it is in Genie. Also it would better to add keyword for multiple importing\including from different folders =) I cannot change it now, but I could to look to sources, to understand some principles, etc |
19:48:14 | Araq | let foo: type = value |
19:48:18 | Araq | proc foo: type = impl |
19:48:30 | Araq | it's not really inconsistent |
19:48:52 | vlad1777d | No, I mean when proc's body is on the next line |
19:49:24 | Araq | well you cannot leave it out for 'let' when the value "is on the next line" either |
19:49:26 | vlad1777d | It's clear and without "=", that if in the next lines there is indent - it's the body of procedure |
19:50:09 | Araq | I don't believe in the "simplicity" of optional tokens. |
19:50:35 | Araq | it's a fine line though |
19:51:22 | vlad1777d | something like this: https://pp.vk.me/c638428/v638428447/16629/smho7XV5OBg.jpg |
19:51:55 | Araq | looks naked to me :P |
19:51:59 | vlad1777d | and in "if" too: https://wiki.gnome.org/Projects/Genie#Conditional_Execution_with_.27if.27 |
19:52:24 | vlad1777d | I tried that language when I was trying to resolve my problems with RSVG wrapper for Nim |
19:52:56 | vlad1777d | it seems clear enough, but Nim is better =) |
19:54:46 | vlad1777d | It's the same, like ";" in the end of line. C knows, that line end when there is ";". But anyway people write there and "\n" too. So there is no need to "double" that instructions |
19:57:49 | * | Trustable joined #nim |
19:59:32 | dom96 | Readability is a good reason to keep it https://docs.python.org/3/faq/design.html#why-are-colons-required-for-the-if-while-def-class-statements |
20:02:27 | vlad1777d | for me - without ":" is better =) I do not ask you to change something, tastes differ, the only one language will be perfect to you - youth =) |
20:03:14 | vlad1777d | So we must "agree" with something we dislike in language because we like more things, and this language is better. |
20:04:15 | vlad1777d | I dislike Python's package system - all files must be in the same folder. Or to add: "import sys; sys.path.append("path to files"); import needed_module; " |
20:04:51 | vlad1777d | But generally Python is good and clear, and better than all other interpreting languages. So I use it |
20:05:58 | Araq | dom96: I'm not convinced by that paragraph in Python's docs and Nim also uses the colon for type annotations, something that Python lacks |
20:06:44 | Araq | but it's not a big deal either way and there is no progress in making ":" optional for Nim. |
20:08:13 | * | chemist69 quit (Ping timeout: 260 seconds) |
20:09:55 | * | dddddd joined #nim |
20:11:42 | vlad1777d | I just hate Perl with it's couple of ASCII symbols =) Symbol on symbol. |
20:14:31 | * | nsf quit (Quit: WeeChat 1.6) |
20:34:02 | * | bjz joined #nim |
20:35:05 | * | chemist69 joined #nim |
20:47:45 | * | brson quit (Quit: leaving) |
20:47:53 | * | brson joined #nim |
20:54:06 | * | Snircle quit (Quit: Textual IRC Client: www.textualapp.com) |
20:55:04 | * | Sentreen quit (Quit: WeeChat 1.4) |
20:56:52 | * | Sentreen joined #nim |
21:13:51 | * | nsf joined #nim |
21:32:16 | * | bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
21:35:01 | * | renesac-away quit (Ping timeout: 260 seconds) |
21:36:47 | * | brson quit (Ping timeout: 246 seconds) |
21:44:03 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
21:46:25 | * | renesac joined #nim |
21:52:42 | * | gokr joined #nim |
22:08:25 | FromGitter | <Varriount> @vlad1777d You've never used Python's module system? |
22:09:14 | * | dmi0 joined #nim |
22:09:22 | dmi0 | #gobolinux hi |
22:09:27 | vlad1777d | Varriount, I had used it, but I dislike it, because it bans dividing text into several files. |
22:09:52 | vlad1777d | It's possible, but you need to make cross-imports between files to receive needed data. |
22:10:30 | vlad1777d | Maybe it was designed for large projects... I don't know. |
22:12:11 | vlad1777d | It's missing "include" and import from specified directory (with relative path): "import ./data/people" |
22:12:12 | * | chemist69 quit (Ping timeout: 250 seconds) |
22:16:53 | * | chemist69 joined #nim |
22:17:00 | dom96 | dmi0: why do you keep joining and saying "#gobolinux hi"? |
22:18:10 | * | yglukhov quit (Remote host closed the connection) |
22:18:21 | dmi0 | sorry dom96, just learnead how to chat in multiple channel with bitchX, no spam or anything like it intended |
22:18:42 | dom96 | no problem, just curious. |
22:24:25 | dmi0 | yeah, gobolinux is small but very interesting linux distro, and last week came the long awaited 64B version |
22:24:53 | * | bjz joined #nim |
22:31:13 | * | Trustable quit (Remote host closed the connection) |
22:39:13 | dom96 | cool |
22:40:48 | * | yglukhov joined #nim |
22:45:35 | * | yglukhov quit (Ping timeout: 265 seconds) |
22:48:44 | * | gokr quit (Ping timeout: 256 seconds) |
22:50:01 | * | bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
22:54:26 | * | dmi0 left #nim (#nim) |
22:56:13 | * | brson joined #nim |
23:03:24 | * | gokr joined #nim |
23:08:12 | * | space-wizard quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
23:08:40 | * | space-wizard joined #nim |
23:13:33 | * | space-wizard quit (Ping timeout: 268 seconds) |
23:15:57 | * | cheatfate_ joined #nim |
23:16:38 | * | cheatfate quit (Read error: Connection reset by peer) |
23:28:08 | FromGitter | <hcorion> Hi all, I'm having trouble with generics can you look at my code to see what is wrong? ⏎ https://gist.github.com/hcorion/104e46ddee6d3137d2f65e74f1690c6d |
23:38:27 | FromGitter | <hcorion> Whoops, I changed it, it now shows my problem |
23:39:03 | Araq | you cannot return either int or string |
23:39:36 | FromGitter | <hcorion> if I change it to just T it still doesn't work |
23:40:01 | FromGitter | <hcorion> oh, wait, nvm |
23:40:06 | * | nimtester_ joined #nim |
23:40:14 | FromGitter | <hcorion> so what can I return then? |
23:40:48 | nimtester_ | Hello. What are nims tools (or what is planned) for the following items?: custom allocator (can allocate an object in my own memory and initialize it. interaction with gc?), gc-less programming, can I pass a type into a macro and analyse its members and methods ?, writing a dynamic library (dll) for other languages with and without gc. is RAII possible? SIMD? |
23:41:27 | nimtester_ | A lot points, but hobe you can help me :) |
23:41:48 | nimtester_ | hope |
23:45:43 | FromGitter | <hcorion> Here is a link to an online compiler with my code: https://goo.gl/wctXZQ |
23:49:59 | * | Pisuke quit (Ping timeout: 258 seconds) |
23:51:34 | * | Jesin quit (Quit: Leaving) |
23:56:16 | * | nimtester_ quit (Quit: Leaving) |
23:58:54 | * | yglukhov joined #nim |