00:02:35 | * | vlad1777d joined #nim |
00:09:15 | * | vlad1777d quit (Remote host closed the connection) |
00:12:40 | FromGitter | <Varriount> carterza: My first guess would be invalid memory access |
00:12:53 | carterza | I’m getting closer |
00:12:54 | FromGitter | <Varriount> In the shader |
00:12:57 | carterza | I think it has to do with my matrices |
00:13:25 | carterza | http://imgur.com/a/ICIAY |
00:13:27 | carterza | getting there... |
00:13:42 | carterza | I could always get a job as a graphics freakshow artist if need be |
00:16:40 | * | brson quit (Read error: Connection reset by peer) |
00:16:48 | * | brson joined #nim |
00:21:06 | carterza | http://imgur.com/a/3JSfC |
00:22:25 | FromGitter | <Varriount> carterza: I even have a title, "Creatures from the Unaligned Buffer" |
00:22:30 | carterza | lol |
00:22:53 | carterza | I like it |
00:23:26 | krux02 | yea I wrote by the way a macro library that makes sure you never have an unaligned buffer again |
00:23:59 | krux02 | https://github.com/krux02/opengl-sandbox/blob/master/examples/mesh_loading_tiny.nim |
00:24:47 | FromGitter | <Varriount> How complete is Nim's glm? |
00:25:18 | krux02 | you mean this one: https://github.com/krux02/nim-glm |
00:25:24 | FromGitter | <Varriount> I remember when trying to follow OpenGl tutorials a while ago, I couldn't proceed to the more complex part because they all relied on glm or some other matrix library. |
00:25:47 | krux02 | I made sure that every function from glsl is supported |
00:26:51 | krux02 | I still only have a fork of the library, but my version is ahead of the original, and even there I basically revamped the entire thing to use generics |
00:27:23 | krux02 | it has vectors, matrices and quaternions. |
00:27:37 | krux02 | If you want splines, no luck have to implement them on your own |
00:51:57 | * | hjsagg joined #nim |
01:14:42 | * | carterza quit (Quit: carterza) |
01:16:08 | * | ftsf quit (Ping timeout: 255 seconds) |
01:20:47 | * | hjsagg quit (Ping timeout: 264 seconds) |
01:21:44 | * | ftsf joined #nim |
02:13:28 | FromGitter | <barcharcraz> I use my own vecmath library |
02:13:32 | FromGitter | <barcharcraz> but it prolly needs some love |
02:13:52 | * | Demos joined #nim |
02:13:52 | * | Demos is now known as Guest94390 |
02:15:04 | krux02 | barcharcraz: I think there is really little creativity in making one |
02:15:13 | FromGitter | <barcharcraz> yeah |
02:15:21 | FromGitter | <barcharcraz> I don't think nim-glm was around when I wrote that |
02:15:26 | krux02 | just put a bunch of datatypes and common operations together |
02:15:29 | FromGitter | <barcharcraz> (it still has some lurking T and P prefixes) |
02:15:47 | krux02 | my suggestion is to use nim-glm |
02:15:51 | FromGitter | <barcharcraz> yeah same |
02:15:56 | krux02 | because by today you could say I wrote it |
02:16:38 | krux02 | it did exist when I started programming in nim, I didn't like it a lot but it did it's job for the time until I did a complete overhaul on everything |
02:16:47 | krux02 | so by now I can say it is pretty solid |
02:16:51 | krux02 | I can recommend |
02:18:55 | krux02 | I wish there was some common simd type in the core of nim |
02:19:09 | krux02 | so that I could just use that and implement basically just methods |
02:19:51 | krux02 | So that when there are several vector type implementations around they are all from the same base class and therefore binary/argument compatible |
02:23:58 | * | krux02 quit (Quit: Leaving) |
02:24:15 | * | sz0 quit (Quit: Connection closed for inactivity) |
02:33:02 | * | cjbest joined #nim |
02:37:08 | * | yay joined #nim |
02:41:48 | * | cjbest quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
02:42:59 | * | chemist69 quit (Ping timeout: 264 seconds) |
02:52:28 | * | sovreign joined #nim |
02:52:56 | * | Snircle quit (Quit: Textual IRC Client: www.textualapp.com) |
02:56:18 | * | chemist69 joined #nim |
03:09:27 | * | sovreign left #nim ("WeeChat 1.7") |
03:16:08 | * | yay quit (Quit: ZZZzzz…) |
03:23:40 | * | carterza joined #nim |
03:49:48 | * | cjbest joined #nim |
03:51:49 | * | cjbest quit (Read error: Connection reset by peer) |
03:54:47 | FromGitter | <vegansk> @Araq, why are we using ``assert`` in the compiler's code? It is dangerous because the compiler can produce the code that compiles but won't work as it should. |
04:40:20 | rauss | I'm having some issues porting a cpp file to nim. Does anyone have a couple minutes to look at the .cpp file and my .nim file, and look for anything stupid I might be missing? |
04:40:32 | rauss | (it's pretty short) |
04:43:09 | * | chemist69 quit (Ping timeout: 240 seconds) |
04:43:32 | * | chemist69 joined #nim |
04:47:09 | FromGitter | <vegansk> @rauss, post them as a gist |
04:47:35 | rauss | https://github.com/Microsoft/Chakra-Samples/blob/master/ChakraCore%20Samples/Hello%20World/Linux_OSX/sample.cpp and https://gist.github.com/rosshadden/d2877ef77085c889d6e5f90e38b06650 |
04:51:09 | FromGitter | <vegansk> And what's the problem? |
04:52:18 | rauss | vegansk: The specific problem is in the comment on line 35, but I don't think it's feasible to get specific help for that. Can you just see if anything I'm doing looks blatantly wrong? |
04:52:28 | rauss | I'm new to nim as of like two days ago |
04:52:48 | rauss | AFAICT everything looks great on my end, and nothing wrong. So hopefully it's minor |
04:56:48 | FromGitter | <vegansk> @rauss, where are ChakraCommon and ChakraCore sources? |
04:58:13 | rauss | (finding links, sec) |
04:58:39 | rauss | vegansk: https://github.com/Microsoft/ChakraCore/tree/master/lib/Jsrt |
04:59:19 | rauss | vegansk: I can gist my .h files that I have manually mangled, or their .nim transpiled versions if you want |
05:00:07 | FromGitter | <vegansk> nim version please |
05:01:31 | rauss | https://gist.github.com/rosshadden/d2877ef77085c889d6e5f90e38b06650 Added to the original gist |
05:06:23 | FromGitter | <vegansk> Read description here: https://gist.github.com/rosshadden/d2877ef77085c889d6e5f90e38b06650#file-chakracore-nim-L201-L204 |
05:06:57 | FromGitter | <vegansk> You give it the buffer of size 0 |
05:08:23 | rauss | vegansk, You're completely right. I did that because the sample I'm porting passes `nullptr`. I'll see if changing it helps |
05:09:36 | FromGitter | <vegansk> Do something like: ⏎ ⏎ ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=58a2910f00c00c3d4f36c999] |
05:12:14 | FromGitter | <rosshadden> @vegansk Maybe something in the library itself is messed up, or unexpected. `len` does not get updated and stays `0` |
05:12:32 | FromGitter | <rosshadden> I'll poke around their source and see if I can figure it out |
05:13:07 | FromGitter | <rosshadden> @vegansk As far as sanity check, not even caring what those libs do, does everything look sane-ish? |
05:14:44 | FromGitter | <rosshadden> @vegansk The cast for instance seems suspect. I kind of just tried things until it was the expected type =\ |
05:14:47 | FromGitter | <vegansk> First of all, don't discard error values, check them, maybe example fails before that line. |
05:16:31 | FromGitter | <rosshadden> Okay. Thanks for taking a look! |
05:30:15 | FromGitter | <vegansk> You are welcome :smile: |
05:39:29 | * | brson quit (Ping timeout: 240 seconds) |
05:41:39 | * | Guest94390 quit (Read error: Connection reset by peer) |
05:44:36 | * | rosshadden quit (Ping timeout: 240 seconds) |
05:45:52 | * | rosshadden joined #nim |
05:46:51 | carterza | narrowed down the bug in my gl code to one spot for skeletal animation I think |
05:46:57 | carterza | one matrix is causing the issue it would seem |
05:47:04 | carterza | if I set that to identity i get the bind pose |
05:50:36 | carterza | ah nevermind it’s two matricies - I have a feeling all these problems I’m having stem from using glm and it not being the same row / column major as the code I’m following |
06:00:08 | * | brson joined #nim |
06:01:56 | FromGitter | <optik-aper> I'm new to nim and right now I'm having problems with the os module (and some others). When I try to compile this code ⏎ ⏎ ```code paste, see link``` ⏎ ⏎ I've noticed it happening with several libraries and I'm not really sure what could be going on. [https://gitter.im/nim-lang/Nim?at=58a29d52aa800ee52c9185e5] |
06:04:35 | * | rosshadden quit (Ping timeout: 255 seconds) |
06:05:13 | * | brson quit (Quit: leaving) |
06:05:44 | * | rosshadden joined #nim |
06:23:16 | * | nsf joined #nim |
06:25:56 | FromGitter | <optik-aper> Well, I suspect it has something to do my OS (void linux w/ musl). I installed nim on Ubuntu 16.04 and it compiled without issue. I'll investigate more tomorrow. |
06:26:29 | FromGitter | <vegansk> @optik-aper, show output of ``nim -v`` and ``nim dump`` |
06:27:50 | FromGitter | <optik-aper> nim -v ⏎ ⏎ ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=58a2a365872fc8ce62320338] |
06:31:34 | FromGitter | <vegansk> How did you install Nim? |
06:31:56 | FromGitter | <optik-aper> xbps, the package manager for void linux |
06:32:49 | FromGitter | <optik-aper> I also, after I started having issues, pulled the repo down and compiled nim. I got the same results trying to compile that snippet. |
06:37:05 | FromGitter | <vegansk> Interesting. Can you also run this code: ⏎ ⏎ ```import system.platforms ⏎ echo targetOS ⏎ echo targetCPU``` [https://gitter.im/nim-lang/Nim?at=58a2a58f872fc8ce62320c2d] |
06:38:38 | * | gokr joined #nim |
06:39:01 | FromGitter | <optik-aper> ```linux ⏎ amd64``` [https://gitter.im/nim-lang/Nim?at=58a2a60400c00c3d4f371f65] |
06:46:36 | * | chemist69 quit (Ping timeout: 245 seconds) |
06:46:56 | * | yglukhov joined #nim |
06:50:56 | * | yglukhov quit (Ping timeout: 240 seconds) |
06:51:22 | * | chemist69 joined #nim |
06:53:32 | FromGitter | <vegansk> It's ok here. Then I just don't know what happens :-( |
06:55:39 | FromGitter | <optik-aper> I suspect it's my unusual OS and maybe the fact that it's compiled against musl instead of glibc? I'm not sure. I'll do some more investigation... maybe set up a glibc filesystem to test it or do a fresh install of void w/ glibc. Thanks for you help. |
06:59:07 | * | bjz joined #nim |
07:00:57 | * | Matthias247 joined #nim |
07:09:52 | * | rokups joined #nim |
07:11:48 | * | Matthias247 quit (Read error: Connection reset by peer) |
07:15:16 | * | rauss quit (Quit: WeeChat 1.7) |
07:17:53 | * | filcuc joined #nim |
07:18:23 | * | ftsf quit (Ping timeout: 255 seconds) |
07:21:07 | * | ftsf joined #nim |
07:45:29 | * | ftsf quit (Remote host closed the connection) |
07:54:39 | * | Arrrr joined #nim |
07:55:27 | carterza | getting further along… - http://imgur.com/a/fX4zI |
07:55:32 | carterza | still not sure what the exact problem is |
07:55:42 | carterza | fixed a lot of matrix multiplication problems |
07:57:25 | FromGitter | <vegansk> @Araq, my opinion is that all of these issues (#5389, #5383, #5170) have the same source of problems (codegen) but different effects - from compile errors to runtime crashes. What do you think? |
07:58:50 | FromGitter | <vegansk> Maybe you can point me where to start search? |
08:03:48 | libman | Even C++ now has an IDE daemon - http://phoronix.com/scan.php?page=news_item&px=LLVM-Clang-Clangd-Server |
08:06:09 | FromGitter | <vegansk> Where c codegen chooses if it must instantiate the new type or function, or use already existing? |
08:07:21 | * | yglukhov joined #nim |
08:10:46 | FromGitter | <vegansk> @libman, C++ has IDE daemon a couple of years :-) https://valloric.github.io/YouCompleteMe/#client-server-architecture |
08:11:36 | carterza | now I’m really close… http://imgur.com/a/fzNJw |
08:11:38 | carterza | and lol |
08:36:36 | rokups | now this is something nimsuggest should be http://langserver.org/ |
08:37:39 | rokups | just read about clangd - they now provide a language server for c++. amazing times. |
08:45:17 | * | Vladar joined #nim |
08:47:18 | * | couven92 joined #nim |
08:49:26 | * | bjz quit (Ping timeout: 240 seconds) |
08:49:40 | * | bjz joined #nim |
08:54:45 | * | chemist69 quit (Ping timeout: 252 seconds) |
08:57:04 | * | yglukhov quit (Remote host closed the connection) |
08:57:12 | * | chemist69 joined #nim |
08:57:24 | * | Andris_zbx joined #nim |
09:13:03 | * | yglukhov joined #nim |
09:19:14 | * | bjz_ joined #nim |
09:19:16 | * | bjz quit (Ping timeout: 240 seconds) |
09:28:18 | Jipok[m] | Help me please. I have such a problem. |
09:28:19 | Jipok[m] | $ ./HelloWorld |
09:28:27 | Jipok[m] | libbgfx-shared-libDebug.so: cannot open shared object file: No such file or directory |
09:28:28 | Jipok[m] | libbgfx-shared-libRelease.so: cannot open shared object file: |
09:28:37 | Jipok[m] | No such file or directory |
09:28:38 | Jipok[m] | could not load: libbgfx-shared-lib(Debug|Release).so |
09:28:45 | Araq | vegansk: yes I'm working on it |
09:28:54 | Jipok[m] | $ ls |
09:28:55 | Jipok[m] | HelloWorld libbgfx-shared-libRelease.so |
09:29:01 | Araq | it's a serious regression... -.- |
09:29:21 | Araq | I use asserts only for stuff that cannot go wrong :P |
09:29:42 | Araq | there is also internalAssert and doAssert which are not compiled away, so *shrug* |
09:30:49 | FromGitter | <vegansk> @Araq, thanks. |
09:31:20 | cheatfate | Jipok[m], please put your .so file to /usr/lib |
09:33:54 | cheatfate | Jipok[m], what os you are using? |
09:35:09 | Jipok[m] | fedora |
09:35:53 | Jipok[m] | I put it in the lib64. Thanks, it helped |
09:36:07 | FromGitter | <konqoro> what's the difference between nnkStmtListExpr and nnkStmtList in macros? |
09:36:20 | Jipok[m] | I'm just a beginner in linux and nim. |
09:38:08 | * | yay joined #nim |
09:39:12 | FromGitter | <vegansk> @konqoro , ``(var x = 12; x)`` - is nnkStmtListExpr, you can use it where you need an expression |
09:39:54 | Jipok[m] | cheatfate: how to make a program to use the library from its current location? |
09:40:29 | * | await quit (Ping timeout: 240 seconds) |
09:40:51 | * | yglukhov quit (Remote host closed the connection) |
09:41:31 | * | SunDwarf joined #nim |
09:41:43 | flyx | Jipok[m]: add . to LD_LIBRARY_PATH |
09:41:52 | FromGitter | <konqoro> thanks @vegansk |
09:42:42 | cheatfate | Jipok[m], try in your nim file {.passL:"-Wl,-rpath=.".} |
09:43:24 | cheatfate | maybe this helps |
09:45:05 | * | yay quit (Ping timeout: 255 seconds) |
09:46:20 | Jipok[m] | Thank you. Both methods work |
09:48:16 | cheatfate | Jipok[m], what method you have used first? |
09:48:45 | cheatfate | Jipok[m], because if you used flyx's method first then you don't know results of my method :) |
09:48:57 | Jipok[m] | dynlib: ".libbgfx... |
09:49:39 | flyx | cheatfate: depends on whether he did `LD_LIBRARY_PATH=. ./HelloWorld` or exported it |
09:49:54 | Jipok[m] | I tried them separately. |
09:50:45 | Jipok[m] | If the program is run under Windows. Where it will search dll? |
09:51:01 | flyx | afaik Windows by default searches the executable's directory |
09:51:08 | rokups | Araq: finally fixed compiler bootstrapping with -d:nimCoroutines ;) this time 4 real. and GC seems to work. just scraped gc part and rewrote it from scratch. starting over helps sometimes. any way to get CI do it's thing with -d:nimCoroutines enabled? |
09:51:26 | cheatfate | Jipok[m], https://msdn.microsoft.com/en-us/library/windows/desktop/ms682586(v=vs.85).aspx |
09:53:32 | Jipok[m] | OK. I put an dynlib: ". only for Linux. |
09:55:03 | FromGitter | <dom96> @optik-aper this is a long shot, but could it be to do with the fact that you named your module ``import``? |
09:55:45 | * | yglukhov joined #nim |
09:58:26 | FromGitter | <vegansk> @dom96, I tried to name his test as ``import.nim``. It works |
09:59:43 | FromGitter | <dom96> In that case I bet it's musl |
10:19:48 | Araq | rokups: patch .travis.yml and appveyor.yml |
10:20:51 | * | libman quit (Quit: Connection closed for inactivity) |
10:24:23 | * | PMunch joined #nim |
10:28:12 | * | vlad1777d joined #nim |
10:28:22 | * | adeohluwa joined #nim |
10:33:44 | * | vlad1777d quit (Quit: Leaving) |
10:36:04 | * | vlad1777d joined #nim |
10:38:19 | * | vlad1777d quit (Client Quit) |
10:46:21 | * | bjz joined #nim |
10:47:11 | * | bjz_ quit (Ping timeout: 240 seconds) |
10:48:49 | * | yglukhov quit (Remote host closed the connection) |
10:51:32 | * | yglukhov joined #nim |
10:56:11 | * | yglukhov quit (Ping timeout: 255 seconds) |
11:00:30 | * | Ven joined #nim |
11:03:27 | * | yglukhov joined #nim |
11:03:30 | * | PMunch quit (Quit: leaving) |
11:05:22 | * | nhywyll joined #nim |
11:05:37 | * | yglukhov quit (Remote host closed the connection) |
11:06:10 | * | yglukhov joined #nim |
11:10:35 | * | yglukhov quit (Ping timeout: 258 seconds) |
11:13:29 | rokups | did i do it right? https://github.com/nim-lang/Nim/pull/5317/commits/3e440b0a05c7d3e43b2104b110ef2f5734f822b2 |
11:19:25 | * | adeohluwa quit (Remote host closed the connection) |
11:19:33 | * | yglukhov joined #nim |
11:22:57 | * | iamd3vil joined #nim |
11:25:58 | * | vlad1777d joined #nim |
11:31:16 | Araq | rokups: that's one way of doing it, but I would do 'koch boot -d:release' later so that the tests run with the somewhat faster compiler |
11:31:30 | Araq | assuming that -d:nimCoroutines has some overhead |
11:32:03 | Araq | tests\testament\tester --pedantic all -d:nimCoroutines also seems overkill |
11:39:56 | * | vlad1777d quit (Quit: Leaving) |
11:40:34 | * | Kingsquee quit (Quit: https://i.imgur.com/qicT3GK.gif) |
11:42:18 | * | PMunch joined #nim |
11:45:54 | * | vlad1777d joined #nim |
11:47:37 | cheatfate | rokups, also remove `fasm` too, please |
11:53:03 | * | bjz_ joined #nim |
11:53:31 | * | bjz quit (Ping timeout: 258 seconds) |
11:59:56 | * | nhywyll quit (Quit: nhywyll) |
12:02:05 | * | Snircle joined #nim |
12:02:08 | * | arnetheduck joined #nim |
12:02:18 | * | vlad1777d quit (Quit: Leaving) |
12:05:23 | * | vlad1777d joined #nim |
12:06:40 | * | vlad1777d quit (Client Quit) |
12:11:52 | * | vlad1777d joined #nim |
12:12:02 | * | yglukhov quit (Remote host closed the connection) |
12:12:46 | * | vlad1777d quit (Remote host closed the connection) |
12:14:16 | * | vlad1777d joined #nim |
12:14:30 | * | PMunch quit (Quit: leaving) |
12:15:39 | * | PMunch joined #nim |
12:18:59 | * | couven92 quit (Quit: Client disconnecting) |
12:21:19 | * | bjz_ quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
12:25:52 | arnetheduck | hey Araq, I looked at those test results someone posted for windows for the abi branch, but I can't say they look very abi-specific |
12:26:05 | arnetheduck | hard to tell if things are simply broken on win or if it's the patch's fault |
12:26:16 | * | vlad1777d quit (Quit: Leaving) |
12:26:28 | Araq | win tests are green fwiw |
12:26:39 | Araq | we now run them daily with appveyor |
12:27:56 | * | bjz joined #nim |
12:29:48 | * | vlad1777d joined #nim |
12:30:55 | Jipok[m] | Why nim is not friendly? |
12:31:04 | Jipok[m] | I mean the lack of ready-made packages for Linux. |
12:31:13 | Jipok[m] | Also on the main page there is a link to Aporia Ide. But it is a very bad option for beginners. Wouldn't it be better to do an article about the installation VSCode + Nim + Native Debug? |
12:31:23 | Jipok[m] | In the FAQ there is a list of plug-ins for editors. Some of the bottom has not been updated for years. This is very discouraged. |
12:31:43 | Jipok[m] | When I just want to see how to work with the GUI, I have to search for topics in the forum. Setting libui I find that nothing works with nim version downloaded from the site. Updating nim I have surprised to find that I no longer work the other packages. |
12:32:10 | Jipok[m] | By setting nimx I see that for the assembly of the simplest examples of a need nake. Okay, I go deal with this. As a result, I get a lot of errors and frustration. |
12:32:39 | Jipok[m] | Is it possible to make stable packages that are sure to work with the current stable version of the compiler? |
12:32:56 | Jipok[m] | When I open the package list, I am glad such a large number. But then it is found that many of them have not been updated for years and are not going to the current version of nim. |
12:33:12 | Araq | Jipok[m]: libui is a recent development, I cannot speak for nimx |
12:34:27 | zevlg | nim-mode for emacs is powerful enough |
12:35:00 | Jipok[m] | emacs? rly? |
12:35:40 | Jipok[m] | simply setting Emacs for themselves - a difficult quest. |
12:36:21 | zevlg | why not? Emacs is pretty good since ~2014 |
12:37:21 | Jipok[m] | I would say that in itself Emacs not friendly. |
12:37:33 | Araq | that's a different topic. |
12:37:48 | Araq | tell me what's broken and should be removed from the website. |
12:38:46 | Jipok[m] | Aporia IDE? |
12:39:37 | Araq | is it broken? |
12:39:44 | Araq | or just not your cup of tea? |
12:39:45 | Jipok[m] | no |
12:40:05 | * | couven92 joined #nim |
12:40:26 | Jipok[m] | why it was called ide? |
12:40:56 | Jipok[m] | it's just an editor with highlight. |
12:43:24 | * | yglukhov joined #nim |
12:43:50 | Araq | well it has nimsuggest integration, hence IDE :P |
12:44:32 | cheatfate | An IDE normally consists of a source code editor, build automation tools and a debugger. |
12:44:51 | cheatfate | Most modern IDEs have intelligent code completion. |
12:45:10 | cheatfate | so without debugger, Aporia is not IDE |
12:47:25 | * | bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
12:48:17 | * | yglukhov quit (Remote host closed the connection) |
12:48:22 | Araq | ok, that convinces me, will rename it |
12:49:55 | * | yglukhov joined #nim |
12:51:44 | dom96 | It was intended for Aporia to become an IDE |
12:52:00 | dom96 | But GTK turned out too much of a pain |
12:52:24 | dom96 | I would say that an IDE also has to have refactoring capabilities |
12:54:36 | cheatfate | And Jipok[m] is right about packages, i think packages must mention about OS they support and must be removed from packages repository if they remain broken for some time |
12:55:04 | cheatfate | or maybe not removed, but marked as `broken` |
12:56:14 | dom96 | Agreed |
12:56:20 | dom96 | We can use the `broken` tag for this |
12:56:46 | cheatfate | what about `os supported`? |
12:57:54 | dom96 | hrm, would a new field in the .nimble files be acceptable for that? |
12:58:54 | cheatfate | it can be `generic`, eg. not using any os specific calls, or list of `os` supported |
12:59:00 | cheatfate | new field will be good |
12:59:17 | cheatfate | and can be `unspecified` for old packages |
12:59:21 | * | yglukhov quit (Remote host closed the connection) |
13:00:21 | * | chemist69 quit (Ping timeout: 245 seconds) |
13:01:30 | rokups | Araq should fasm support be removed? Should masm support be removed from that PR as well? We dont really need them. |
13:01:56 | Araq | ok, never got it to work with fasm either |
13:02:00 | Araq | remove it. |
13:03:34 | rokups | just fasm or both? |
13:05:22 | * | iamd3vil quit (Quit: Leaving) |
13:08:43 | carterza | any opengl wizards online? |
13:08:55 | carterza | that can tell me what is going on here with my skeleton - http://imgur.com/a/fzNJw |
13:09:37 | dom96 | cheatfate: feel free to create an issue |
13:10:38 | Araq | rokups: both |
13:10:52 | dom96 | carterza: heh, that looks funny :) |
13:10:57 | flyx | carterza: what's your question? |
13:11:28 | carterza | well something isn’t right |
13:11:38 | carterza | some of the bones are rotated in the wrong direction it would appear |
13:11:49 | carterza | I’ve gone over my matrix multiplication code like 100 times and I can’t find anything wrong |
13:12:00 | carterza | wondering if it’s a rotation issue or if it’s a parent to child transform issue or what |
13:12:12 | carterza | just a general idea of what to look at next I guess |
13:12:38 | flyx | I don't think it is possible to determine that from an animated gif |
13:12:44 | carterza | I can share code |
13:13:05 | carterza | and last night people were able to help me just based on a gif :D |
13:13:13 | flyx | a frame-by-frame comparison may help |
13:13:30 | carterza | they pointed me towards my matrices code which is where a lot of my problems were lying |
13:13:41 | carterza | since assimp and glm are NOT row major / column major compatible |
13:16:16 | Jipok[m] | Araq: I did not mean to say that the nim or aporia bad. Just read an article about nim I am very inspired. I liked very much in that language. But all my joy broke about the inability to collect anything working. |
13:19:15 | Jipok[m] | carterza: are you a dEngine developer? |
13:20:43 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
13:21:40 | carterza | I’m the only dEngine developer :D |
13:23:56 | Jipok[m] | for the graphic output you are using pure Opengl? |
13:24:08 | carterza | mmhmm |
13:24:11 | carterza | sdl2 for windowing |
13:25:51 | Jipok[m] | Have you considered the option to use a ready-made rendering library? |
13:26:13 | Jipok[m] | eg bgfx |
13:26:37 | carterza | I did but I the bindings to bgfx are flimsy at best |
13:26:50 | carterza | if someone were to write a cross platform renderer in nim I’d be all over it |
13:27:30 | * | chemist69 joined #nim |
13:28:10 | carterza | the nim bgfx bindings are sketcy at best |
13:32:31 | * | byte512 joined #nim |
13:35:04 | Jipok[m] | carterza: I wanted to try their hand at creating 2d games. What advice do you have for rendering? |
13:35:26 | carterza | well if you can live with software rendering, there are some great guides on creating nim games with SDL2 |
13:35:37 | carterza | there’s even an sdl2 game engine Vladar built for nim |
13:35:45 | Vladar | sdl2 supports hardware acceleration |
13:36:02 | carterza | oh yes I forgot about this |
13:36:04 | carterza | but no batching |
13:36:29 | carterza | so your draw calls wont’ be optimized unless you manage the opengl context yourself Jipok |
13:36:34 | carterza | I gotta run to work, be back on in a few |
13:36:50 | * | carterza quit (Quit: carterza) |
13:38:09 | Vladar | well, for a simple 2D game sdl2 pumps an impressive performance anyway https://github.com/Vladar4/nimgame2/tree/master/demos/demo1 |
13:39:55 | Jipok[m] | What should not I use if I want to then compile the game into the js? |
13:44:49 | Vladar | Jipok[m]: if you want to use a js, you should rather look into HTML5 Canvas |
13:45:38 | ehmry | if you are not sold on sdl2, there is also libretro, I find it more portable than SDL |
13:45:39 | * | Arrrr quit (Read error: Connection reset by peer) |
13:46:07 | ehmry | but I don't write games, just port them |
13:48:02 | * | yglukhov joined #nim |
13:48:06 | * | yglukhov quit (Remote host closed the connection) |
13:55:34 | dom96 | It seems like we should use some of the code described here: https://blackhole12.blogspot.ch/2017/02/windows-wont-let-my-program-crash.html |
13:55:43 | dom96 | To ensure Nim programs crash on Windows when they're suppose to |
13:55:56 | dom96 | Although even that person couldn't get it to always crash |
14:00:30 | FromGitter | <optik-aper> @dom96 @vegansk It worked with that filename on Ubuntu. I'll let you know if I turn anything up. Thanks again. |
14:12:58 | FromGitter | <zacharycarter> Looks like nim bgfx got updated. Time to write xplatform windowing code |
14:21:46 | * | carterza joined #nim |
14:35:52 | * | yglukhov joined #nim |
14:37:31 | * | yglukhov quit (Remote host closed the connection) |
14:38:05 | * | rauss joined #nim |
14:51:28 | * | nsf quit (Quit: WeeChat 1.7) |
14:54:00 | * | yglukhov joined #nim |
15:18:14 | * | fvs joined #nim |
15:20:51 | fvs | hi, can't find this in the manual - howto add element to start of seq instead of appending? |
15:22:15 | Vladar | fvs: insert, obviously |
15:23:59 | fvs | Vladar, thanks. There are 6 references to "insert" on the mannual - none point to sequences/arrays :) |
15:25:16 | Vladar | fvs: https://nim-lang.org/docs/system.html#insert,seq[T],T |
15:29:17 | fvs | thanks, back to Nim after a while. Tend to forget these nuances. |
15:33:23 | * | arnetheduck quit (Ping timeout: 255 seconds) |
16:13:41 | * | gokr quit (Ping timeout: 240 seconds) |
16:15:35 | demi- | when writing code, it seems like prefixing functions and types with their package name is optional; most of the examples do not include the package name prefix, is this just stylistic convention and the only time to do this is to avoid potential name collisions? |
16:17:03 | flyx | demi-: everything is imported by default. you can do `from mymodule import nil` to force prefixing. |
16:18:24 | * | libman joined #nim |
16:19:35 | demi- | ok, i tend to write code like `os.joinPath()` rather than `joinPath()` so i know where it is coming from -- before this became a strong habit i figure i should ask to make sure that i'm not missing something about the import system as to why none of the examples use prefixing beyond "they don't _have_ to" |
16:20:42 | FromGitter | <andreaferretti> another reason is that Nim has unified function call syntax |
16:21:12 | FromGitter | <andreaferretti> which obviously requires a function name not prefixed by the module name |
16:21:33 | * | PMunch quit (Quit: leaving) |
16:22:17 | FromGitter | <andreaferretti> for instance, the following are all equivalent: `os.joinPath("usr", "lib")`, `joinPath("usr", "lib")` and `"usr".joinPath("lib")` |
16:23:15 | demi- | yeah, i'm not a fan of that tbh |
16:23:15 | flyx | „obviously“ well it does not in C++ ;) |
16:24:05 | flyx | demi-: you're not the only one, but we have discussed it multiple times and stayed with it. |
16:24:15 | dom96 | demi-: when I first read your mention of "prefixing" I thought you meant: osJoinPath. But feel free to use `os.joinPath`, I wouldn't call that "prefixing" though. |
16:25:47 | FromGitter | <andreaferretti> I like it very much |
16:26:16 | fvs | Is it possible that restricting imports from a module (say math) may influence other modules that need other functions within math. I think I ran into this issue with alea recently. |
16:26:28 | dom96 | I'm currently working in Python and all of my colleagues are using PyCharm's Alt+Enter import functionality |
16:26:34 | FromGitter | <andreaferretti> it lets you write some things more clearly but at the same time does not imply dynamic dispatch as in OO languages |
16:26:37 | dom96 | Which inserts stuff like: from os import joinPath |
16:26:52 | Xe | dom96: literally on the fly? |
16:27:05 | dom96 | Xe: yeah, it's very nice. |
16:27:13 | Xe | no i mean |
16:27:19 | Xe | instead of imports at the top of the file |
16:27:32 | Xe | they just pepper imports all over, is that what you're saying? |
16:27:33 | flyx | fvs: I don't really see what you're referring to. if your module imports some things from math, another module you use still imports whatever it wants from math |
16:27:43 | * | yglukhov quit (Remote host closed the connection) |
16:29:06 | dom96 | Xe: no, PyCharm adds it to the top of the file. |
16:29:53 | Xe | ah |
16:32:52 | * | yglukhov joined #nim |
16:32:58 | * | pregressive joined #nim |
16:36:04 | * | Andris_zbx quit (Remote host closed the connection) |
16:37:30 | * | yglukhov quit (Ping timeout: 276 seconds) |
16:41:27 | * | Trustable joined #nim |
16:41:45 | libman | Nim's syntax should be optimized for a decent IDE (or in-browser code viewer) that easily shows you what module anything you point at comes from. This results in leaner syntax. Optimizing for how code looks like in notepad / cat / paper / cave wall painting is no longer a priority. |
16:44:54 | * | devted joined #nim |
17:03:29 | * | filcuc quit (Quit: KVIrc 4.9.2 Aria http://www.kvirc.net/) |
17:05:00 | * | nsf joined #nim |
17:06:09 | * | carterza quit (Ping timeout: 260 seconds) |
17:11:14 | * | gokr joined #nim |
17:11:19 | * | gokr left #nim (#nim) |
17:16:56 | * | chemist69 quit (Ping timeout: 240 seconds) |
17:35:50 | * | chemist69 joined #nim |
17:38:30 | * | yglukhov joined #nim |
17:42:36 | * | yglukhov quit (Ping timeout: 240 seconds) |
17:50:06 | * | fvs left #nim ("leaving") |
17:50:20 | FromGitter | <barcharcraz> Yeah. ALSO languages with complex overload resolution have some different syntax goals than scripting langs |
17:50:29 | dom96 | Araq: Has C's undefined behaviour ever been a problem for Nim? |
17:52:10 | * | rokups quit (Quit: Connection closed for inactivity) |
17:54:42 | Araq | no. |
18:08:35 | dom96 | I guess there is no way for me to convince this guy otherwise, right? https://twitter.com/ebassi/status/831524694738165760 |
18:08:49 | dom96 | (and his other tweet https://twitter.com/ebassi/status/831525017615740930) |
18:10:35 | Araq | dom96: tell him we have an LLVM backend too. |
18:11:15 | dom96 | ok |
18:23:56 | demi- | i wouldn't bother tbh sounds incredibly non-sensical |
18:24:04 | FromGitter | <barcharcraz> Yeah |
18:24:50 | Araq | coming soon: "illegal opcode" exceptions in Java |
18:25:01 | Araq | because Java JIT compiles to assembler... oh wait |
18:25:23 | * | brson joined #nim |
18:25:59 | demi- | is the llvm backend coming to a stable release soon? |
18:28:26 | * | Arrrr joined #nim |
18:28:26 | * | Arrrr quit (Changing host) |
18:28:26 | * | Arrrr joined #nim |
18:34:02 | * | gokr joined #nim |
18:37:26 | * | brson quit (Quit: leaving) |
18:43:08 | Jipok[m] | How much really create the editor like Emacs, but only with nim instead eLisp? |
18:43:12 | cheatfate | i think apple will be forgotten before llvm based compiler becomes as fast as gcc |
18:44:33 | FromGitter | <barcharcraz> They are pretty close tbh |
18:44:49 | dom96 | demi-: No plans for that currently. |
18:45:04 | Jipok[m] | To be more precise. How long it may take one person? |
18:45:20 | demi- | :( |
18:45:28 | FromGitter | <barcharcraz> I'm more excited for the ability to do stuff like D's Calypso |
18:45:41 | cheatfate | Jipok[m], maybe year or two, if you don't have any experience in creation of editors |
18:46:46 | * | gokr left #nim (#nim) |
18:47:19 | * | yglukhov joined #nim |
18:48:18 | Jipok[m] | And how long will it take to develop the editor similar finished Aporia? |
18:50:08 | dom96 | demi-: compiling to C is an advantage in my book |
18:52:09 | FromGitter | <barcharcraz> Although I guess a clang based c2nim could be just as good as Calypso |
18:52:25 | cheatfate | Jipok[m], if you don't have experience with `gtk` and `gtksourceview` - month or two |
18:53:32 | FromGitter | <barcharcraz> Can IRC bridge tell me who's in the channel? |
18:54:35 | * | brson joined #nim |
18:55:02 | dom96 | barcharcraz: don't think so. |
18:56:04 | FromGitter | <barcharcraz> All right. I want to interrogate filcuc about dotherside and nimqml |
18:57:20 | cheatfate | Compilation to C is a big advantage, but generated C code is too ugly now |
18:57:55 | FromGitter | <barcharcraz> Idk the C is an intermediate lang |
18:58:16 | dom96 | filcuc isn't here |
18:58:25 | federico3 | cheatfate: it could be more readable, yes, but that's not the main goal |
18:58:32 | * | yglukhov quit (Remote host closed the connection) |
19:00:28 | cheatfate | federico3, until we dont have debugger, this is biggest disadvantage for newcomers and for me too |
19:01:36 | FromGitter | <barcharcraz> There's work being done on symbol files to fix that |
19:01:43 | FromGitter | <barcharcraz> I agree tho |
19:02:39 | demi- | dom96: what advantage does it have for direct compilation over something like LLVM IR |
19:03:15 | * | Snircle quit (Quit: Textual IRC Client: www.textualapp.com) |
19:03:24 | dom96 | demi-: Easier interoperability with C libraries and I'm fairly sure it's more portable also. |
19:04:20 | federico3 | way more portable: Nim runs on ARM, mips, ppc, microcontrollers, the dishwasher |
19:05:10 | demi- | how is it more portable than what llvm can to by assembling a binary from it, or transpiling into C using llvm? |
19:05:46 | * | couven92 quit (Quit: Client disconnecting) |
19:06:28 | demi- | that is what i don't follow |
19:07:29 | * | cheatfate call to libman |
19:14:58 | cheatfate | demi-, its much better when developer has options to choose more, then just put all eggs on titanic like `llvm`. |
19:15:43 | federico3 | demi-: what's your question? |
19:16:50 | * | aedigix quit (Remote host closed the connection) |
19:17:20 | cheatfate | also last PR's for llvm backend shows to me biggest problem... it needs one more pass to get all preprocessored constants stored inside of header files before start to compile your nim program... |
19:17:25 | * | aedigix joined #nim |
19:18:16 | cheatfate | otherwise we need to have all constants already defined in stdlib |
19:19:12 | cheatfate | so we need to duplicate whole linux/bsd/macos/windows headers' constants to stdlib |
19:19:28 | cheatfate | with all crazy #defines |
19:21:14 | demi- | federico3: i don't think i understand the argument that what exists now is more portable than using llvm |
19:22:11 | * | yglukhov joined #nim |
19:25:36 | federico3 | demi-: Nim->C->clang->llvm or https://github.com/arnetheduck/nlvm ? |
19:26:47 | demi- | i'm asking how Nim->custom C code gen is more portable than Nim->llvm code gen |
19:29:05 | cheatfate | demi-, is llvm has official support for arduino's avr-atmel? |
19:30:14 | Araq | demi-: LLVM doesn't target every CPU arch under the sun, GCC does |
19:30:33 | demi- | cheatfate: possibly? https://github.com/avr-llvm/llvm |
19:30:52 | * | libman quit (Quit: Connection closed for inactivity) |
19:30:59 | demi- | Araq: sure, but why does it have to? it should be able to turn it into something that can |
19:31:34 | Araq | demi-: I don't understand this remark. |
19:32:28 | flyx | how can I suppress the 'CC: somefile.nim' output of nim c? |
19:32:41 | Araq | flyx: maybe --verbosity:0 |
19:32:42 | demi- | my understanding of the llvm system is that I can write code in C or objective-c and llvm should be able to be used to transpile it to any language it has support for, eg javascript and the resulting codegen it does for javascript while work |
19:33:09 | flyx | Araq: ah yes, that worked. I tried --hints:off --warnings:off |
19:33:42 | demi- | so my question was based in the premise of cutting out the need for the middle-man compiler by using llvm to transpile as well as generate asm for a compiled binary |
19:34:12 | * | NimBot joined #nim |
19:34:31 | demi- | so, to your point about not supporting every arch, yeah, but it doesn't have to have that support builtin if it can still transpile to C as it does now and give a compiler that does the ability to build that out |
19:34:32 | ehmry | if " cat string constants like ```Foo& Bar``` does that happen at compile time? |
19:34:49 | * | NimBot joined #nim |
19:35:34 | * | NimBot joined #nim |
19:35:36 | Araq | ehmry: yes |
19:35:49 | * | NimBot joined #nim |
19:35:55 | Araq | see? I knew it. the word doesn't even exist. |
19:36:06 | Araq | it's called "compiler" and "compile". |
19:36:29 | * | NimBot joined #nim |
19:36:52 | demi- | transpiler is a source-to-source compiler |
19:37:15 | Araq | then neither LLVM nor Nim are transpilers :P |
19:37:53 | cheatfate | demi-, then GCC is transpiler too |
19:37:54 | demi- | i would disagree, as you turn nim source into C then compile that, you aren't compiling nim code directly. |
19:38:28 | Araq | neither does GCC, it emits GNU assembler. |
19:39:16 | Araq | ah but assembler doesn't count because assemblers don't optimize (hmm they do) and assemblers do no deal with ascii text (hmm they do) |
19:40:01 | Araq | ah but assembler doesn't count because you are not supposed to look at that code. |
19:40:19 | Araq | well you know... ;-) neither is the generated C code for human beings. |
19:40:57 | dom96 | AFAIK transpiler means you are translating a high level language to another high level language |
19:41:08 | dom96 | TypeScript -> JavaScript |
19:41:08 | Araq | C is not a high level language. |
19:41:13 | dom96 | Indeed. |
19:41:27 | cheatfate | 20 years ago C was high level language |
19:41:32 | dom96 | Araq: I'm not disagreeing with you, Nim isn't a transpiler. |
19:41:49 | dom96 | Nim is still higher level than C. |
19:42:16 | flyx | C never was a high level language |
19:42:22 | dom96 | "A source-to-source compiler translates between programming languages that operate at approximately the same level of abstraction, while a traditional compiler translates from a higher level programming language to a lower level programming language." |
19:42:52 | flyx | it has almost no type checking, types are optional in a lot of places, and so on |
19:42:57 | Araq | dom96: I disagree with that definition. source-to-source means the output is actually for human beings. |
19:43:44 | dom96 | "Examples of transcompiled languages include Closure Compiler, Coccinelle, CoffeeScript, Dart, Haxe, Nim, TypeScript[4] and Emscripten." |
19:43:48 | dom96 | omg |
19:43:54 | dom96 | (From wikipedia) |
19:43:56 | Araq | you can compile C to Java and I wouldn't call it a "transpiler". |
19:44:05 | cheatfate | flyx, "High-level language" refers to the higher level of abstraction from machine language. Rather than dealing with registers, memory addresses and call stacks, high-level languages deal with variables, arrays, objects, complex arithmetic or boolean expressions, subroutines and functions, loops, threads, locks, and other abstract computer science concepts, with a focus on usability over optimal program efficiency. |
19:44:25 | cheatfate | flyx, so C is exactly `high` `level` `language` |
19:44:39 | dom96 | although Nim transpiles to JavaScript I suppose |
19:45:14 | cheatfate | flyx, The terms high-level and low-level are inherently relative. Some decades ago, the C language, and similar languages, were most often considered "high-level", as it supported concepts such as expression evaluation, parameterised recursive functions, and data types and structures, while assembly language was considered "low-level". |
19:45:38 | Araq | these definitions all don't make sense. c2nim is a transpiler, you have to mess with the resulting Nim code and often even edit it. |
19:45:40 | flyx | cheatfate: C deals with memory addresses. and registers. it even has a `register` keyword. |
19:46:23 | flyx | cheatfate: you can paste your personal definitions here, but they will not change my view on the subject |
19:46:50 | cheatfate | flyx, this is wikipedia |
19:46:55 | cheatfate | https://en.wikipedia.org/wiki/High-level_programming_language |
19:47:12 | flyx | yeah, wikipedia tends to be wrong on computer science definitions |
19:47:44 | flyx | but I don't see any reason for arguing further |
19:47:53 | dom96 | Cool. Somebody submitted my "Nim core developer" wanted thread to Hacker News. |
19:48:44 | demi- | Araq: ok, well, none of this debate was my intention at all, i merely wanted to know the merits of the current nim compiler vs llvm purely for direct compilation to an executable binary, not with regards to taking the intermediate C code and specifically compiling it for another platform |
19:49:09 | demi- | because based on the responses it seemed like there were but nobody gave direct details |
19:49:17 | * | Matthias247 joined #nim |
19:49:49 | Araq | demi-: sorry about the pointless debate. |
19:49:58 | Araq | but I still don't understand your question? |
19:50:20 | Araq | so you like to know if compiling to C buys us efficiency? |
19:50:52 | dom96 | Araq: I think the question boils down to "What advantages does compiling to C vs. LLVM bring?" |
19:50:58 | demi- | i completely understand and agree with it being portable, i was curious if there was anything else that tied the compiler to the current model |
19:52:23 | Araq | well, it's like the answer to c2nim's model. LLVM wasn't ready when work on Nim began. |
19:52:36 | * | Arrrr quit (Read error: Connection reset by peer) |
19:52:53 | Araq | in the meantime we figured we can also generate C++ code and hence have really good interop with C++ |
19:53:17 | Araq | which is something an LLVM based compiler would struggle much more with. |
19:54:15 | Araq | starting from scratch, would I do target C again? likely. |
19:54:43 | dom96 | Which makes me wonder, would anybody be interested in writing tutorials for Nim? One good tutorial might be "Wrapping C++ libraries in Nim" |
19:54:56 | dom96 | It would be a good thing to link to on the new website's feature list |
19:55:58 | demi- | dom96: i will likely write one about my experiences with nim soon, but for my own blog |
19:56:09 | dom96 | demi-: great :) |
19:56:55 | dom96 | Maybe we could hire a core documentor too? |
19:57:13 | Araq | cheatfate: btw new mangling rules have arrived, locals are not mangled if we can help it |
19:58:12 | cheatfate | Araq, thanks :) but is it possible to make mangling symbols less long? |
19:58:34 | cheatfate | mangled symbols |
19:59:40 | * | yglukhov quit (Remote host closed the connection) |
19:59:41 | federico3 | speaking of C, did anyone try to run Coverity on the C sources? |
20:01:14 | * | bjz joined #nim |
20:06:50 | subsetpark | Having intermediate C targets also means that calling Nim over a C FFI is relatively pleasant |
20:13:34 | * | yglukhov joined #nim |
20:15:21 | Araq | cheatfate: no and why does it matter anyway. |
20:15:41 | * | byte512 quit (Ping timeout: 255 seconds) |
20:15:45 | Araq | how hard is it to remove _HASH from the identifier |
20:16:44 | demi- | why not write a symbol demangler if it is that much of a pain? |
20:17:57 | * | yglukhov quit (Ping timeout: 260 seconds) |
20:20:16 | Araq | with --debugger:native the compiler produces .ndi files you can use to see the mappings |
20:20:32 | * | Jesin quit (Quit: Leaving) |
20:21:56 | * | libman joined #nim |
20:23:37 | * | Jesin joined #nim |
20:23:46 | libman | cheatfate: wat? |
20:25:15 | libman | I never advocated anything different from compiling to C. |
20:26:21 | * | carterza joined #nim |
20:34:38 | * | yglukhov joined #nim |
20:35:19 | * | carterza quit (Quit: carterza) |
20:39:18 | * | carterza joined #nim |
20:42:37 | * | UxerUospr joined #nim |
20:43:38 | carterza | time to switch out opengl for bgfx |
20:50:55 | * | oneau joined #nim |
21:01:47 | * | rauss quit (Quit: WeeChat 1.7) |
21:08:27 | * | bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
21:12:38 | * | ofelas quit (Quit: shutdown -h now) |
21:19:01 | * | xet7 joined #nim |
21:24:05 | * | Trustable quit (Remote host closed the connection) |
21:24:39 | * | yglukhov quit (Remote host closed the connection) |
21:28:41 | * | bjz joined #nim |
21:34:16 | * | yglukhov joined #nim |
21:34:47 | * | gokr joined #nim |
21:38:47 | * | shashlick quit (Ping timeout: 264 seconds) |
21:39:30 | * | yglukhov quit (Remote host closed the connection) |
21:40:02 | * | shashlick joined #nim |
21:41:56 | * | UxerUospr quit (Quit: Lost terminal) |
21:42:05 | * | yglukhov joined #nim |
21:44:36 | * | bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
21:46:27 | FromGitter | <raydf> Hello everyone |
21:46:51 | FromGitter | <raydf> is there any example of xmlparser usage? |
21:51:08 | dom96 | raydf: https://github.com/achesak/nim-rss/blob/master/rss.nim |
21:51:17 | dom96 | (Keep in mind that it doesn't follow Nim's style guide though) |
21:52:09 | dom96 | This sort of thing should be in our `example` directory. |
21:52:20 | FromGitter | <raydf> thanks @dom96, found also https://github.com/nim-lang/Nim/issues/5359 |
21:52:53 | * | dom96 can't tell if people need ideas on how to contribute to Nim or whether they just need more time to make their contributions |
21:52:55 | FromGitter | <raydf> np, i know there's a lot to do to get nim better. |
21:53:51 | dom96 | raydf: be sure to use the xmltree module as well, using only the parser is tedious. |
21:54:08 | FromGitter | <raydf> any example for xmltree? |
21:54:57 | FromGitter | <raydf> how to parse a string to xmltree? |
21:55:44 | dom96 | the link I posted uses xmltree |
21:56:03 | dom96 | hrm, I think the code there can be simplified |
21:56:17 | dom96 | surely 'xml.child("copyright").innerText' can be written as 'xml["copyright"].innerText' |
21:56:25 | gokr | Can this be interesting? https://github.com/vegansk/xmltools |
21:56:51 | FromGitter | <raydf> nice like the syntax |
21:57:02 | FromGitter | <raydf> is there any xpath compatibility or namespace handling? |
21:57:13 | FromGitter | <raydf> i'm trying to read a soap data |
21:57:23 | * | yglukhov quit (Remote host closed the connection) |
21:57:27 | gokr | And on Rosetta: https://www.rosettacode.org/wiki/XML/Input#Nim |
21:57:51 | * | gokr just googling here... gnite folks! |
21:58:30 | * | yglukhov joined #nim |
21:59:00 | * | Vladar quit (Quit: Leaving) |
21:59:44 | dom96 | I don't think there is any xpath support |
21:59:47 | dom96 | not sure about namespaces |
22:00:18 | FromGitter | <raydf> is this using a xml lib binding or pure nim? |
22:01:33 | * | yglukhov quit (Remote host closed the connection) |
22:01:50 | * | yglukhov joined #nim |
22:01:58 | * | gokr quit (Ping timeout: 240 seconds) |
22:02:01 | FromGitter | <raydf> nevermind, reading the code right now |
22:09:04 | * | yglukhov quit (Remote host closed the connection) |
22:09:26 | * | yglukhov joined #nim |
22:12:59 | FromGitter | <raydf> the httpclient lib is returning unhandled exception: SSL support is not available |
22:13:09 | * | yglukhov quit (Remote host closed the connection) |
22:14:05 | FromGitter | <raydf> where does one flag the compiling process in nimble for enabling ssl |
22:14:07 | FromGitter | <raydf> ? |
22:16:38 | enthus1ast | compile it with "nim c -d:ssl foo.nim" |
22:16:44 | cheatfate | https://nim-lang.org/docs/httpclient.html#ssl-tls-support |
22:16:57 | cheatfate | enthus1ast, i'm answered your question on forum |
22:17:54 | FromGitter | <raydf> @enthus1ast, thanks |
22:18:30 | enthus1ast | raydf you can also create a file like yourname.nim.cfg and write "-d:ssl" into it |
22:19:18 | FromGitter | <raydf> ok, in the nimble file i used --d:ssl and it works |
22:19:40 | enthus1ast | cheatfate: you basically create as seq |
22:19:55 | cheatfate | enthus1ast, yep and seq can hold any size of message |
22:20:08 | cheatfate | enthus1ast, i think it must work |
22:20:47 | enthus1ast | strangely i tried this as well (not exactly like you've done it) it ate it but i got incorrect results (always the same signature) |
22:21:01 | enthus1ast | ill try you code |
22:23:58 | cheatfate | it can be a problem with using array as argument |
22:24:29 | * | Snircle joined #nim |
22:24:36 | cheatfate | you need to check generated c code |
22:24:45 | cheatfate | is it passed as array, not as pointer |
22:28:03 | FromGitter | <barcharcraz> Native SSL on Windows would be rad |
22:28:53 | cheatfate | barcharcraz: nobody trusts windows ssl implementation except microsoft :) |
22:29:16 | FromGitter | <barcharcraz> True |
22:29:22 | * | PMunch joined #nim |
22:32:09 | enthus1ast | cheatfate: you code works |
22:32:16 | enthus1ast | ty very much |
22:33:28 | * | Snircle_ joined #nim |
22:37:36 | * | enthus1a1t joined #nim |
22:37:46 | dom96 | ooh yay, we're on the front page of HN https://news.ycombinator.com/item?id=13646372 |
22:37:57 | * | MightyJoe joined #nim |
22:42:50 | * | Snircle quit (*.net *.split) |
22:42:50 | * | MrAxilus[m] quit (*.net *.split) |
22:42:51 | * | EastByte quit (*.net *.split) |
22:42:51 | * | enthus1ast quit (*.net *.split) |
22:42:51 | * | cyraxjoe quit (*.net *.split) |
22:45:07 | * | enthus1a1t quit (Quit: Reconnecting) |
22:45:22 | * | enthus1ast joined #nim |
22:45:25 | * | Sentreen_ quit (Ping timeout: 268 seconds) |
22:45:33 | * | nsf quit (Quit: WeeChat 1.7) |
22:46:36 | * | pregressive quit (*.net *.split) |
22:46:36 | * | kunev quit (*.net *.split) |
22:46:36 | * | demi- quit (*.net *.split) |
22:46:36 | * | niv quit (*.net *.split) |
22:46:36 | * | bodie_ quit (*.net *.split) |
22:46:36 | * | FromGitter quit (*.net *.split) |
22:46:36 | * | ludocode quit (*.net *.split) |
22:46:36 | * | acidx quit (*.net *.split) |
22:46:36 | * | CcxWrk quit (*.net *.split) |
22:46:37 | * | shodan45 quit (*.net *.split) |
22:46:37 | * | flyx quit (*.net *.split) |
22:46:37 | * | beatmox quit (*.net *.split) |
22:46:37 | * | gsingh93 quit (*.net *.split) |
22:46:37 | * | MonsterAbyss quit (*.net *.split) |
22:46:37 | * | Amrykid quit (*.net *.split) |
22:46:50 | * | FromGitter joined #nim |
22:46:52 | * | acidx joined #nim |
22:46:53 | * | flyx joined #nim |
22:46:54 | * | shodan45 joined #nim |
22:46:57 | * | CcxWrk joined #nim |
22:46:58 | * | kunev joined #nim |
22:46:59 | * | ludocode joined #nim |
22:47:40 | carterza | nice! |
22:47:49 | * | gsingh93 joined #nim |
22:47:51 | * | bodie_ joined #nim |
22:50:53 | * | MrAxilus[m] joined #nim |
22:51:02 | * | pregressive joined #nim |
22:51:31 | * | pregressive quit (Remote host closed the connection) |
22:51:49 | * | pregressive joined #nim |
22:52:16 | * | EastByte joined #nim |
22:52:16 | * | niv joined #nim |
22:52:16 | * | demi- joined #nim |
22:52:16 | * | beatmox joined #nim |
22:52:16 | * | MonsterAbyss joined #nim |
22:52:16 | * | Amrykid joined #nim |
22:52:20 | * | pregressive quit (Remote host closed the connection) |
22:52:38 | * | pregressive joined #nim |
22:53:07 | * | pregressive quit (Remote host closed the connection) |
22:53:22 | * | pregressive joined #nim |
22:53:55 | * | pregressive quit (Remote host closed the connection) |
22:54:10 | * | pregressive joined #nim |
22:54:17 | * | PMunch quit (Quit: leaving) |
22:54:43 | * | pregressive quit (Remote host closed the connection) |
22:55:01 | * | pregressive joined #nim |
22:55:31 | * | pregressive quit (Remote host closed the connection) |
22:55:49 | * | pregressive joined #nim |
22:56:19 | * | pregressive quit (Remote host closed the connection) |
22:56:21 | libman | Yaaay! :D |
22:56:53 | * | pregressive joined #nim |
22:57:40 | FromGitter | <zacharycarter> hrm I need a image loading library |
22:57:50 | FromGitter | <zacharycarter> guess a stb_image wrapper is my best bet? |
22:58:03 | * | Sentreen_ joined #nim |
23:00:49 | * | pregressive quit (Ping timeout: 240 seconds) |
23:03:14 | * | dddddd joined #nim |
23:04:14 | FromGitter | <raydf> thanks @gokr for the xmltools lib info |
23:10:37 | dom96 | It's awesome seeing things like this: https://news.ycombinator.com/item?id=13648130 |
23:11:02 | dom96 | thanks for writing that subsetpark :) |
23:11:21 | dom96 | It makes me want a "Companies that use Nim" page on our website |
23:11:26 | subsetpark | :) |
23:15:58 | * | Jesin quit (Quit: Leaving) |
23:17:30 | * | Kingsquee joined #nim |
23:21:16 | dom96 | good night guys |
23:25:58 | * | oneau quit (Remote host closed the connection) |
23:28:48 | * | arnetheduck joined #nim |
23:30:52 | carterza | this is a nice way to embed shaders in a file - https://github.com/Glowny/Areenajabat/blob/bddd09235a4f677a81cbfe2de6f9766d70030de1/src/graphics/vs_texture.bin.h |
23:36:33 | * | Matthias247 quit (Read error: Connection reset by peer) |
23:40:16 | * | devted quit (Quit: Sleeping.) |
23:42:45 | FromGitter | <barcharcraz> can c2nim deal with pure virtual functions |
23:50:33 | * | ftsf joined #nim |
23:54:12 | carterza | not sure |
23:54:46 | * | Jesin joined #nim |
23:56:49 | * | xet7 quit (Quit: Leaving) |