Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 26

Thread: Wayland Gets A Simple Drawing Library

  1. #11
    Join Date
    Aug 2011
    Posts
    65

    Default

    Wow, xterm has 65k lines of code! :O
    http://st.suckless.org/
    That is about 4 times as much as wayland.

    Somehow I always thought it was extremely lightweight.

  2. #12
    Join Date
    Sep 2008
    Location
    Vilnius, Lithuania
    Posts
    2,404

    Default

    Quote Originally Posted by kaszak View Post
    Oh, the horror!
    I don't know, I was always somehow partial to TWM. It's pretty original. It would even work well for tablets, since one of the easiest things to do there is drag, and much harder is to precisely click something. Added a bit of a flashier interface and a unified way of minimising things/displaying the tray, it would pass for a modern, original UI.

  3. #13
    Join Date
    Apr 2010
    Posts
    669

    Default

    Quote Originally Posted by Maxjen View Post
    Wow, xterm has 65k lines of code! :O
    http://st.suckless.org/
    That is about 4 times as much as wayland.

    Somehow I always thought it was extremely lightweight.
    The only thing LoC measures is how many lines of code there are - no more, no less. It's worthless as any kind of measure of complexity, or of how 'heavy' the program is.

  4. #14
    Join Date
    Feb 2008
    Location
    Linuxland
    Posts
    4,752

    Default

    Indeed, startup speed is a much better measure.

    xterm is really slow in that regard, which prompted me to find alternatives a few years back. Rxvt was fast, but didn't support truetype fonts, aterm had some issues I can't remember anymore, I ended up using mrxvt.

    st seems otherwise good, but no scrollback and no utmp are pretty much dealbreakers. No I'm not going to use wrapper programs for each.

  5. #15
    Join Date
    Sep 2010
    Posts
    421

    Default

    Don't know if this is bloat and the beginning of the dark path X has taken or is something that should be worked out.

  6. #16
    Join Date
    Dec 2011
    Posts
    1,935

    Default Cairo

    Just use Cairo?

  7. #17
    Join Date
    Jul 2010
    Posts
    580

    Default

    Quote Originally Posted by plonoma View Post
    Don't know if this is bloat and the beginning of the dark path X has taken or is something that should be worked out.
    Bloat? It's an external libary.

    Quote Originally Posted by uid313
    Just use Cairo?
    A while back I was interested in porting dmenu[0] and st[1] to wayland.
    However, the available rendering stack (cairo + pango + glib +
    opengl/pixman) seemed a bit overkill to me when all I needed was two
    simple operations, "fill rectangle with color" and "draw monochrome text
    with color".

  8. #18
    Join Date
    Oct 2010
    Posts
    370

    Default

    Quote Originally Posted by Teho View Post
    Bloat? It's an external libary.
    However, the available rendering stack (cairo + pango + glib +
    opengl/pixman) seemed a bit overkill to me when all I needed was two
    simple operations
    Could be wrong, but I'm pretty sure he was talking about this(^^), not the library he decided to write because of this.

    Quote Originally Posted by uid313
    Just use Cairo?
    Cairo depends on glib and pixman...not sure what he has against these libraries, but...yeah.

  9. #19
    Join Date
    Jan 2013
    Posts
    97

    Default

    Seeing as I used DMenu to open this very browser window, I'm quite happy with this news.

  10. #20
    Join Date
    Jan 2011
    Posts
    1,287

    Default

    Quote Originally Posted by Nobu View Post
    Could be wrong, but I'm pretty sure he was talking about this(^^), not the library he decided to write because of this.
    Wayland doesn't mandate any of them. They make your life simple, since you are required to tell how to paint the buffer. If they get obsolete, you can just ditch them.

    Cairo depends on glib and pixman...not sure what he has against these libraries, but...yeah.
    Considering what he's porting is pretty much minimalistic software, Cairo is indeed overkill.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •