00:01:57 | shashlick | ya getting vim to work in a sensible way takes a while of tweaking, besides getting used to the modal workflow in general |
00:11:27 | GitDisc | <ZarsBranchkin> Loved modal nature of vim, but felt too much friction when it came to modifying it or using it for bigger scale projects. So i found emacs and stuck with it |
00:38:35 | * | couven92 quit (Ping timeout: 240 seconds) |
00:41:18 | * | MJCaley joined #nim |
00:51:01 | * | couven92 joined #nim |
00:51:09 | * | couven92 quit (Client Quit) |
00:56:41 | * | smt` quit (Ping timeout: 256 seconds) |
01:08:48 | * | MJCaley quit (Quit: MJCaley) |
01:11:47 | * | user11101 quit (Quit: user11101) |
01:13:25 | * | user11101 joined #nim |
01:22:01 | * | MJCaley joined #nim |
01:28:39 | * | fredrik92 quit (Ping timeout: 260 seconds) |
01:46:53 | libman_ | Improved cellular latency and mosh is giving me new appreciation for working directly on the server with vim. This is especially beneficial for Nim due to compile time. |
01:47:17 | FromGitter | <Varriount> Mosh? |
01:47:50 | libman_ | https://mosh.org |
01:49:36 | libman_ | So I can jump on any computer (Windows library computer, Android tablet, etc) and securely access my full development environment in 10 seconds. |
01:50:15 | SitiSchu | How would I go about denoting multiple types in a table ? pseudocode: newTable[string, Union[string, bool]]() |
02:03:01 | * | S1tiSchu joined #nim |
02:05:05 | * | SenasOzys quit (Ping timeout: 240 seconds) |
02:06:58 | * | SitiSchu quit (Ping timeout: 264 seconds) |
02:07:32 | * | user11101 quit (Quit: user11101) |
02:07:45 | * | user11101 joined #nim |
02:08:16 | * | S1tiSchu is now known as SitiSchu |
02:12:41 | * | fredrik92 joined #nim |
02:13:57 | * | vlad1777d quit (Ping timeout: 256 seconds) |
02:28:54 | * | MJCaley quit (Quit: MJCaley) |
02:51:43 | GitDisc | <treeform> SitiSchu, I would question you need to do that. |
02:52:04 | GitDisc | <treeform> But you can use case type for this. |
02:53:21 | SitiSchu | treeform, maybe I'm doing it wrong...I'm creating something that parses CLI arguments...and so an argument can have a value (--long=val) or no value (--long) so in the first case it would be a string and in the second case a bool..would there be a better way to do this ? |
02:53:31 | SitiSchu | I'll look into the case type, thanks |
02:54:30 | GitDisc | <treeform> could you use the built in one? |
02:54:33 | GitDisc | <treeform> https://nim-lang.org/docs/parseopt2.html |
02:55:23 | GitDisc | <treeform> https://github.com/nim-lang/Nim/blob/master/lib/pure/json.nim#L607 |
02:55:28 | GitDisc | <treeform> here is how you would use a case type |
02:55:31 | GitDisc | <treeform> JsonNode uses it |
02:56:50 | SitiSchu | I looked at the different parsers and I didnt like something about parseopt, not sure what it was since that was a while ago (could be the way it does short arguments with values) |
03:11:55 | * | user11101 quit (Remote host closed the connection) |
03:13:34 | * | user11101 joined #nim |
03:44:29 | * | Senketsu quit (Read error: Connection reset by peer) |
03:45:54 | * | Senketsu joined #nim |
03:51:35 | * | dddddd quit (Remote host closed the connection) |
03:57:29 | * | endragor joined #nim |
04:00:46 | * | user11101 quit (Quit: user11101) |
04:01:00 | * | user11101 joined #nim |
04:30:57 | * | fredrik92 quit (Ping timeout: 248 seconds) |
04:36:02 | * | rockcavera joined #nim |
04:50:46 | FromGitter | <2vg> parseopt2 is deprecatedsince 0.18.0 , so you had better use parseopt :) |
05:01:43 | * | Snircle quit (Quit: Textual IRC Client: www.textualapp.com) |
05:47:25 | * | Vladar joined #nim |
06:12:13 | FromGitter | <gogolxdong> How to use nim extension in vscode for multiuser? |
06:14:40 | FromGitter | <gogolxdong> I have installed them separately for different users. |
06:15:00 | * | nsf joined #nim |
06:27:03 | * | ketralni` joined #nim |
06:27:41 | * | xkapastel_ joined #nim |
06:28:43 | * | user11101_ joined #nim |
06:30:24 | * | enthus1ast joined #nim |
06:32:43 | FromGitter | <gogolxdong> It hints the syntax ,automatically format but no jump to definition and auto-completion. |
06:34:45 | * | user11101 quit (*.net *.split) |
06:34:45 | * | xkapastel quit (*.net *.split) |
06:34:45 | * | ketralnis quit (*.net *.split) |
06:34:45 | * | Syneh__ quit (*.net *.split) |
06:34:45 | * | Tanger quit (*.net *.split) |
06:34:45 | * | planetis[m] quit (*.net *.split) |
06:34:45 | * | byteflame quit (*.net *.split) |
06:34:46 | * | enthus1a1t quit (*.net *.split) |
06:34:46 | * | mwbrown quit (*.net *.split) |
06:34:47 | * | xkapastel_ is now known as xkapastel |
06:35:00 | * | mwbrown joined #nim |
06:35:20 | * | SenasOzys joined #nim |
06:38:49 | FromGitter | <gogolxdong> go extension works well. |
06:41:06 | * | byteflame joined #nim |
06:41:10 | * | planetis[m] joined #nim |
06:41:11 | * | Tanger joined #nim |
06:43:13 | * | Syneh__ joined #nim |
06:52:31 | * | r3d9u11 joined #nim |
07:33:21 | * | gokr joined #nim |
07:41:43 | * | xkapastel quit (Quit: Connection closed for inactivity) |
07:49:31 | * | rokups joined #nim |
07:54:47 | * | livcd joined #nim |
07:56:55 | * | xet7 joined #nim |
07:57:16 | * | couven92 joined #nim |
07:59:29 | FromGitter | <narimiran> @gogolxdong yeah, some things are missing from the nim vscode extension, and it is not on the same level as extensions for some other languages.... |
08:01:01 | FromGitter | <gogolxdong> using en_US.UTF-8 locale for multiuser, what should I do? |
08:04:17 | * | xet7 quit (Ping timeout: 248 seconds) |
08:08:54 | * | jaco60 joined #nim |
08:16:07 | * | xet7 joined #nim |
08:43:12 | * | SenasOzys quit (Read error: Connection reset by peer) |
08:43:27 | * | SenasOzys joined #nim |
08:44:11 | * | floppydh joined #nim |
09:02:04 | * | yglukhov joined #nim |
09:04:46 | * | PMunch joined #nim |
09:06:16 | * | yglukhov quit (Read error: Connection reset by peer) |
09:06:48 | * | yglukhov joined #nim |
09:30:44 | * | SenasOzys quit (Ping timeout: 255 seconds) |
09:36:30 | * | yglukhov quit (Remote host closed the connection) |
09:38:43 | * | sendell joined #nim |
09:38:44 | * | r3d9u11 quit (Read error: Connection reset by peer) |
09:39:38 | * | yglukhov joined #nim |
09:48:16 | FromGitter | <mratsim> @Araq was there an issue or commit following this forum bug report?: https://forum.nim-lang.org/t/3619 |
09:55:01 | * | r3d9u11 joined #nim |
10:12:31 | * | SenasOzys joined #nim |
11:04:58 | * | Temperance[m] is now known as Abnegation |
11:30:24 | user11101_ | Does gintro have a documentation page? |
11:37:20 | * | vlad1777d joined #nim |
11:38:36 | * | Snircle joined #nim |
11:42:38 | * | dddddd joined #nim |
11:43:33 | * | gokr quit (Ping timeout: 264 seconds) |
11:43:57 | PMunch | user11101_, not more than what's in the README I think: https://github.com/StefanSalewski/gintro |
11:46:22 | PMunch | If you're just looking to create Gtk3 GUIs more easily though I would suggest https://github.com/PMunch/gtk3genui |
11:53:02 | * | salewski joined #nim |
11:53:39 | salewski | user, what do you expect? |
11:54:01 | salewski | When you know GTK3, it is easy to use gintro. |
11:54:23 | salewski | If you do know nothing about GTK3, it is very hard. |
11:54:53 | salewski | And I can not write a full GTK3 book. |
11:55:44 | salewski | A gintro doc page would somehow copy and reformat the C docs. |
11:56:03 | PMunch | cdoc2nimdoc |
11:56:22 | salewski | Some bindings for other languages do that -- I regard that not as very helpfull. |
11:58:09 | * | gokr joined #nim |
11:58:56 | PMunch | It's always a bit awkward to read documentation for one language and use it in another though. But rewriting everything isn't a very good alternative.. |
11:59:50 | FromGitter | <survivorm> best has switchable examples for any language lib is applyable |
12:00:12 | FromGitter | <survivorm> like example in c/python/lua |
12:00:45 | FromGitter | <survivorm> But you need to be in close touch with docs mainteiner to do that |
12:08:59 | * | salewski quit (Quit: WeeChat 1.9.1) |
12:11:12 | r3d9u11 | Hey! |
12:11:18 | * | Chiel joined #nim |
12:11:23 | r3d9u11 | I have a little question: Is it possible to use AsyncSocket to parallel reading and writing data? |
12:13:18 | * | SenasOzys quit (Remote host closed the connection) |
12:13:30 | * | SenasOzys joined #nim |
12:14:13 | r3d9u11 | something like a: thread 1 will create socket, thread 2 wait for incoming data, thread 3 wait for data to send |
12:14:46 | Chiel | Hello. I am trying to understand what happens under the hood using async code. I noticed that this code causes a 100% cpu busy loop, although I'd expect a poll() system call: |
12:14:49 | Chiel | waitFor sleepAsync(5000) |
12:15:18 | Chiel | What is my error? |
12:23:54 | * | Vladar quit (Quit: Leaving) |
12:27:45 | r3d9u11 | gmm, checked this line of code. Works fine for me. 0.17.2, Linux Mint 18.3 |
12:33:58 | * | vlad1777d quit (Ping timeout: 264 seconds) |
12:37:22 | user11101_ | salewki. Hmm, I'm guessing you haven't kept the names from the original gtk+ API. If someone knows gtk, or trying to cross-read/match devhelp with your API, it doesn't probably help. On top of that the gtk/C-idiom is pretty different than Nim idom. But hey, I understand the pain of documenting massive APIs. |
12:38:24 | PMunch | r3d9u11, having a lock around the socket and just passing it to both threads should work |
12:42:34 | * | athenot joined #nim |
12:42:41 | r3d9u11 | PMunch, thx for notice, yes, it works. But if i tried to send data from stdin from thread 2, than socket.recvLine() don't receive data in thread 3 O_o |
12:43:56 | r3d9u11 | PMunch, for example it works fine: https://pastebin.com/QNLfdv5E |
12:46:20 | r3d9u11 | PMunch, but here https://pastebin.com/HNyXxvKz function readServer doesn't receive any data |
12:54:37 | PMunch | Probably because you are busy-loop sending the message |
12:54:45 | PMunch | So it never get's time to receive anything |
12:56:08 | r3d9u11 | ok, problem was solved. just needed pause before data sending https://forum.nim-lang.org/t/3634/1#22659 |
12:58:24 | r3d9u11 | no, I have a to separated threads for data seding and data receiving. problem solved via pause, but I don't understand why. Little bit strange behavior of async/await or of AsyncSocket |
12:58:30 | r3d9u11 | *have a two |
13:01:05 | * | salewski joined #nim |
13:01:31 | salewski | user11101_, the gintro proc names are straight forward. |
13:02:29 | salewski | It is generall ywithout the gtk prefix, and Nim's for newButton() intead gtk_button_new(). |
13:03:06 | salewski | When we have a C example, we generally can convert it to Nim easily. |
13:03:58 | salewski | GTK3 with gintro is for example much easier than it was with Ruby. |
13:04:44 | salewski | One advantage is, that we have C original fonction names in the Nim modules. |
13:05:11 | salewski | So if we can not guess the Nim proc name, a grep helps us. |
13:06:07 | salewski | And Nim modules are not mud mixed, so all that belongs to each other is at the same location. |
13:07:19 | salewski | The main problem of gintro is, that there is a few percent of GTK stuff that is not yet well converted to Nim. |
13:08:33 | salewski | For example C functions with cStringArrays or GLists. Automatic conversion is not that easy. |
13:09:02 | salewski | Have to go now, bye. |
13:09:09 | * | salewski quit (Quit: WeeChat 1.9.1) |
13:09:44 | Abnegation | Well, I liked several features of nim but I think I'll pass for now, and wait perhaps for a 1.0 version, to see where it went and what you did with it, and how the project and community looks at that stage. |
13:09:45 | Abnegation | Thanks for the help everybody, sorry for being annoying for some days. |
13:10:21 | PMunch | Abnegation, sorry to hear you go. And don't worry about being annoying :P |
13:10:55 | PMunch | Nim is pretty stable for a language that hasn't hit 1.0 though, and it would be interesting to hear what you feel you are missing |
13:12:57 | Abnegation | well, it will sound cliche but it more of a "it's not you, it's me" issue. I have tested it for some days, read the documentation, seen some tests. It looks powerful and interesting. |
13:14:07 | Abnegation | However, the level of friction it supposes for me, given how many things have different names (at least from where I'm coming from) is too high for me to risk giving this heavy use. I'm beginning to be a little bit old to be learning new names, and well, we're far far away from an 1.0 |
13:15:04 | FromGitter | <survivorm> By what standard are we far from 1.0? |
13:16:09 | FromGitter | <survivorm> That's a little confusing. Most opinions defer than speaking about 1.0 language kit. |
13:16:45 | FromGitter | <survivorm> But I think most people care about stability |
13:16:53 | Abnegation | well, I don't know, now that you say it I don't know how far away 0.18 means. |
13:17:13 | FromGitter | <survivorm> Stable work, stable API - yes, already |
13:17:35 | FromGitter | <survivorm> Well, in most cases, AFAIK |
13:18:10 | FromGitter | <survivorm> It may be extended - well, yes, but it would be back-compatible |
13:18:53 | FromGitter | <survivorm> You even have repository with infor on packages ststing if they pass automatic build :) |
13:19:06 | FromGitter | <survivorm> Do many languages can boast it? |
13:19:12 | PMunch | Abnegation, interesting. What languages are you coming from? |
13:19:41 | Abnegation | C-like c++ |
13:20:04 | Abnegation | I'm not saying that by no means NIM is bad, or wrong. |
13:20:09 | jaco60 | For the public, a version number of 0.99 would be less far far away from a distant 1.0 Galaxy than a 0.18... |
13:20:11 | FromGitter | <survivorm> Well, yeah. Nim is supposed to be higher level |
13:21:09 | FromGitter | <survivorm> But comparing to python (which I come from) - learning nim is smooth |
13:21:33 | FromGitter | <survivorm> but tastes differ, of cause |
13:22:06 | FromGitter | <survivorm> and language preferances doesn't make you better (or opposite) person |
13:22:35 | * | SenasOzys quit (Ping timeout: 240 seconds) |
13:23:27 | PMunch | Abnegation, hmm. I came from mostly C (but with a mix of many different kinds) and I found Nim fairly easy to learn |
13:23:37 | * | Chiel quit (Quit: Lost terminal) |
13:23:40 | PMunch | Might've been my work with Python though |
13:25:06 | PMunch | But knowing C makes many of the things going on in Nim make more sense than from someone who only knows Python I think |
13:35:27 | * | endragor quit (Remote host closed the connection) |
13:39:11 | Abnegation | I worked with python too. In fact my initial objective was to replace python with nim. |
13:39:38 | Abnegation | that might end up happening anyway. I'm a little bit tired of python. |
13:42:11 | PMunch | Oh really? Hmm, strange that you didn't find Nim to your liking then |
13:43:46 | Abnegation | I like it, the problem wasn't that I didn't like it. |
13:45:05 | PMunch | Oh right, the friction of learning it, or taking it into use |
13:45:44 | Abnegation | It's more of a "how many months of learning this would I need to code the same kind of stuff I need to code but faster". |
13:46:13 | Abnegation | For many tasks It's actually faster for me to write something in C rather than in python. |
13:46:31 | Abnegation | Even in tasks were I don't need performance. |
13:47:35 | PMunch | Ah right, the classic return on investment issue |
13:49:33 | * | gokr quit (Ping timeout: 264 seconds) |
13:51:40 | FromGitter | <Lite5h4dow> i keep getting unknown IO Error on windows, anyone know the fix? |
13:51:43 | Abnegation | It's kinda sad because I kinda liked a lot what I saw. I'll definetely try again to on my next vacations to fiddle a little bit more with the language. |
13:52:16 | Abnegation | I got several like those, don't know what they were, but If I recompiled sometimes they went away. |
13:53:03 | FromGitter | <Lite5h4dow> yeah |
13:53:08 | FromGitter | <Lite5h4dow> but i get them often |
13:53:14 | FromGitter | <Lite5h4dow> sometimes i cant compile |
13:53:21 | FromGitter | <Lite5h4dow> i have to try like 30 times to compile once |
13:55:12 | Abnegation | for me was 4 or five times, but my little test project was smaller. |
13:55:16 | Abnegation | probably |
13:55:57 | FromGitter | <Lite5h4dow> im just trying to compile the nimx example code, but that wont even work when it does compile xDDD |
13:56:03 | FromGitter | <Lite5h4dow> says its missing a dll |
13:56:12 | FromGitter | <Lite5h4dow> -_- |
13:57:20 | * | xkapastel joined #nim |
13:57:25 | PMunch | https://github.com/nim-lang/Nim/issues/7111 |
13:57:45 | PMunch | Lite5h4dow, is it this? |
13:58:34 | dom96 | Abnegation: That's a shame. Maybe I missed you here, but I haven't seen you say anything apart from that you're leaving Nim |
13:59:08 | * | endragor joined #nim |
13:59:14 | dom96 | Can you elaborate on what you think we could focus on to bring you back or even better make you stay? :) |
13:59:21 | Abnegation | Changed username, I was Temperance. |
13:59:27 | Abnegation | I was only asking questions for a week. |
13:59:36 | dom96 | Ahh, that makes more sense |
13:59:42 | PMunch | Oh, you're Temperance |
13:59:46 | PMunch | Sad to see you leave :( |
13:59:58 | Abnegation | I'll probably come back in some months, It's not nim's fault as I said. |
14:00:12 | FromGitter | <krux02> and you do not have the [] postfix |
14:00:15 | PMunch | Looking forward to have you back then if you return :) |
14:00:18 | FromGitter | <Lite5h4dow> @pmunch, Yup |
14:00:19 | FromGitter | <krux02> are you now on irc directly¿ |
14:00:58 | Abnegation | if you change your name the matrix interface removes the [] |
14:01:00 | Abnegation | I think |
14:01:22 | Abnegation | I had to change names since Temperance was already registered, and I needed to enter some register only channels |
14:01:40 | FromGitter | <krux02> ok |
14:01:43 | * | luck_luc joined #nim |
14:01:51 | FromGitter | <krux02> can I link to a name that I already own? |
14:02:54 | FromGitter | <Lite5h4dow> but it prints the same error |
14:03:35 | * | endragor quit (Ping timeout: 240 seconds) |
14:03:40 | Abnegation | yes, you can |
14:04:14 | PMunch | Lite5h4dow, what error? |
14:04:43 | FromGitter | <Lite5h4dow> `HError: unhandled exception: Unknown IO Error [IOError]` |
14:06:21 | PMunch | How are you compiling? |
14:06:37 | PMunch | Through VSCode or in a terminal |
14:08:50 | FromGitter | <Lite5h4dow> powershell terminal |
14:11:18 | PMunch | Hmm |
14:11:29 | PMunch | Maybe comment on that issue? |
14:12:37 | FromGitter | <Lite5h4dow> what do you mean? |
14:13:27 | Abnegation | he means to talk about your problem on the related issue on the github page |
14:13:29 | Abnegation | I think |
14:13:41 | PMunch | Yeah |
14:14:00 | PMunch | I'm not on Windows so it's a bit hard for me to figure out what's wrong :P |
14:15:26 | * | athenot quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
14:20:59 | * | pydsigner quit (Ping timeout: 255 seconds) |
14:21:10 | * | pydsigner joined #nim |
14:22:50 | FromGitter | <Lite5h4dow> oh ok :D |
14:25:11 | * | athenot joined #nim |
14:25:49 | * | SenasOzys joined #nim |
14:34:04 | FromGitter | <Jalbo> I8 |
14:42:39 | user11101_ | I'll never leave Nim :D If I get good at it maybe I'll do something with Nim <-> Qt -> cpp |
14:43:08 | * | gokr joined #nim |
14:44:58 | FromGitter | <Lite5h4dow> idk |
14:45:08 | FromGitter | <Lite5h4dow> nim is great but it feels unfinished |
14:45:32 | * | luck_luc quit (Remote host closed the connection) |
14:45:41 | dom96 | how so? |
14:46:36 | FromGitter | <Lite5h4dow> there are multiple different UI libraries, and Nim still doesnt have an official one |
14:46:43 | FromGitter | <Lite5h4dow> there are bugs everywhere |
14:47:13 | FromGitter | <zacharycarter> what language has an official UI library? besides maybe Java? and we all know how swing worked out... |
14:47:33 | FromGitter | <Lite5h4dow> Java, python and the others us Qt bindings |
14:47:44 | FromGitter | <zacharycarter> that hardly makes Qt an official UI library |
14:47:47 | FromGitter | <Lite5h4dow> and they have UI Builders |
14:48:01 | FromGitter | <zacharycarter> every language has bugs in it |
14:48:22 | FromGitter | <Lite5h4dow> true, but lets just take my most reent example |
14:48:32 | FromGitter | <Lite5h4dow> i cant even compile my code |
14:48:49 | Abnegation | I know its unrelated, but imgui and the likes are excellent for building UI's that are both fast and easy to implement. |
14:49:01 | FromGitter | <mratsim> Java and Python are over 20 years old. Similar language to Nim: Rust, D, Crystal do not have an UI library either |
14:49:30 | Abnegation | I tried the Nuklear-Nim and it looked quite nice. |
14:49:34 | FromGitter | <zacharycarter> Abnegation: we already have bindings to both imgui and nuklear I believe |
14:50:06 | FromGitter | <Lite5h4dow> i love how Nuklear looks, i just dont understand it yet |
14:50:08 | FromGitter | <zacharycarter> well... I've used imgui with bgfx - not sure any bindings exist for it solely |
14:50:24 | FromGitter | <zacharycarter> keep in mind - imgui and nuklear are immediate, not retained mode, GUI solution |
14:50:29 | FromGitter | <zacharycarter> Qt is a retained mode GUI solution |
14:50:53 | FromGitter | <Lite5h4dow> i know |
14:51:05 | FromGitter | <Lite5h4dow> but nuklear is fap worthy levels of pretty |
14:51:15 | FromGitter | <zacharycarter> if you skin it |
14:52:00 | Abnegation | after trying immediate guis I've not been able to even contemplate retained mode ones. |
14:52:51 | FromGitter | <zacharycarter> when your application / gui gets complex, retained mode solutions tend to shine |
14:54:22 | user11101_ | Isn't libui Nim's official UI library? |
14:56:11 | FromGitter | <zacharycarter> I don't think that a language having an official UI library is a good idea |
14:56:45 | FromGitter | <HonzsSedlomn> Well, Python has it |
14:56:54 | FromGitter | <Lite5h4dow> i dont think it is |
14:57:18 | FromGitter | <Lite5h4dow> but having a ui library woul help alot of newcommers out |
14:57:19 | FromGitter | <zacharycarter> Just because a language has done it in the past - doesn't mean it's a good idea in the future for language design |
14:57:32 | FromGitter | <zacharycarter> there are already several UI libraries newcomers can use |
14:57:34 | FromGitter | <Lite5h4dow> i think thats why python and java both did so well among noobs |
14:57:42 | FromGitter | <survivorm> Same. Which is the Python's "oficcial" library, and where's a statement on it? |
14:57:58 | FromGitter | <Lite5h4dow> well, im just going off my experience |
14:58:14 | FromGitter | <Lite5h4dow> but going though all these ui libraries to find the right one has been a pain |
14:58:23 | FromGitter | <HonzsSedlomn> Tkinter is Python's official library, isn't it? |
14:58:24 | FromGitter | <Lite5h4dow> because i dont know what all of them can and cant do |
14:58:33 | FromGitter | <Lite5h4dow> yeah @HonzsSedlomn |
14:58:40 | jaco60 | I don't know if its "official" but Python is distributed with TkInter, yes |
14:58:55 | FromGitter | <Lite5h4dow> it is the official one for python |
14:58:59 | jaco60 | The Idle tool is written with TkInter |
14:59:02 | FromGitter | <survivorm> @HonzsSedlomn is it? |
14:59:06 | FromGitter | <Lite5h4dow> yh |
14:59:14 | FromGitter | <mratsim> tkinter is super broken? |
14:59:22 | FromGitter | <Lite5h4dow> no, its just limited |
14:59:23 | FromGitter | <survivorm> ok, time to go |
14:59:26 | FromGitter | <HonzsSedlomn> @survivorm I'm not sure |
14:59:27 | jaco60 | it is super awful, too :) |
14:59:27 | FromGitter | <survivorm> bye all |
14:59:45 | FromGitter | <HonzsSedlomn> Unless u use Tkinter styles :) |
14:59:56 | FromGitter | <mratsim> I remember the times building tkinter and python mega widgets, not fun times ... |
15:00:10 | jaco60 | pyqt is so simple... |
15:00:24 | FromGitter | <Lite5h4dow> @jaco are you ok? |
15:01:01 | jaco60 | what ? |
15:02:36 | FromGitter | <Lite5h4dow> i couldnt get my head round pyqt |
15:04:12 | jaco60 | I use it only for little apps so, yes, pyqt is enough for me and, with the help of QtDesigner and pyuic, it's all good |
15:05:20 | FromGitter | <HonzsSedlomn> I don't think that framework, which is being developed for 20 years is easy |
15:05:45 | FromGitter | <Lite5h4dow> yh |
15:07:52 | * | sendell quit (Remote host closed the connection) |
15:08:56 | rokups | whats so complicated about pyqt? |
15:09:53 | FromGitter | <HonzsSedlomn> Basic things can be easy, but it's a huge framework. |
15:13:09 | FromGitter | <Lite5h4dow> idk how to use it |
15:18:10 | rokups | so the problem is not in pyqt |
15:20:36 | * | qleda joined #nim |
15:30:15 | * | floppydh quit (Remote host closed the connection) |
15:31:08 | * | floppydh joined #nim |
15:36:12 | * | sendell joined #nim |
15:37:39 | * | r3d9u11 quit (Remote host closed the connection) |
15:39:06 | FromGitter | <krux02> I just read something about the data section in a binary and that you can link arbitrary data to it. https://balau82.wordpress.com/2012/02/19/linking-a-binary-blob-with-gcc/ |
15:39:20 | FromGitter | <krux02> is there a nim equivalent that also works on windows? |
15:40:10 | FromGitter | <krux02> I would guess that there isn't. |
15:43:56 | * | nsf quit (Quit: WeeChat 2.0.1) |
15:50:10 | qleda | I have a C library that I'm trying to wrap with Nim, and have some questions: |
15:50:42 | shashlick | sure |
15:50:58 | shashlick | interesting conversations today so far |
15:51:08 | qleda | 1. What are the advantages/disadvantages of using a shared library vs c2nim on the headers? This is a small library that I don't expect to be installed on the user's system, so I'm guessing c2nim is preferable |
15:53:00 | qleda | 2. I got it to work nicely with the shared library, but I'm having trouble with c2nim. I get a lot of "implementation expected" errors in imports, and I can't figure out the best way to use C source files without headers. |
15:53:03 | FromGitter | <mratsim> @qleda, is it a header only library? |
15:53:23 | shashlick | personally I prefer compiling in the code into the binary if it isn't too big |
15:53:36 | shashlick | and it's feasible |
15:53:50 | FromGitter | <brentp> is it possible to have a sig like this: ` proc tag*T: string|int|float64 (r:Record, tag:string): Option[T] = ... ` ? |
15:54:04 | shashlick | some libs are very complex and require elaborate cmake/make and are better off shared/dynamically loaded |
15:54:19 | shashlick | which lib are you wrapping |
15:54:31 | FromGitter | <mratsim> @brentp you will have issue because both your proc and your variable are called tag I think |
15:54:37 | qleda | @shashlick: it's really small and definitely feasible, @mratsim it's just 4 C source files and 3 header files |
15:55:13 | FromGitter | <mratsim> @qleda, use c2nim on the header but only for the interface |
15:55:21 | qleda | shashlick: libBigWig, https://github.com/dpryan79/libBigWig |
15:55:22 | FromGitter | <mratsim> specify the dynlib to use |
15:56:14 | FromGitter | <mratsim> this should be very easy to wrap |
15:56:28 | FromGitter | <brentp> @mratsim I renamed the variable, but when I use `var v = rec.tagint ("SM") `, I get: `auxtest.nim(31, 18) Error: type mismatch: got (Record) ⏎ but expected one of: ⏎ proc tagT: string | int | float64 (r: Record; itag: string): Option[T] ⏎ ` [https://gitter.im/nim-lang/Nim?at=5aa6a32c458cbde557265fdf] |
15:56:50 | Yardanico | qleda, you can just compile C files into your nim project |
15:56:51 | shashlick | i've written nimgen to make it easier to wrap libs with c2nim, let me see if it's easy to do this |
15:57:01 | FromGitter | <brentp> @qleda, you wrapping libBigWig? That would be great! |
15:57:09 | FromGitter | <mratsim> @brentp: `var v = rec.tagint (rec, "SM”)` |
15:57:49 | FromGitter | <brentp> @mratsim, same error |
15:57:49 | qleda | @mratsim I already managed to get it to work with the dynamic library, did exactly that, I'm only having trouble with the c2nim/nimgen option of compiling it in. Thanks though |
15:57:58 | FromGitter | <mratsim> @shashlick, lovely work on Nimgen, I think it’s even easier to wrap that with nimgen as it needs the gcc preprocesor for some define |
15:58:17 | qleda | @brentp oh hey! I was looking at your Go wrapper for libBigWig earlier |
15:58:19 | FromGitter | <mratsim> @brentp sorry var v = tagint (rec, "SM") |
15:58:34 | shashlick | thanks @mratsim |
15:58:46 | shashlick | qleda: am trying this out, give me a few minutes |
15:58:47 | FromGitter | <mratsim> don’t use method call syntax with generics |
15:58:52 | qleda | Yardanico, how would I go about doing that? |
15:59:33 | FromGitter | <mratsim> {.compile: “bwRead.c.} and then just use importc with proc of the same name |
15:59:35 | qleda | shashlick: awesome, thanks! I played around with nimgen but seemed a bit intimidating to start with, seems like it would be nice for automating c2nim once it works |
15:59:39 | FromGitter | <brentp> @qleda, also check out: https://github.com/brentp/hts-nim/ |
15:59:54 | FromGitter | <mratsim> {.compile: “bwRead.c”.} sorry |
16:01:22 | qleda | @brentp wow this is really nice, thanks for the heads up! |
16:01:29 | shashlick | @mratsim: we don't need the other .c files compiled in? |
16:01:46 | FromGitter | <mratsim> that’s just one example ;) |
16:02:33 | shashlick | :) |
16:05:16 | FromGitter | <brentp> @qleda, would love to get more contributors. :) |
16:05:52 | FromGitter | <brentp> @mratsim , thanks, that gets me further. is there a way to switch on the type, e.g. given T:string|int|float, how to determine the type inside. |
16:06:20 | shashlick | qleda: what OS/compiler |
16:09:53 | qleda | shashlick: Nim Compiler Version 0.18.0 [Linux: amd64] |
16:10:52 | shashlick | okay so gcc |
16:12:25 | qleda | yup, and I can build the library just fine with make |
16:24:00 | shashlick | qleda: is it common to need curl support? |
16:24:42 | qleda | no, you can get rid of that (been removing it, but I tried using the libcurl wrapper too) |
16:25:18 | * | couven92 quit (Quit: Client disconnecting) |
16:26:29 | FromGitter | <krux02> @brentp generally in a generic you can check on a type with `when T is MyType: ...` |
16:31:15 | * | MJCaley joined #nim |
16:35:25 | shashlick | c2nim converts "void var" into var = nil but nim doesn't like that - any ideas? |
16:37:30 | * | user11101_ quit (Remote host closed the connection) |
16:37:45 | * | jxy quit (Quit: leaving) |
16:37:53 | * | user11101 joined #nim |
16:38:25 | shashlick | ok, it should do var = void in the type declaration, will submit a bug |
16:41:10 | * | jxy joined #nim |
16:43:31 | FromGitter | <brentp> @krux02 perfect. thanks. |
16:50:58 | * | douglascorrea quit (Quit: Textual IRC Client: www.textualapp.com) |
16:52:13 | * | Trustable joined #nim |
16:59:27 | * | gokr quit (Ping timeout: 240 seconds) |
17:05:36 | * | sendell quit (Remote host closed the connection) |
17:06:20 | * | PMunch quit (Quit: Leaving) |
17:13:23 | FromGitter | <mratsim> Why are people using NIM in uppercase? This is so bugging me: https://github.com/mjfh/nim-crypto |
17:17:49 | FromGitter | <ZarsBranchkin> haha, this reminds of whole Lua vs LUA thing |
17:18:49 | * | c0ntribut0r joined #nim |
17:18:59 | FromGitter | <HonzsSedlomn> Guys? I wanna contribute to nim community with some small packacge, do u have any idea? |
17:19:26 | c0ntribut0r | Hi, there's list of required nm packages somewhere |
17:19:26 | FromGitter | <ZarsBranchkin> I think there was a whole repository of packages that Nim should get |
17:19:45 | FromGitter | <ZarsBranchkin> https://github.com/nim-lang/needed-libraries |
17:20:03 | FromGitter | <HonzsSedlomn> Oh, thanks! |
17:30:33 | Yardanico | But really you can do anything you want |
17:30:43 | Yardanico | it will be surely useful for someone in the future ;) |
17:39:25 | FromGitter | <tim-st> is there a nim sorting lib that can sort unicode like https://ssl.icu-project.org/icu-bin/collation.html ? |
18:02:38 | * | jjido joined #nim |
18:03:00 | * | Vladar joined #nim |
18:03:32 | jjido | Looks like the Genode project likes nim? |
18:04:09 | ehmry | jjido: yea, but so far I'm really the only one using it |
18:04:38 | ehmry | for now |
18:06:31 | jjido | You work on Genode? How is the full OS project going ? |
18:06:56 | * | nsf joined #nim |
18:08:11 | * | PMunch joined #nim |
18:08:23 | ehmry | pretty good, its my daily driver. I think the only nim thing I'm running now is part of my window manager |
18:11:51 | ehmry | but I have virtual file-system driver thing in nim I use sometimes |
18:12:14 | * | Vladar quit (Quit: Leaving) |
18:13:19 | * | jjido quit (Ping timeout: 256 seconds) |
18:14:02 | ehmry | we need to start doing more GUI work, which would be nice to do in nim |
18:14:41 | FromGitter | <krux02> GUI is still an unsolved problen in generally every programming language |
18:15:41 | ehmry | speaking of which, I was looking at cairo, which made me start looking at glib, and glib is fucking awful |
18:16:00 | ehmry | nim probably does everything glib does, but safer |
18:17:01 | ehmry | and less code |
18:17:58 | * | ketralni` is now known as ketralnis |
18:25:19 | * | arecacea1 quit (Remote host closed the connection) |
18:25:38 | * | arecacea1 joined #nim |
18:25:53 | * | ehmry left #nim ("User left") |
18:34:25 | PMunch | krux02, let's fix it! |
18:36:03 | * | MJCaley quit (Quit: MJCaley) |
18:39:01 | FromGitter | <krux02> well yea, |
18:39:16 | FromGitter | <krux02> would be nice, but it will probably still be a problem in 20 years |
18:39:25 | FromGitter | <krux02> like utf8 support |
18:50:24 | * | PMunch quit (Quit: leaving) |
18:51:14 | * | MJCaley joined #nim |
18:55:36 | * | gokr joined #nim |
18:58:50 | * | r3d9u11 joined #nim |
19:04:15 | FromGitter | <data-man> @mratsim |
19:08:35 | FromGitter | <data-man> > Rust, D, Crystal do not have an UI library either ⏎ ⏎ D has DlangUI and Dlang IDE |
19:12:59 | * | miran joined #nim |
19:15:31 | * | MJCaley quit (Quit: MJCaley) |
19:19:37 | * | MJCaley joined #nim |
19:33:18 | * | SenasOzys quit (Remote host closed the connection) |
19:33:27 | FromGitter | <krux02> yay I got my transform feedback working, that was really messing with my brain. |
19:33:42 | FromGitter | <krux02> transform feedback is super unintuitive in Opengl and badly documented |
19:34:13 | FromGitter | <HonzsSedlomn> That's hell true :D |
19:43:41 | * | cspar_ joined #nim |
19:43:59 | * | kunev quit (Ping timeout: 252 seconds) |
19:44:34 | * | kunev joined #nim |
19:46:21 | * | enthus1a1t joined #nim |
19:46:30 | * | cspar quit (Ping timeout: 256 seconds) |
19:47:16 | * | enthus1ast quit (Ping timeout: 268 seconds) |
19:49:11 | FromGitter | <krux02> I am still missing compile time information of object offsets otherwise I could integrate this better in my library |
19:49:39 | * | cspar_ quit (Ping timeout: 256 seconds) |
19:49:51 | FromGitter | <krux02> I want a rendering system that lets you do anything you want, render any data and stuff like you would use raw opengl, but at the same time it is super easy to write |
19:50:41 | * | cspar joined #nim |
19:50:54 | FromGitter | <krux02> Since transformfeedback works now (a thing that was for a long time on hold) I am now working again on compiling nim code to GLSL |
19:51:36 | FromGitter | <krux02> meaning in the future writing a shader won't look much different than writing a for loop, just with the difference that it iterates over vertices and writes out a color |
19:51:41 | FromGitter | <krux02> or two |
19:59:02 | * | MJCaley quit (Quit: MJCaley) |
19:59:06 | * | r3d9u11 quit (Remote host closed the connection) |
20:09:39 | * | Vladar joined #nim |
20:09:56 | * | cspar_ joined #nim |
20:10:29 | * | rokups quit (Quit: Connection closed for inactivity) |
20:12:19 | * | cspar quit (Ping timeout: 256 seconds) |
20:16:13 | * | athenot quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
20:20:33 | * | gokr left #nim (#nim) |
20:20:56 | FromGitter | <ZarsBranchkin> Oh neat, that's a pretty cool idea |
20:23:53 | FromGitter | <krux02> I am surprised that nobody else had that idea. |
20:24:06 | FromGitter | <krux02> maybe people had that idea, but were not able to implement it. |
20:24:09 | FromGitter | <krux02> I can |
20:24:17 | FromGitter | <krux02> ok good night |
20:25:12 | Yardanico | hmm https://github.com/AndreiRegiani/INim |
20:25:44 | thor77 | huh, nice |
20:25:52 | Yardanico | it uses usual `nim c`, but checks for errors |
20:26:07 | thor77 | uh |
20:26:10 | Yardanico | gif example is very cool |
20:26:12 | thor77 | was just seeing that |
20:26:42 | thor77 | now it doesn't look nearly as cool as it did before looking at the code to me :D |
20:26:57 | FromGitter | <ZarsBranchkin> I wonder how it compares to the secret built in Nim repl |
20:27:04 | thor77 | thought it would do some cool magic think, but it doesn't :( |
20:27:08 | Yardanico | nim secret uses VM |
20:27:17 | miran | isn't >>> python's thing? |
20:27:18 | Yardanico | nim VM (same one used for compiletime stuff) |
20:27:24 | thor77 | miran: yep |
20:27:25 | FromGitter | <ZarsBranchkin> yeah, makes sense |
20:27:28 | dom96 | wow, seems to be pretty fast |
20:27:31 | FromGitter | <ZarsBranchkin> Same as NimScript |
20:27:46 | Yardanico | dom96, it's a little hacky, but it checks for output lines you haven't yet seen |
20:27:59 | Yardanico | so if you do `echo 1` and then `echo 2` it won't print 1 twice |
20:28:47 | FromGitter | <ZarsBranchkin> sounds bit unstable, runs the previous code every time |
20:29:11 | thor77 | huh, how can one run that integrated repl? |
20:29:21 | thor77 | can't find the switch in the help-message |
20:29:21 | Yardanico | thor77, are you about nim secret? |
20:29:24 | Yardanico | it's hidden |
20:29:25 | * | c0ntribut0r quit (Read error: Connection reset by peer) |
20:29:26 | * | Trustable quit (Remote host closed the connection) |
20:29:27 | Yardanico | because it's unstable |
20:29:28 | FromGitter | <ZarsBranchkin> `nim secret` heh |
20:29:32 | Yardanico | that's why it's nim secret |
20:29:39 | thor77 | heh, thanks :) |
20:29:43 | * | c0ntribut0r joined #nim |
20:30:08 | FromGitter | <ZarsBranchkin> great, can't `C-C` or `C-D` out of it |
20:30:24 | Yardanico | Ctrl+C works |
20:30:29 | Yardanico | ah, you mean switch |
20:30:30 | thor77 | not for me |
20:30:39 | Yardanico | ZarsBranchkin: at least it checks if last line has thrown an error |
20:30:48 | Yardanico | and if it did, this inim reverts this line |
20:30:48 | thor77 | eh, i can't get out without killing the process, i guess :D |
20:30:52 | FromGitter | <ZarsBranchkin> no, Ctrl+C is what I meant for `nim secret` |
20:31:03 | FromGitter | <ZarsBranchkin> yeah, i had to open new tab and close that one |
20:31:04 | thor77 | ctrl+c does nothing for me in "nim secret" |
20:31:12 | Yardanico | you should type quit() |
20:31:16 | Yardanico | like in usual nim apps :P |
20:31:22 | thor77 | doesn't work as well |
20:31:30 | Yardanico | thor77, are you sure? it works in nim secret |
20:31:34 | thor77 | huh, the second time it worked |
20:31:34 | thor77 | weird |
20:31:48 | FromGitter | <ZarsBranchkin> Previously i tried with exit() and then stopped guessing |
20:32:19 | Yardanico | btw, for instant repl you can use tcc (tiny c compiler) |
20:32:36 | Yardanico | it doesn't produce fast code, but it's compilation times are FAST |
20:32:45 | Yardanico | (because it's much simpler to compile without optimizations) |
20:35:53 | Yardanico | (I'm just browsing through recently updated Nim repos on github) |
20:36:35 | * | endragor joined #nim |
20:36:55 | Yardanico | I'm happy to see there's more nim projects every day ;) |
20:37:33 | Yardanico | and github search shows 2k repositories with nimlang for me |
20:38:26 | thor77 | good thing you can't find mine :D |
20:38:33 | Yardanico | thor77, hmmm |
20:38:34 | * | miran quit (Quit: Konversation terminated!) |
20:38:41 | thor77 | Yardanico: it's set to private ;D |
20:38:53 | Yardanico | thor77, oh |
20:39:01 | Yardanico | oh, I see "5 contributions in private repositories" |
20:39:48 | * | rauss quit (Read error: Connection reset by peer) |
20:40:34 | thor77 | not sure what the search counts |
20:41:09 | * | endragor quit (Ping timeout: 264 seconds) |
20:41:29 | * | rauss joined #nim |
20:41:48 | * | rauss quit (Client Quit) |
20:42:00 | * | rauss joined #nim |
20:43:01 | * | user11101 quit (Quit: user11101) |
20:43:56 | Yardanico | thor77, repositories on github with nim language as a main one |
20:44:41 | thor77 | ah, hm |
20:45:05 | thor77 | then my repository is certainly among them if "recent activity" includes commits from february |
20:46:46 | thor77 | didn't know even private repositories are listed on searches like that |
20:48:07 | * | salewski joined #nim |
20:49:13 | salewski | Yardanico, is the 2k repositories with all the forked onces? |
20:49:28 | * | Vladar quit (Remote host closed the connection) |
20:50:09 | Yardanico | salewski, it seems that without them (show forked repos is disabled in advanced settings) |
20:50:25 | Yardanico | but there's some repos which are forks of others but without fork status |
20:50:33 | Yardanico | for example: https://github.com/search?utf8=%E2%9C%93&q=nim-sandbox&type=Repositories |
20:50:42 | Yardanico | oh, sorry, wrong one |
20:52:26 | salewski | 2k is indeed a lot. But I have seen a few nimble packages with nearly no real code. |
20:53:55 | salewski | I never heard of the DlangUI mentioned above before. That one is interesting, only 200k lines of code as openhub tells us. |
20:54:34 | salewski | But I think no one is really using DlangUI. |
20:59:44 | * | cspar joined #nim |
21:02:19 | * | cspar_ quit (Ping timeout: 260 seconds) |
21:10:19 | * | SenasOzys joined #nim |
21:12:42 | * | salewski quit (Quit: WeeChat 1.9.1) |
21:15:41 | FromGitter | <data-man> https://code.dlang.org/?sort=updated&category=library.gui&skip=0&limit=100 - 46 packages |
21:23:03 | dom96 | https://nimble.directory/search?query=gui |
21:23:06 | dom96 | 13 packages |
21:23:07 | dom96 | not bad |
21:23:37 | dom96 | http://bit.ly/2DbWURP |
21:28:32 | * | nsf quit (Quit: WeeChat 2.0.1) |
21:30:21 | FromGitter | <zacharycarter> dom96: I think the whole discussion started this morning, and the point was raised - Nim has no official GUI implementation - I don't think it needs one... |
21:30:43 | dom96 | agreed |
21:32:32 | FromGitter | <zacharycarter> dom96: I think that what Nim really needs to make it mainstream is libraries / sdks for the enterprise |
21:33:17 | FromGitter | <zacharycarter> so support for AWS, GraphQL, React/Redux (for the JS implementation) |
21:33:35 | FromGitter | <zacharycarter> more database support |
21:33:47 | FromGitter | <zacharycarter> ORMs |
21:34:01 | FromGitter | <zacharycarter> a more improved / enterprise grade Jester |
21:35:34 | FromGitter | <zacharycarter> these are the main blockers to me being able to use Nim at work |
21:35:42 | shashlick | just wrapped libbigWig with nimgen, will post on github soon |
21:35:46 | FromGitter | <data-man> Users need a GUI. Therefore, Delphi was so popular. |
21:36:10 | FromGitter | <zacharycarter> Wasn't delphi windows only? |
21:36:23 | shashlick | i spent some time on wrapping graphqlparser but ran into issues, if anyone can help, will be great |
21:36:33 | FromGitter | <jaco60> Well, Go is popular and Go has no GUI |
21:36:48 | FromGitter | <jaco60> Depends of the target of the language, imho |
21:36:52 | FromGitter | <zacharycarter> shashlick: I've already wrapped it - but I'm working on a full graphql implementation |
21:37:03 | FromGitter | <zacharycarter> not using libgraphqlparser |
21:37:33 | * | qleda quit (Ping timeout: 264 seconds) |
21:37:35 | shashlick | can you share? |
21:37:44 | FromGitter | <zacharycarter> which? |
21:37:47 | FromGitter | <data-man> Currently Delphi supports Windows, macOS, iOS, Android and Linux. |
21:38:26 | shashlick | i guess if you are working on native then that's fine, I don't have any personal need for it |
21:38:35 | FromGitter | <zacharycarter> okay |
21:38:54 | * | noonien joined #nim |
21:39:04 | FromGitter | <zacharycarter> @data-man what cross platform GUI implementation (besides Qt) can you point to that you'd use in an app if you were building? |
21:39:10 | shashlick | is there any advantage to native instead of wrapping existing code with nim'ish api |
21:40:05 | FromGitter | <data-man> @zacharycarter: On which language? |
21:40:12 | FromGitter | <zacharycarter> any |
21:40:22 | FromGitter | <data-man> For FreePascal - Lazarus |
21:40:35 | dom96 | The only way these libraries will be written is if people that need them write them :) |
21:41:07 | FromGitter | <zacharycarter> ^ |
21:41:08 | shashlick | i prefer wrapping since you don't see the value in spending time on reimplemention, bug fixes, maintenance |
21:41:11 | dom96 | The core devs of Nim developing these packages to hopefully make Nim succeed is a bad idea I think |
21:41:36 | shashlick | i'd much rather see existing C libs wrapped and layered with nice Nim callers |
21:41:39 | FromGitter | <zacharycarter> shashlick: parsing graphql queries is a very small subset of what a graphql implementation needs |
21:41:55 | FromGitter | <zacharycarter> and it's the only C/C++ library that the graphql team has published |
21:42:09 | FromGitter | <zacharycarter> most implementations of graphql in other languages don't use it |
21:42:29 | shashlick | makes sense in that case |
21:42:34 | FromGitter | <zacharycarter> I'm going to write a library similar to - https://github.com/vektah/gqlgen |
21:43:11 | shashlick | i'm just averse to redoing stuff, guess i'm getting old :) |
21:43:55 | FromGitter | <zacharycarter> I use a lot of C libraries in my projects, but I don't think this one is a good fit - if we want our library to be used with modern graphql apps, we're going to need codegen |
21:44:44 | FromGitter | <zacharycarter> not that you couldn't generate code using the C graphql parser but... I don't see any implementations in any language using it |
21:44:51 | FromGitter | <zacharycarter> even though wrappers for those languages exist |
21:50:09 | * | dddddd quit (Ping timeout: 260 seconds) |
21:50:09 | * | Lord_Nightmare quit (Ping timeout: 260 seconds) |
21:54:08 | * | dddddd joined #nim |
21:54:22 | * | Lord_Nightmare joined #nim |
21:55:35 | FromGitter | <data-man> For Delphi, I used components from DevExpress for many years. I do not know another better library for any language. Such UI is loved by non-programmers. :) |
22:05:13 | * | EastByte quit (Read error: Connection reset by peer) |
22:05:22 | * | EastByte joined #nim |
22:10:32 | * | cspar_ joined #nim |
22:10:34 | * | cspar quit (Ping timeout: 264 seconds) |
22:13:30 | * | cspar__ joined #nim |
22:15:05 | * | cspar_ quit (Ping timeout: 256 seconds) |
22:21:02 | FromGitter | <data-man> @zacharycarter: Have you tried NanoVG? |
22:23:35 | FromGitter | <zacharycarter> mmhmm |
22:28:16 | FromGitter | <zacharycarter> are there any good libraries for writing a parser in Nim - or does anyone have any suggestions on what core libraries to use? |
22:28:23 | FromGitter | <zacharycarter> module rather |
22:28:43 | FromGitter | <data-man> https://github.com/bkaradzic/bgfx/blob/master/examples/20-nanovg/blendish.h :) |
22:29:11 | FromGitter | <zacharycarter> should I just use strscans? |
22:30:29 | FromGitter | <honewatson> @zacharycarter according to this survey GraphQL is not even mainstream in the JS community |
22:30:34 | FromGitter | <honewatson> https://stateofjs.com/2017/state-management/results |
22:30:59 | FromGitter | <data-man> strscans is very good. And must be extended. |
22:31:00 | * | MJCaley joined #nim |
22:33:29 | FromGitter | <zacharycarter> @honewatson well it's already easy enough to build a RESTful API with Nim... and I think GraphQL is a trending technology that will eventually become mainstream. |
22:35:09 | FromGitter | <zacharycarter> that chart is also kind of silly |
22:39:21 | FromGitter | <data-man> https://github.com/onqtam/rcrl - interactive C++ compiler |
22:40:14 | FromGitter | <zacharycarter> there's quite a few projects out there like that |
22:40:21 | FromGitter | <zacharycarter> you could do the same thing with Nim if you wanted to |
22:40:43 | FromGitter | <honewatson> It is trending but I'm not convinced it will be become mainstream at this point. I've evaluated it as an option and passed it over it this point. Even though its language agnostic its kind of part of the JS community where things can hype up and die down pretty quickly. For example have you ever heard of Hyperapp? It has quite a few more stars than GraphQL project yet most people would never have heard of it. |
22:41:13 | FromGitter | <honewatson> It may well become mainstream but the jury is out |
22:41:22 | FromGitter | <zacharycarter> yes I've heard of hyperapp - graphql is a much more established technology |
22:41:35 | FromGitter | <zacharycarter> not to mention most of the graphql implementation takes place server side |
22:42:01 | FromGitter | <zacharycarter> I'd say it's large enough to have all of these implementations - http://graphql.org/code/ |
22:43:24 | FromGitter | <zacharycarter> I'm not even sure you know what graphql is if you're comparing it to hyperapp |
22:43:33 | FromGitter | <honewatson> We use React at work but I'm personally not a big fan of it though it does have a lot of tooling. It does funny things with the stacktrace and was built before a bunch of new features came out in 2015 for JS. |
22:43:46 | FromGitter | <zacharycarter> react has nothing to do with graphql |
22:43:52 | FromGitter | <honewatson> Yes I know that |
22:44:05 | FromGitter | <honewatson> they are completely different technologies for different purposes |
22:45:39 | FromGitter | <data-man> I dream about video where Araq talks about using the Nim VM as script engine. :) |
22:45:58 | FromGitter | <honewatson> I'm comparing the popularity of projects in Github and whether you can reliably use that to make predictions about future technology popularity |
22:46:06 | * | MJCaley quit (Quit: MJCaley) |
22:47:15 | FromGitter | <zacharycarter> I'm using the VM for config in my game engine I'm writing - I want to figure out how to pass objects back and forth. I've read a sentence describing how to do it - but I haven't tried it yet. |
22:48:42 | * | jaco60 quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
22:50:48 | * | cspar joined #nim |
22:50:52 | FromGitter | <data-man> In VM, I do not have enough casting. :( |
22:51:34 | FromGitter | <data-man> And addr |
22:52:34 | * | cspar__ quit (Ping timeout: 260 seconds) |
22:57:58 | * | MJCaley joined #nim |
22:58:47 | * | vlad1777d joined #nim |
23:08:38 | * | cspar_ joined #nim |
23:10:27 | * | cspar quit (Ping timeout: 246 seconds) |
23:13:00 | FromGitter | <zacharycarter> well the VM doesn't support the entire stdlib - so I don't think it's really useful in its current state as a full scripting language |
23:13:46 | FromGitter | <zacharycarter> not to say you couldn't implement what's missing yourself |
23:14:14 | FromGitter | <zacharycarter> and obviously other scripting languages have been written w/ nim |
23:15:08 | * | vlad1777d quit (Remote host closed the connection) |
23:16:56 | * | vlad1777d joined #nim |
23:29:53 | FromGitter | <data-man> @zacharycarter: https://github.com/nim-lang/Nim/pull/6740#issuecomment-344260275 |
23:37:40 | FromGitter | <krux02> @data-man wouldn't it be better to have a branching implementation with `when nimvm:`? |
23:37:53 | FromGitter | <krux02> I know it sucks this branching, but it works |
23:37:55 | FromGitter | <krux02> kind of |
23:45:47 | FromGitter | <data-man> @krux02: Yesterday t1ha 2.0 was released. I'll experiment with Nim-port . Maybe the Pearson hashing will be better. So many ways! :) |
23:53:39 | * | nohusuro quit (Quit: leaving) |