Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Feb 27 2018 16:49
    naaando commented #45
  • Feb 11 2018 19:54
    BaptisteGelez commented #45
  • Feb 11 2018 19:50
    mickeyl commented #45
  • Oct 07 2017 11:24
    Bat41 commented #35
  • Oct 07 2017 10:55
    avently commented #35
  • Jul 12 2017 07:45
    mariusbackes opened #47
  • Jul 08 2017 10:14
    harisvsulaiman commented #45
  • Jun 18 2017 11:06
    Bat41 edited #46
  • Jun 18 2017 11:06
    Bat41 edited #46
  • Jun 18 2017 11:06
    Bat41 edited #46
  • Jun 18 2017 11:05
    Bat41 synchronize #46
  • Jun 18 2017 11:05

    Bat41 on language-server

    Restart server if the port is a… Fix suggestion of symbols in us… Fix suggestion of usings and qu… and 2 more (compare)

  • May 24 2017 17:05
    Bat41 commented #45
  • May 24 2017 17:05
    Bat41 edited #46
  • May 24 2017 11:46
    Bat41 edited #46
  • May 23 2017 20:12
    Bat41 edited #46
  • May 23 2017 20:12
    Bat41 labeled #46
  • May 23 2017 20:12
    Bat41 labeled #46
  • May 23 2017 20:12
    Bat41 opened #46
  • May 23 2017 20:10

    Bat41 on language-server

    Language server prototype (compare)

andros705
@andros705
Even number of division characters fixed the error XD
Screenshot_2017-03-25_11-08-05.png
Baptiste Gelez
@BaptisteGelez
yes because he thinks the regex ends here :D
andros705
@andros705
:smile:
Baptiste Gelez
@BaptisteGelez
I have some nice results so far. Atom now loads in two seconds, and i have no parsing error. It is still very incomplete (only shows methods, class and namespaces from glib), but i think it will be great at the end
in a few hours i got what i had in one week when i was writing my own parser :D
andros705
@andros705
Great! You can make a field in configuration so that we can specify what libraries we want to have parsed.
Baptiste Gelez
@BaptisteGelez
of course :)
andros705
@andros705
How's the coding?
Baptiste Gelez
@BaptisteGelez
Well, I am not at home for a week, so I have no computer to continue improving my prototype.
andros705
@andros705
How's programming
Baptiste Gelez
@BaptisteGelez
Hi, I left Valhalla untuched for a while now, and I think I will go away from Vala, because the language becomes more and more useless as the Rust plugin for writing GObjects is progressing. So I'm currently learning Rust, and I think I will maybe not code in Vala anymore.
If you want I can push what I started with libvala and dbus, so you can continue my work
andros705
@andros705
To be honest I prefer rust over vala too, but you can push your work so maybe I can learn something from it ;p
andros705
@andros705
The problem I noticed with Rust is that there is not easy way to inherit GTK classes and I barely know how to do this in C either so I think I might write some code in Vala then compile into library and use in Rust :P
andros705
@andros705
By analysing C code generated by Vala I've learned how to create my own custom GtkWidget in C. But I've also learned that Vala makes horrible code.
Baptiste Gelez
@BaptisteGelez
Yes code generated by Vala isn't meant to be read 😁
And I think the relm project might interest you if you want to create a GUI with Gtk and rust
andros705
@andros705
Hmm looks interesting but I would not use it for production yet.
I'll stick to mixing Rust and C for now and see how the stuff works out later.
andros705
@andros705

This c code generated by Vala:

static GtkSizeRequestMode my_container_real_get_request_mode (GtkWidget* base) {
    MyContainer * self;
    GtkSizeRequestMode result = 0;
    self = (MyContainer*) base;
    result = GTK_SIZE_REQUEST_WIDTH_FOR_HEIGHT;
    return result;
}

I would write as:

static GtkSizeRequestMode my_container_real_get_request_mode (GtkWidget* base) {
    return GTK_SIZE_REQUEST_WIDTH_FOR_HEIGHT;
}

XD

Baptiste Gelez
@BaptisteGelez
Yeah I don't understand why they have done it this way
Fernando da Silva Sousa
@naaando
Hey @Bat41 , any progress on the language server ?
I took a look into the protocol and seems that vala doesn't own a library to handle json rpc
Baptiste Gelez
@BaptisteGelez
Hello
I'm progressing. I think I'll release a first version with the language server in a few days/weeks
But I'm not really implementing a language server, following the standardized protocol, with JSON-RPC and everything
I tried to do so. I started writing a JSON-RPC middleware for Valum, but it was too much work, so I decided to make something a bit more "dirty" :grin:
Baptiste Gelez
@BaptisteGelez
Everything works fine, but I still have a few performance issues when the server have been running for a long time.
SkyzohKey
@SkyzohKey
@Bat41 Hey guy !
Did u saw atom-ui-ide stuff ?
Maybe it would be trivial to integrate valhalla to this ?
Would allow vala to have an "IDE" c:
Baptiste Gelez
@BaptisteGelez
hey @SkyzohKey !
i'm again trying to find an alternative language to vala (i'm trying python and rust, which seem nice so far)
so i'm no longer working on valhalla
and i think i will never again
SkyzohKey
@SkyzohKey
J'ai vu que tu a starred des repo rust/Haskell :smile:
Baptiste Gelez
@BaptisteGelez
^^
SkyzohKey
@SkyzohKey
Person he suis passé a React/React Native/Redux/Electron
Baptiste Gelez
@BaptisteGelez
react/react native est pas mal, mais electron vaut mieux eviter
SkyzohKey
@SkyzohKey
Simon le D est sympa mais même problèmes qu'avec Vala, pas d'IDE, ni de tooling décent
Baptiste Gelez
@BaptisteGelez
j'ai pas regardé
mais rust va surement etre idéal une fois que les gens de chez gnome auront terminé d'intégrer gobject avec leurs plugins
du coup j'abandonne valhalla
SkyzohKey
@SkyzohKey
MH probable
Je vois ^^
Baptiste Gelez
@BaptisteGelez
en plus mon language server est un truc tout custom qui aurait pas marché avec le reste des éditeurs ^^
for those who don't speak french : i am no longer working on valhalla, but if any of you want to maintain the project, just tell me :)