Can someone link me a picture of SWT on Linux that objectively looks good?

Can someone link me a picture of SWT on Linux that objectively looks good?

Can someone link me a picture of SWT on Linux that objectively looks good?

LOL "objectively"? "beauty is in the eye of the beholder", no?

···

On Wed, Oct 20, 2021 at 10:33 AM Gregory Cohen <gregorycohen2@gmail.com> wrote:

Can someone link me a picture of SWT on Linux that objectively looks good?

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<ruby-talk list: member options login page>

--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

I'm going to ignore this silly comment.

···

On Wed, Oct 20, 2021 at 5:03 PM Hassan Schroeder <hassan.schroeder@gmail.com> wrote:

> Can someone link me a picture of SWT on Linux that objectively looks
good?

LOL "objectively"? "beauty is in the eye of the beholder", no?

On Wed, Oct 20, 2021 at 10:33 AM Gregory Cohen <gregorycohen2@gmail.com> > wrote:
>
> Can someone link me a picture of SWT on Linux that objectively looks
good?
>
> Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org
?subject=unsubscribe>
> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>

--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>

I linked these in another thread:




I think they look OK on Ubuntu (even if not necessarily absolutely
gorgeous or anything). I do have a Tetris example too. If I get a
chance to take a snapshot on Linux, I'll link to it (my older Linux
computer died and I'm in the process of setting up a new one, so bear
with me).

···

On Wed, Oct 20, 2021 at 8:02 PM Gregory Cohen <gregorycohen2@gmail.com> wrote:

I'm going to ignore this silly comment.

On Wed, Oct 20, 2021 at 5:03 PM Hassan Schroeder <hassan.schroeder@gmail.com> wrote:

> Can someone link me a picture of SWT on Linux that objectively looks good?

LOL "objectively"? "beauty is in the eye of the beholder", no?

On Wed, Oct 20, 2021 at 10:33 AM Gregory Cohen <gregorycohen2@gmail.com> wrote:
>
> Can someone link me a picture of SWT on Linux that objectively looks good?
>
> Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>

--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>

--
Andy Maleh

LinkedIn: https://www.linkedin.com/in/andymaleh
Blog: http://andymaleh.blogspot.com
GitHub: http://www.github.com/AndyObtiva

Glimmer DSL for SWT 4.21.2.0 just added support for Linux RPM/DEB
native executable packaging:

That means, you can now package Ruby apps for Linux as native RPM
and/or DEB files (e.g. Red Hat usually runs RPM and Linux Mint
Cinnamon usually runs DEB), just like you could package DMG/PKG on Mac
and MSI/EXE on Windows before.

I thought you might find that interesting Gregory and any Linux
die-hard fans out there.

Cheers,

···

On Wed, Oct 20, 2021 at 10:41 PM Andy Maleh <andy.am@gmail.com> wrote:

I linked these in another thread:

https://raw.githubusercontent.com/AndyObtiva/glimmer-dsl-swt/master/images/glimmer-hello-computed.png
https://raw.githubusercontent.com/AndyObtiva/glimmer-dsl-swt/master/images/glimmer-hello-group.png
https://raw.githubusercontent.com/AndyObtiva/glimmer-dsl-swt/master/images/glimmer-hello-checkbox-group.png
https://raw.githubusercontent.com/AndyObtiva/glimmer-dsl-swt/master/images/glimmer-tic-tac-toe-in-progress.png

I think they look OK on Ubuntu (even if not necessarily absolutely
gorgeous or anything). I do have a Tetris example too. If I get a
chance to take a snapshot on Linux, I'll link to it (my older Linux
computer died and I'm in the process of setting up a new one, so bear
with me).

On Wed, Oct 20, 2021 at 8:02 PM Gregory Cohen <gregorycohen2@gmail.com> wrote:
>
> I'm going to ignore this silly comment.
>
> On Wed, Oct 20, 2021 at 5:03 PM Hassan Schroeder <hassan.schroeder@gmail.com> wrote:
>>
>> > Can someone link me a picture of SWT on Linux that objectively looks good?
>>
>> LOL "objectively"? "beauty is in the eye of the beholder", no?
>>
>> On Wed, Oct 20, 2021 at 10:33 AM Gregory Cohen <gregorycohen2@gmail.com> wrote:
>> >
>> > Can someone link me a picture of SWT on Linux that objectively looks good?
>> >
>> > Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
>> > <ruby-talk list: member options login page>
>>
>>
>>
>> --
>> Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
>> twitter: @hassan
>> Consulting Availability : Silicon Valley or remote
>>
>> Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
>> <ruby-talk list: member options login page>
>
>
> Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
> <ruby-talk list: member options login page>

--
Andy Maleh

LinkedIn: https://www.linkedin.com/in/andymaleh
Blog: http://andymaleh.blogspot.com
GitHub: AndyObtiva (Andy Maleh) · GitHub

--
Andy Maleh

LinkedIn: https://www.linkedin.com/in/andymaleh
Blog: http://andymaleh.blogspot.com
GitHub: AndyObtiva (Andy Maleh) · GitHub

Hey Andy,

Thank you. I will install that package, and I will see if it works :slight_smile:

I just wrote a desktop widget, and it works on Windows, and it shows my
site. It's transparent and it has no titlebar. Cross platform, probably
works well on Android, so I can make an app. I compiled it using just MXE
(MinGW32) and it works :slight_smile:

Does anyone know of QuickJS?

I'm able to compile Ruby into statically linked C. And it works :slight_smile:

Ruby + Opal + QuickJS = Use Ruby for anything. No installer necessary.
Works on Windows and Wine, too.

My site mostly works well (I have to pay money to improve the certificate
to make it work on mobile well.)

It works in Safari, in Chrome, and probably in Firefox and other browsers.

I still have a little bit of work to do on it.

QuickJS is utterly insane.

It makes Opal work better.

Opal isn`t very good at interacting with the desktop

But in QuickJS, you can import std, then do std.in.getline(), and it calls
the C function getline(), and you get a Javascript line.

Node.js`s createInterface function for the readline module is a nightmare

···

--------------------------------------------------------------------

I`m currently creating a script, well, I have it already, that turns
markup, a list, to representation.

So

[["hello", "world"], ["foo", "bar"]]

would get represented as a markup-up HTML page (with appropriate divs and
spans) AND a cross platform C program which can be statically linked on
Windows, would be created, with no Installer, no dependencies, no Glade
file. Just 100% speed. Also, it would show you the content using Ruby GTK

In other words, Ruby lists can be given to the program as an argument, and
you would, in theory, get ALL possible representations of that data, which
could then be stylized with CSS (which both Gtk and Qt support really well)

I could use Glimmer as another backend, but I would have to be able to use
it

Attached is pictures of my desktop widget (the computer im using has no
screenshot tool)

Im also now looking for work as a programmer and kind of trying to pursue
that

I have an interview on Monday

I also now have a graphical Windows installer, written using the Windows
API, for my gem

All of the Windows work that I have been doing uses https://mxe.cc/

main.htm (18.8 KB)

main.css (2.76 KB)

pslide0001.htm (1.37 KB)

slide0001.htm (1.44 KB)

pslide0002.htm (1.29 KB)

slide0002.htm (1.36 KB)

pslide0003.htm (1.25 KB)

slide0003.htm (1.33 KB)

pslide0004.htm (1.25 KB)

slide0004.htm (1.33 KB)

pslide0005.htm (1.25 KB)

slide0005.htm (1.32 KB)

pslide0006.htm (1.25 KB)

slide0006.htm (1.33 KB)

pslide0007.htm (1.24 KB)

slide0007.htm (1.21 KB)

Problem_20211101_1915.mht (1.04 MB)

I'd hate to say it, but what you built is child's play in Glimmer. I'm
not sure why you haven't just simply used it.

All you have to do is ask for a no trim window shell to remove to top
title bar and set its alpha to a number lower than 100 to get a
transparent effect.

require 'glimmer-dsl-swt'

include Glimmer

shell(:no_trim) {
  grid_layout 2, false
  alpha 95
  minimum_size 800, 300

  label {
    layout_data {
      horizontal_span 2
    }

    text 'Enter Things'
    font height: 24
  }

  10.times do |n|
    label {
      text "Please enter feelings #{n}"
    }
    text {
    }
  end
}.open

And, it's in BEAUTIFUL PURE RUBY, not some nonsense JavaScript. Also,
you don't even need CSS. That is extra complexity you can let go of
too.

In fact, that's the whole point of building GUI apps with GUI
technologies. They're a lot simpler than overly bloated web
technologies. You don't need all the garbage web complexity people
spend endless days, weeks, and months in. You just build Ruby apps in
a day or less. In fact, I built Tetris in one day in Glimmer (and I am
neither a game programmer nor a Tetris freak). Check out this article
series about it:

(do not be alarmed by the top header.. it is just a headline from
another unrelated article... simply ignore it)

In any case, it feels like you are trying to solve problems that do
not exist since they have been solved already. It would be much more
productive to use the existing solutions (like Glimmer) and try to
improve them instead with your own unique ideas and feedback. Lend a
brother a hand in the Ruby community instead of defecting to non-Ruby
JavaScript based (non-)solutions.

Anyways, I wouldn't care either way whether you'd choose to support
Glimmer as a backend or not. The only thing that matters to me is
offering a technologically sound solution and a community service. You
decide for yourself whether to take it or leave it. It is your gain or
loss in the end, not mine. After all, I am already living happily on
cloud 9 while writing awesomely concise and expressive Ruby code to
build desktop GUI apps.

···

On Mon, Nov 1, 2021 at 8:14 PM Gregory Cohen <gregorycohen2@gmail.com> wrote:

Hey Andy,

Thank you. I will install that package, and I will see if it works :slight_smile:

I just wrote a desktop widget, and it works on Windows, and it shows my site. It's transparent and it has no titlebar. Cross platform, probably works well on Android, so I can make an app. I compiled it using just MXE (MinGW32) and it works :slight_smile:

Does anyone know of QuickJS?

I'm able to compile Ruby into statically linked C. And it works :slight_smile:

Ruby + Opal + QuickJS = Use Ruby for anything. No installer necessary. Works on Windows and Wine, too.

My site mostly works well (I have to pay money to improve the certificate to make it work on mobile well.)

It works in Safari, in Chrome, and probably in Firefox and other browsers.

I still have a little bit of work to do on it.

QuickJS is utterly insane.

It makes Opal work better.

Opal isn`t very good at interacting with the desktop

But in QuickJS, you can import std, then do std.in.getline(), and it calls the C function getline(), and you get a Javascript line.

Node.js`s createInterface function for the readline module is a nightmare

--------------------------------------------------------------------

I`m currently creating a script, well, I have it already, that turns markup, a list, to representation.

So

[["hello", "world"], ["foo", "bar"]]

would get represented as a markup-up HTML page (with appropriate divs and spans) AND a cross platform C program which can be statically linked on Windows, would be created, with no Installer, no dependencies, no Glade file. Just 100% speed. Also, it would show you the content using Ruby GTK

In other words, Ruby lists can be given to the program as an argument, and you would, in theory, get ALL possible representations of that data, which could then be stylized with CSS (which both Gtk and Qt support really well)

I could use Glimmer as another backend, but I would have to be able to use it

Attached is pictures of my desktop widget (the computer im using has no screenshot tool)

Im also now looking for work as a programmer and kind of trying to pursue that

I have an interview on Monday

I also now have a graphical Windows installer, written using the Windows API, for my gem

All of the Windows work that I have been doing uses https://mxe.cc/

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>

--
Andy Maleh

LinkedIn: https://www.linkedin.com/in/andymaleh
Blog: http://andymaleh.blogspot.com
GitHub: http://www.github.com/AndyObtiva

I think you missed 95% of what I wrote

Moreover, you were conflating things that were separate

A question I have is deployment.

Can you have people run your software without an installer?

···

On Mon, Nov 1, 2021 at 9:48 PM Andy Maleh <andy.am@gmail.com> wrote:

I'd hate to say it, but what you built is child's play in Glimmer. I'm
not sure why you haven't just simply used it.

All you have to do is ask for a no trim window shell to remove to top
title bar and set its alpha to a number lower than 100 to get a
transparent effect.

require 'glimmer-dsl-swt'

include Glimmer

shell(:no_trim) {
  grid_layout 2, false
  alpha 95
  minimum_size 800, 300

  label {
    layout_data {
      horizontal_span 2
    }

    text 'Enter Things'
    font height: 24
  }

  10.times do |n|
    label {
      text "Please enter feelings #{n}"
    }
    text {
    }
  end
}.open

And, it's in BEAUTIFUL PURE RUBY, not some nonsense JavaScript. Also,
you don't even need CSS. That is extra complexity you can let go of
too.

In fact, that's the whole point of building GUI apps with GUI
technologies. They're a lot simpler than overly bloated web
technologies. You don't need all the garbage web complexity people
spend endless days, weeks, and months in. You just build Ruby apps in
a day or less. In fact, I built Tetris in one day in Glimmer (and I am
neither a game programmer nor a Tetris freak). Check out this article
series about it:

Day 5 - glimmer_tetris Gem - Glimmer Tetris - The Playfield - Get Tetris Working in One Day! | Best of Ruby Gems Series
(do not be alarmed by the top header.. it is just a headline from
another unrelated article... simply ignore it)

https://raw.githubusercontent.com/AndyObtiva/glimmer-dsl-swt/v4.20.0.0/images/glimmer-tetris.png

In any case, it feels like you are trying to solve problems that do
not exist since they have been solved already. It would be much more
productive to use the existing solutions (like Glimmer) and try to
improve them instead with your own unique ideas and feedback. Lend a
brother a hand in the Ruby community instead of defecting to non-Ruby
JavaScript based (non-)solutions.

Anyways, I wouldn't care either way whether you'd choose to support
Glimmer as a backend or not. The only thing that matters to me is
offering a technologically sound solution and a community service. You
decide for yourself whether to take it or leave it. It is your gain or
loss in the end, not mine. After all, I am already living happily on
cloud 9 while writing awesomely concise and expressive Ruby code to
build desktop GUI apps.

On Mon, Nov 1, 2021 at 8:14 PM Gregory Cohen <gregorycohen2@gmail.com> > wrote:
>
> Hey Andy,
>
> Thank you. I will install that package, and I will see if it works :slight_smile:
>
> I just wrote a desktop widget, and it works on Windows, and it shows my
site. It's transparent and it has no titlebar. Cross platform, probably
works well on Android, so I can make an app. I compiled it using just MXE
(MinGW32) and it works :slight_smile:
>
>
>
> Does anyone know of QuickJS?
>
> I'm able to compile Ruby into statically linked C. And it works :slight_smile:
>
> Ruby + Opal + QuickJS = Use Ruby for anything. No installer necessary.
Works on Windows and Wine, too.
>
>
>
>
> My site mostly works well (I have to pay money to improve the
certificate to make it work on mobile well.)
>
> It works in Safari, in Chrome, and probably in Firefox and other
browsers.
>
>
> I still have a little bit of work to do on it.
>
>
>
> QuickJS is utterly insane.
>
> It makes Opal work better.
>
> Opal isn`t very good at interacting with the desktop
>
> But in QuickJS, you can import std, then do std.in.getline(), and it
calls the C function getline(), and you get a Javascript line.
>
> Node.js`s createInterface function for the readline module is a nightmare
>
> --------------------------------------------------------------------
>
>
> I`m currently creating a script, well, I have it already, that turns
markup, a list, to representation.
>
>
> So
>
> [["hello", "world"], ["foo", "bar"]]
>
> would get represented as a markup-up HTML page (with appropriate divs
and spans) AND a cross platform C program which can be statically linked on
Windows, would be created, with no Installer, no dependencies, no Glade
file. Just 100% speed. Also, it would show you the content using Ruby GTK
>
>
>
> In other words, Ruby lists can be given to the program as an argument,
and you would, in theory, get ALL possible representations of that data,
which could then be stylized with CSS (which both Gtk and Qt support really
well)
>
>
>
>
> I could use Glimmer as another backend, but I would have to be able to
use it
>
> Attached is pictures of my desktop widget (the computer im using has no
screenshot tool)
>
> Im also now looking for work as a programmer and kind of trying to
pursue that
>
> I have an interview on Monday
>
> I also now have a graphical Windows installer, written using the Windows
API, for my gem
>
>
> All of the Windows work that I have been doing uses https://mxe.cc/
>
>
>
>
> Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org
?subject=unsubscribe>
> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>

--
Andy Maleh

LinkedIn: https://www.linkedin.com/in/andymaleh
Blog: http://andymaleh.blogspot.com
GitHub: http://www.github.com/AndyObtiva

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>

You're missing nearly 100% of what my program is about.

But I understand that you were making a demonstation.

···

On Mon, Nov 1, 2021 at 9:48 PM Andy Maleh <andy.am@gmail.com> wrote:

I'd hate to say it, but what you built is child's play in Glimmer. I'm
not sure why you haven't just simply used it.

All you have to do is ask for a no trim window shell to remove to top
title bar and set its alpha to a number lower than 100 to get a
transparent effect.

require 'glimmer-dsl-swt'

include Glimmer

shell(:no_trim) {
  grid_layout 2, false
  alpha 95
  minimum_size 800, 300

  label {
    layout_data {
      horizontal_span 2
    }

    text 'Enter Things'
    font height: 24
  }

  10.times do |n|
    label {
      text "Please enter feelings #{n}"
    }
    text {
    }
  end
}.open

And, it's in BEAUTIFUL PURE RUBY, not some nonsense JavaScript. Also,
you don't even need CSS. That is extra complexity you can let go of
too.

In fact, that's the whole point of building GUI apps with GUI
technologies. They're a lot simpler than overly bloated web
technologies. You don't need all the garbage web complexity people
spend endless days, weeks, and months in. You just build Ruby apps in
a day or less. In fact, I built Tetris in one day in Glimmer (and I am
neither a game programmer nor a Tetris freak). Check out this article
series about it:

Day 5 - glimmer_tetris Gem - Glimmer Tetris - The Playfield - Get Tetris Working in One Day! | Best of Ruby Gems Series
(do not be alarmed by the top header.. it is just a headline from
another unrelated article... simply ignore it)

https://raw.githubusercontent.com/AndyObtiva/glimmer-dsl-swt/v4.20.0.0/images/glimmer-tetris.png

In any case, it feels like you are trying to solve problems that do
not exist since they have been solved already. It would be much more
productive to use the existing solutions (like Glimmer) and try to
improve them instead with your own unique ideas and feedback. Lend a
brother a hand in the Ruby community instead of defecting to non-Ruby
JavaScript based (non-)solutions.

Anyways, I wouldn't care either way whether you'd choose to support
Glimmer as a backend or not. The only thing that matters to me is
offering a technologically sound solution and a community service. You
decide for yourself whether to take it or leave it. It is your gain or
loss in the end, not mine. After all, I am already living happily on
cloud 9 while writing awesomely concise and expressive Ruby code to
build desktop GUI apps.

On Mon, Nov 1, 2021 at 8:14 PM Gregory Cohen <gregorycohen2@gmail.com> > wrote:
>
> Hey Andy,
>
> Thank you. I will install that package, and I will see if it works :slight_smile:
>
> I just wrote a desktop widget, and it works on Windows, and it shows my
site. It's transparent and it has no titlebar. Cross platform, probably
works well on Android, so I can make an app. I compiled it using just MXE
(MinGW32) and it works :slight_smile:
>
>
>
> Does anyone know of QuickJS?
>
> I'm able to compile Ruby into statically linked C. And it works :slight_smile:
>
> Ruby + Opal + QuickJS = Use Ruby for anything. No installer necessary.
Works on Windows and Wine, too.
>
>
>
>
> My site mostly works well (I have to pay money to improve the
certificate to make it work on mobile well.)
>
> It works in Safari, in Chrome, and probably in Firefox and other
browsers.
>
>
> I still have a little bit of work to do on it.
>
>
>
> QuickJS is utterly insane.
>
> It makes Opal work better.
>
> Opal isn`t very good at interacting with the desktop
>
> But in QuickJS, you can import std, then do std.in.getline(), and it
calls the C function getline(), and you get a Javascript line.
>
> Node.js`s createInterface function for the readline module is a nightmare
>
> --------------------------------------------------------------------
>
>
> I`m currently creating a script, well, I have it already, that turns
markup, a list, to representation.
>
>
> So
>
> [["hello", "world"], ["foo", "bar"]]
>
> would get represented as a markup-up HTML page (with appropriate divs
and spans) AND a cross platform C program which can be statically linked on
Windows, would be created, with no Installer, no dependencies, no Glade
file. Just 100% speed. Also, it would show you the content using Ruby GTK
>
>
>
> In other words, Ruby lists can be given to the program as an argument,
and you would, in theory, get ALL possible representations of that data,
which could then be stylized with CSS (which both Gtk and Qt support really
well)
>
>
>
>
> I could use Glimmer as another backend, but I would have to be able to
use it
>
> Attached is pictures of my desktop widget (the computer im using has no
screenshot tool)
>
> Im also now looking for work as a programmer and kind of trying to
pursue that
>
> I have an interview on Monday
>
> I also now have a graphical Windows installer, written using the Windows
API, for my gem
>
>
> All of the Windows work that I have been doing uses https://mxe.cc/
>
>
>
>
> Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org
?subject=unsubscribe>
> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>

--
Andy Maleh

LinkedIn: https://www.linkedin.com/in/andymaleh
Blog: http://andymaleh.blogspot.com
GitHub: http://www.github.com/AndyObtiva

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>

*demonstration

Again, you're missing everything that I have been working on, and are
trying to miss it all.

···

On Mon, Nov 1, 2021 at 9:48 PM Andy Maleh <andy.am@gmail.com> wrote:

I'd hate to say it, but what you built is child's play in Glimmer. I'm
not sure why you haven't just simply used it.

All you have to do is ask for a no trim window shell to remove to top
title bar and set its alpha to a number lower than 100 to get a
transparent effect.

require 'glimmer-dsl-swt'

include Glimmer

shell(:no_trim) {
  grid_layout 2, false
  alpha 95
  minimum_size 800, 300

  label {
    layout_data {
      horizontal_span 2
    }

    text 'Enter Things'
    font height: 24
  }

  10.times do |n|
    label {
      text "Please enter feelings #{n}"
    }
    text {
    }
  end
}.open

And, it's in BEAUTIFUL PURE RUBY, not some nonsense JavaScript. Also,
you don't even need CSS. That is extra complexity you can let go of
too.

In fact, that's the whole point of building GUI apps with GUI
technologies. They're a lot simpler than overly bloated web
technologies. You don't need all the garbage web complexity people
spend endless days, weeks, and months in. You just build Ruby apps in
a day or less. In fact, I built Tetris in one day in Glimmer (and I am
neither a game programmer nor a Tetris freak). Check out this article
series about it:

Day 5 - glimmer_tetris Gem - Glimmer Tetris - The Playfield - Get Tetris Working in One Day! | Best of Ruby Gems Series
(do not be alarmed by the top header.. it is just a headline from
another unrelated article... simply ignore it)

https://raw.githubusercontent.com/AndyObtiva/glimmer-dsl-swt/v4.20.0.0/images/glimmer-tetris.png

In any case, it feels like you are trying to solve problems that do
not exist since they have been solved already. It would be much more
productive to use the existing solutions (like Glimmer) and try to
improve them instead with your own unique ideas and feedback. Lend a
brother a hand in the Ruby community instead of defecting to non-Ruby
JavaScript based (non-)solutions.

Anyways, I wouldn't care either way whether you'd choose to support
Glimmer as a backend or not. The only thing that matters to me is
offering a technologically sound solution and a community service. You
decide for yourself whether to take it or leave it. It is your gain or
loss in the end, not mine. After all, I am already living happily on
cloud 9 while writing awesomely concise and expressive Ruby code to
build desktop GUI apps.

On Mon, Nov 1, 2021 at 8:14 PM Gregory Cohen <gregorycohen2@gmail.com> > wrote:
>
> Hey Andy,
>
> Thank you. I will install that package, and I will see if it works :slight_smile:
>
> I just wrote a desktop widget, and it works on Windows, and it shows my
site. It's transparent and it has no titlebar. Cross platform, probably
works well on Android, so I can make an app. I compiled it using just MXE
(MinGW32) and it works :slight_smile:
>
>
>
> Does anyone know of QuickJS?
>
> I'm able to compile Ruby into statically linked C. And it works :slight_smile:
>
> Ruby + Opal + QuickJS = Use Ruby for anything. No installer necessary.
Works on Windows and Wine, too.
>
>
>
>
> My site mostly works well (I have to pay money to improve the
certificate to make it work on mobile well.)
>
> It works in Safari, in Chrome, and probably in Firefox and other
browsers.
>
>
> I still have a little bit of work to do on it.
>
>
>
> QuickJS is utterly insane.
>
> It makes Opal work better.
>
> Opal isn`t very good at interacting with the desktop
>
> But in QuickJS, you can import std, then do std.in.getline(), and it
calls the C function getline(), and you get a Javascript line.
>
> Node.js`s createInterface function for the readline module is a nightmare
>
> --------------------------------------------------------------------
>
>
> I`m currently creating a script, well, I have it already, that turns
markup, a list, to representation.
>
>
> So
>
> [["hello", "world"], ["foo", "bar"]]
>
> would get represented as a markup-up HTML page (with appropriate divs
and spans) AND a cross platform C program which can be statically linked on
Windows, would be created, with no Installer, no dependencies, no Glade
file. Just 100% speed. Also, it would show you the content using Ruby GTK
>
>
>
> In other words, Ruby lists can be given to the program as an argument,
and you would, in theory, get ALL possible representations of that data,
which could then be stylized with CSS (which both Gtk and Qt support really
well)
>
>
>
>
> I could use Glimmer as another backend, but I would have to be able to
use it
>
> Attached is pictures of my desktop widget (the computer im using has no
screenshot tool)
>
> Im also now looking for work as a programmer and kind of trying to
pursue that
>
> I have an interview on Monday
>
> I also now have a graphical Windows installer, written using the Windows
API, for my gem
>
>
> All of the Windows work that I have been doing uses https://mxe.cc/
>
>
>
>
> Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org
?subject=unsubscribe>
> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>

--
Andy Maleh

LinkedIn: https://www.linkedin.com/in/andymaleh
Blog: http://andymaleh.blogspot.com
GitHub: http://www.github.com/AndyObtiva

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>

I think you missed 95% of what I wrote

I highly doubt it. My specialty has always been to zone in on waste
and eliminate it. Unfortunately, that sometimes meant eliminating
people's roles and ideas entirely at companies. As such, people
sometimes totally hate my guts while good managers appreciate it
because it saves their companies lots of money and time.

I am at least 10 years your senior, so I know a lot of things that you
don't know I know or that you can't even imagine (I was the same way
when I was your age, so I used to try to listen a lot more to people
older than me than the other way around). A little humility here is
advised. But again, you don't have to take my advice. If you prefer
overly complex solutions, you are obviously free to use them.

Also, if I am indeed wrong, which is not only possible, but happens
frequently (it's how I learn), then please correct me kindly instead
of getting upset or repeating that I don't get it over and over
without explaining nicely why to get past my mistake.

Cheers,

···

On Mon, Nov 1, 2021 at 10:53 PM Gregory Cohen <gregorycohen2@gmail.com> wrote:

Again, you're missing everything that I have been working on, and are trying to miss it all.

On Mon, Nov 1, 2021 at 9:48 PM Andy Maleh <andy.am@gmail.com> wrote:

I'd hate to say it, but what you built is child's play in Glimmer. I'm
not sure why you haven't just simply used it.

All you have to do is ask for a no trim window shell to remove to top
title bar and set its alpha to a number lower than 100 to get a
transparent effect.

require 'glimmer-dsl-swt'

include Glimmer

shell(:no_trim) {
  grid_layout 2, false
  alpha 95
  minimum_size 800, 300

  label {
    layout_data {
      horizontal_span 2
    }

    text 'Enter Things'
    font height: 24
  }

  10.times do |n|
    label {
      text "Please enter feelings #{n}"
    }
    text {
    }
  end
}.open

And, it's in BEAUTIFUL PURE RUBY, not some nonsense JavaScript. Also,
you don't even need CSS. That is extra complexity you can let go of
too.

In fact, that's the whole point of building GUI apps with GUI
technologies. They're a lot simpler than overly bloated web
technologies. You don't need all the garbage web complexity people
spend endless days, weeks, and months in. You just build Ruby apps in
a day or less. In fact, I built Tetris in one day in Glimmer (and I am
neither a game programmer nor a Tetris freak). Check out this article
series about it:

Day 5 - glimmer_tetris Gem - Glimmer Tetris - The Playfield - Get Tetris Working in One Day! | Best of Ruby Gems Series
(do not be alarmed by the top header.. it is just a headline from
another unrelated article... simply ignore it)

https://raw.githubusercontent.com/AndyObtiva/glimmer-dsl-swt/v4.20.0.0/images/glimmer-tetris.png

In any case, it feels like you are trying to solve problems that do
not exist since they have been solved already. It would be much more
productive to use the existing solutions (like Glimmer) and try to
improve them instead with your own unique ideas and feedback. Lend a
brother a hand in the Ruby community instead of defecting to non-Ruby
JavaScript based (non-)solutions.

Anyways, I wouldn't care either way whether you'd choose to support
Glimmer as a backend or not. The only thing that matters to me is
offering a technologically sound solution and a community service. You
decide for yourself whether to take it or leave it. It is your gain or
loss in the end, not mine. After all, I am already living happily on
cloud 9 while writing awesomely concise and expressive Ruby code to
build desktop GUI apps.

On Mon, Nov 1, 2021 at 8:14 PM Gregory Cohen <gregorycohen2@gmail.com> wrote:
>
> Hey Andy,
>
> Thank you. I will install that package, and I will see if it works :slight_smile:
>
> I just wrote a desktop widget, and it works on Windows, and it shows my site. It's transparent and it has no titlebar. Cross platform, probably works well on Android, so I can make an app. I compiled it using just MXE (MinGW32) and it works :slight_smile:
>
>
>
> Does anyone know of QuickJS?
>
> I'm able to compile Ruby into statically linked C. And it works :slight_smile:
>
> Ruby + Opal + QuickJS = Use Ruby for anything. No installer necessary. Works on Windows and Wine, too.
>
>
>
>
> My site mostly works well (I have to pay money to improve the certificate to make it work on mobile well.)
>
> It works in Safari, in Chrome, and probably in Firefox and other browsers.
>
>
> I still have a little bit of work to do on it.
>
>
>
> QuickJS is utterly insane.
>
> It makes Opal work better.
>
> Opal isn`t very good at interacting with the desktop
>
> But in QuickJS, you can import std, then do std.in.getline(), and it calls the C function getline(), and you get a Javascript line.
>
> Node.js`s createInterface function for the readline module is a nightmare
>
> --------------------------------------------------------------------
>
>
> I`m currently creating a script, well, I have it already, that turns markup, a list, to representation.
>
>
> So
>
> [["hello", "world"], ["foo", "bar"]]
>
> would get represented as a markup-up HTML page (with appropriate divs and spans) AND a cross platform C program which can be statically linked on Windows, would be created, with no Installer, no dependencies, no Glade file. Just 100% speed. Also, it would show you the content using Ruby GTK
>
>
>
> In other words, Ruby lists can be given to the program as an argument, and you would, in theory, get ALL possible representations of that data, which could then be stylized with CSS (which both Gtk and Qt support really well)
>
>
>
>
> I could use Glimmer as another backend, but I would have to be able to use it
>
> Attached is pictures of my desktop widget (the computer im using has no screenshot tool)
>
> Im also now looking for work as a programmer and kind of trying to pursue that
>
> I have an interview on Monday
>
> I also now have a graphical Windows installer, written using the Windows API, for my gem
>
>
> All of the Windows work that I have been doing uses https://mxe.cc/
>
>
>
>
> Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>

--
Andy Maleh

LinkedIn: https://www.linkedin.com/in/andymaleh
Blog: http://andymaleh.blogspot.com
GitHub: http://www.github.com/AndyObtiva

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>

--
Andy Maleh

LinkedIn: https://www.linkedin.com/in/andymaleh
Blog: http://andymaleh.blogspot.com
GitHub: http://www.github.com/AndyObtiva

I hate to break it to you, but people don't use your gem. It only has
74,000 downloads, which is not very many at all. Rails has more downloads
than the population of the US. You are so focused on promoting your gem
that you are missing the context of other things, to the point where it
becomes rude.

Moreover, it's hard to install. I have tried to install it multiple times
now, but it doesn't install. There is nothing wrong with my system, but it
doesn't run. I can't even run Hello world, and I know a lot of other people
would run into the same issue.

You didn't provide any help with that, and recommended that I "reinstall my
system".

Glimmer is not a very good solution to any of the potential factors in the
problem space that I'm dealing with.

I care about the end user.

I don't know if any end user would be able to use Glimmer.

I haven't gotten it to work, and you have evidently been reluctant to give
advice to help me to even install it.

Can you have people run your software without an installer?

Of course you can, but bare apps are larger in size, so they are more
difficult to share. PKG files on the Mac and MSI files on Windows are
compressed, so they are much smaller. Additionally, since they provide
an install program, they may provide options for the user to customize
the installation like install in the user directory instead of a
global directory.

···

On Mon, Nov 1, 2021 at 10:45 PM Gregory Cohen <gregorycohen2@gmail.com> wrote:

I think you missed 95% of what I wrote

Moreover, you were conflating things that were separate

A question I have is deployment.

Can you have people run your software without an installer?

On Mon, Nov 1, 2021 at 9:48 PM Andy Maleh <andy.am@gmail.com> wrote:

I'd hate to say it, but what you built is child's play in Glimmer. I'm
not sure why you haven't just simply used it.

All you have to do is ask for a no trim window shell to remove to top
title bar and set its alpha to a number lower than 100 to get a
transparent effect.

require 'glimmer-dsl-swt'

include Glimmer

shell(:no_trim) {
  grid_layout 2, false
  alpha 95
  minimum_size 800, 300

  label {
    layout_data {
      horizontal_span 2
    }

    text 'Enter Things'
    font height: 24
  }

  10.times do |n|
    label {
      text "Please enter feelings #{n}"
    }
    text {
    }
  end
}.open

And, it's in BEAUTIFUL PURE RUBY, not some nonsense JavaScript. Also,
you don't even need CSS. That is extra complexity you can let go of
too.

In fact, that's the whole point of building GUI apps with GUI
technologies. They're a lot simpler than overly bloated web
technologies. You don't need all the garbage web complexity people
spend endless days, weeks, and months in. You just build Ruby apps in
a day or less. In fact, I built Tetris in one day in Glimmer (and I am
neither a game programmer nor a Tetris freak). Check out this article
series about it:

Day 5 - glimmer_tetris Gem - Glimmer Tetris - The Playfield - Get Tetris Working in One Day! | Best of Ruby Gems Series
(do not be alarmed by the top header.. it is just a headline from
another unrelated article... simply ignore it)

https://raw.githubusercontent.com/AndyObtiva/glimmer-dsl-swt/v4.20.0.0/images/glimmer-tetris.png

In any case, it feels like you are trying to solve problems that do
not exist since they have been solved already. It would be much more
productive to use the existing solutions (like Glimmer) and try to
improve them instead with your own unique ideas and feedback. Lend a
brother a hand in the Ruby community instead of defecting to non-Ruby
JavaScript based (non-)solutions.

Anyways, I wouldn't care either way whether you'd choose to support
Glimmer as a backend or not. The only thing that matters to me is
offering a technologically sound solution and a community service. You
decide for yourself whether to take it or leave it. It is your gain or
loss in the end, not mine. After all, I am already living happily on
cloud 9 while writing awesomely concise and expressive Ruby code to
build desktop GUI apps.

On Mon, Nov 1, 2021 at 8:14 PM Gregory Cohen <gregorycohen2@gmail.com> wrote:
>
> Hey Andy,
>
> Thank you. I will install that package, and I will see if it works :slight_smile:
>
> I just wrote a desktop widget, and it works on Windows, and it shows my site. It's transparent and it has no titlebar. Cross platform, probably works well on Android, so I can make an app. I compiled it using just MXE (MinGW32) and it works :slight_smile:
>
>
>
> Does anyone know of QuickJS?
>
> I'm able to compile Ruby into statically linked C. And it works :slight_smile:
>
> Ruby + Opal + QuickJS = Use Ruby for anything. No installer necessary. Works on Windows and Wine, too.
>
>
>
>
> My site mostly works well (I have to pay money to improve the certificate to make it work on mobile well.)
>
> It works in Safari, in Chrome, and probably in Firefox and other browsers.
>
>
> I still have a little bit of work to do on it.
>
>
>
> QuickJS is utterly insane.
>
> It makes Opal work better.
>
> Opal isn`t very good at interacting with the desktop
>
> But in QuickJS, you can import std, then do std.in.getline(), and it calls the C function getline(), and you get a Javascript line.
>
> Node.js`s createInterface function for the readline module is a nightmare
>
> --------------------------------------------------------------------
>
>
> I`m currently creating a script, well, I have it already, that turns markup, a list, to representation.
>
>
> So
>
> [["hello", "world"], ["foo", "bar"]]
>
> would get represented as a markup-up HTML page (with appropriate divs and spans) AND a cross platform C program which can be statically linked on Windows, would be created, with no Installer, no dependencies, no Glade file. Just 100% speed. Also, it would show you the content using Ruby GTK
>
>
>
> In other words, Ruby lists can be given to the program as an argument, and you would, in theory, get ALL possible representations of that data, which could then be stylized with CSS (which both Gtk and Qt support really well)
>
>
>
>
> I could use Glimmer as another backend, but I would have to be able to use it
>
> Attached is pictures of my desktop widget (the computer im using has no screenshot tool)
>
> Im also now looking for work as a programmer and kind of trying to pursue that
>
> I have an interview on Monday
>
> I also now have a graphical Windows installer, written using the Windows API, for my gem
>
>
> All of the Windows work that I have been doing uses https://mxe.cc/
>
>
>
>
> Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>

--
Andy Maleh

LinkedIn: https://www.linkedin.com/in/andymaleh
Blog: http://andymaleh.blogspot.com
GitHub: http://www.github.com/AndyObtiva

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>

--
Andy Maleh

LinkedIn: https://www.linkedin.com/in/andymaleh
Blog: http://andymaleh.blogspot.com
GitHub: http://www.github.com/AndyObtiva

a little humility here is advised

Are you kidding me? Be humble.

···

On Mon, Nov 1, 2021 at 10:58 PM Andy Maleh <andy.am@gmail.com> wrote:

>> I think you missed 95% of what I wrote

I highly doubt it. My specialty has always been to zone in on waste
and eliminate it. Unfortunately, that sometimes meant eliminating
people's roles and ideas entirely at companies. As such, people
sometimes totally hate my guts while good managers appreciate it
because it saves their companies lots of money and time.

I am at least 10 years your senior, so I know a lot of things that you
don't know I know or that you can't even imagine (I was the same way
when I was your age, so I used to try to listen a lot more to people
older than me than the other way around). A little humility here is
advised. But again, you don't have to take my advice. If you prefer
overly complex solutions, you are obviously free to use them.

Also, if I am indeed wrong, which is not only possible, but happens
frequently (it's how I learn), then please correct me kindly instead
of getting upset or repeating that I don't get it over and over
without explaining nicely why to get past my mistake.

Cheers,

On Mon, Nov 1, 2021 at 10:53 PM Gregory Cohen <gregorycohen2@gmail.com> > wrote:
>
> Again, you're missing everything that I have been working on, and are
trying to miss it all.
>
> On Mon, Nov 1, 2021 at 9:48 PM Andy Maleh <andy.am@gmail.com> wrote:
>>
>> I'd hate to say it, but what you built is child's play in Glimmer. I'm
>> not sure why you haven't just simply used it.
>>
>> All you have to do is ask for a no trim window shell to remove to top
>> title bar and set its alpha to a number lower than 100 to get a
>> transparent effect.
>>
>> ```ruby
>> require 'glimmer-dsl-swt'
>>
>> include Glimmer
>>
>> shell(:no_trim) {
>> grid_layout 2, false
>> alpha 95
>> minimum_size 800, 300
>>
>> label {
>> layout_data {
>> horizontal_span 2
>> }
>>
>> text 'Enter Things'
>> font height: 24
>> }
>>
>> 10.times do |n|
>> label {
>> text "Please enter feelings #{n}"
>> }
>> text {
>> }
>> end
>> }.open
>> ```
>>
>> And, it's in BEAUTIFUL PURE RUBY, not some nonsense JavaScript. Also,
>> you don't even need CSS. That is extra complexity you can let go of
>> too.
>>
>> In fact, that's the whole point of building GUI apps with GUI
>> technologies. They're a lot simpler than overly bloated web
>> technologies. You don't need all the garbage web complexity people
>> spend endless days, weeks, and months in. You just build Ruby apps in
>> a day or less. In fact, I built Tetris in one day in Glimmer (and I am
>> neither a game programmer nor a Tetris freak). Check out this article
>> series about it:
>>
>>
Day 5 - glimmer_tetris Gem - Glimmer Tetris - The Playfield - Get Tetris Working in One Day! | Best of Ruby Gems Series
>> (do not be alarmed by the top header.. it is just a headline from
>> another unrelated article... simply ignore it)
>>
>>
https://raw.githubusercontent.com/AndyObtiva/glimmer-dsl-swt/v4.20.0.0/images/glimmer-tetris.png
>>
>> In any case, it feels like you are trying to solve problems that do
>> not exist since they have been solved already. It would be much more
>> productive to use the existing solutions (like Glimmer) and try to
>> improve them instead with your own unique ideas and feedback. Lend a
>> brother a hand in the Ruby community instead of defecting to non-Ruby
>> JavaScript based (non-)solutions.
>>
>> Anyways, I wouldn't care either way whether you'd choose to support
>> Glimmer as a backend or not. The only thing that matters to me is
>> offering a technologically sound solution and a community service. You
>> decide for yourself whether to take it or leave it. It is your gain or
>> loss in the end, not mine. After all, I am already living happily on
>> cloud 9 while writing awesomely concise and expressive Ruby code to
>> build desktop GUI apps.
>>
>> On Mon, Nov 1, 2021 at 8:14 PM Gregory Cohen <gregorycohen2@gmail.com> > wrote:
>> >
>> > Hey Andy,
>> >
>> > Thank you. I will install that package, and I will see if it works :slight_smile:
>> >
>> > I just wrote a desktop widget, and it works on Windows, and it shows
my site. It's transparent and it has no titlebar. Cross platform, probably
works well on Android, so I can make an app. I compiled it using just MXE
(MinGW32) and it works :slight_smile:
>> >
>> >
>> >
>> > Does anyone know of QuickJS?
>> >
>> > I'm able to compile Ruby into statically linked C. And it works :slight_smile:
>> >
>> > Ruby + Opal + QuickJS = Use Ruby for anything. No installer
necessary. Works on Windows and Wine, too.
>> >
>> >
>> >
>> >
>> > My site mostly works well (I have to pay money to improve the
certificate to make it work on mobile well.)
>> >
>> > It works in Safari, in Chrome, and probably in Firefox and other
browsers.
>> >
>> >
>> > I still have a little bit of work to do on it.
>> >
>> >
>> >
>> > QuickJS is utterly insane.
>> >
>> > It makes Opal work better.
>> >
>> > Opal isn`t very good at interacting with the desktop
>> >
>> > But in QuickJS, you can import std, then do std.in.getline(), and it
calls the C function getline(), and you get a Javascript line.
>> >
>> > Node.js`s createInterface function for the readline module is a
nightmare
>> >
>> > --------------------------------------------------------------------
>> >
>> >
>> > I`m currently creating a script, well, I have it already, that turns
markup, a list, to representation.
>> >
>> >
>> > So
>> >
>> > [["hello", "world"], ["foo", "bar"]]
>> >
>> > would get represented as a markup-up HTML page (with appropriate divs
and spans) AND a cross platform C program which can be statically linked on
Windows, would be created, with no Installer, no dependencies, no Glade
file. Just 100% speed. Also, it would show you the content using Ruby GTK
>> >
>> >
>> >
>> > In other words, Ruby lists can be given to the program as an
argument, and you would, in theory, get ALL possible representations of
that data, which could then be stylized with CSS (which both Gtk and Qt
support really well)
>> >
>> >
>> >
>> >
>> > I could use Glimmer as another backend, but I would have to be able
to use it
>> >
>> > Attached is pictures of my desktop widget (the computer im using has
no screenshot tool)
>> >
>> > Im also now looking for work as a programmer and kind of trying to
pursue that
>> >
>> > I have an interview on Monday
>> >
>> > I also now have a graphical Windows installer, written using the
Windows API, for my gem
>> >
>> >
>> > All of the Windows work that I have been doing uses https://mxe.cc/
>> >
>> >
>> >
>> >
>> > Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org
?subject=unsubscribe>
>> > <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>
>>
>>
>>
>> --
>> Andy Maleh
>>
>> LinkedIn: https://www.linkedin.com/in/andymaleh
>> Blog: http://andymaleh.blogspot.com
>> GitHub: http://www.github.com/AndyObtiva
>>
>> Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org
?subject=unsubscribe>
>> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>
>
>
> Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org
?subject=unsubscribe>
> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>

--
Andy Maleh

LinkedIn: https://www.linkedin.com/in/andymaleh
Blog: http://andymaleh.blogspot.com
GitHub: http://www.github.com/AndyObtiva

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>

How would I even install this on Linux?

···

On Mon, Nov 1, 2021 at 11:01 PM Andy Maleh <andy.am@gmail.com> wrote:

> Can you have people run your software without an installer?

Of course you can, but bare apps are larger in size, so they are more
difficult to share. PKG files on the Mac and MSI files on Windows are
compressed, so they are much smaller. Additionally, since they provide
an install program, they may provide options for the user to customize
the installation like install in the user directory instead of a
global directory.

On Mon, Nov 1, 2021 at 10:45 PM Gregory Cohen <gregorycohen2@gmail.com> > wrote:
>
> I think you missed 95% of what I wrote
>
> Moreover, you were conflating things that were separate
>
> A question I have is deployment.
>
> Can you have people run your software without an installer?
>
> On Mon, Nov 1, 2021 at 9:48 PM Andy Maleh <andy.am@gmail.com> wrote:
>>
>> I'd hate to say it, but what you built is child's play in Glimmer. I'm
>> not sure why you haven't just simply used it.
>>
>> All you have to do is ask for a no trim window shell to remove to top
>> title bar and set its alpha to a number lower than 100 to get a
>> transparent effect.
>>
>> ```ruby
>> require 'glimmer-dsl-swt'
>>
>> include Glimmer
>>
>> shell(:no_trim) {
>> grid_layout 2, false
>> alpha 95
>> minimum_size 800, 300
>>
>> label {
>> layout_data {
>> horizontal_span 2
>> }
>>
>> text 'Enter Things'
>> font height: 24
>> }
>>
>> 10.times do |n|
>> label {
>> text "Please enter feelings #{n}"
>> }
>> text {
>> }
>> end
>> }.open
>> ```
>>
>> And, it's in BEAUTIFUL PURE RUBY, not some nonsense JavaScript. Also,
>> you don't even need CSS. That is extra complexity you can let go of
>> too.
>>
>> In fact, that's the whole point of building GUI apps with GUI
>> technologies. They're a lot simpler than overly bloated web
>> technologies. You don't need all the garbage web complexity people
>> spend endless days, weeks, and months in. You just build Ruby apps in
>> a day or less. In fact, I built Tetris in one day in Glimmer (and I am
>> neither a game programmer nor a Tetris freak). Check out this article
>> series about it:
>>
>>
Day 5 - glimmer_tetris Gem - Glimmer Tetris - The Playfield - Get Tetris Working in One Day! | Best of Ruby Gems Series
>> (do not be alarmed by the top header.. it is just a headline from
>> another unrelated article... simply ignore it)
>>
>>
https://raw.githubusercontent.com/AndyObtiva/glimmer-dsl-swt/v4.20.0.0/images/glimmer-tetris.png
>>
>> In any case, it feels like you are trying to solve problems that do
>> not exist since they have been solved already. It would be much more
>> productive to use the existing solutions (like Glimmer) and try to
>> improve them instead with your own unique ideas and feedback. Lend a
>> brother a hand in the Ruby community instead of defecting to non-Ruby
>> JavaScript based (non-)solutions.
>>
>> Anyways, I wouldn't care either way whether you'd choose to support
>> Glimmer as a backend or not. The only thing that matters to me is
>> offering a technologically sound solution and a community service. You
>> decide for yourself whether to take it or leave it. It is your gain or
>> loss in the end, not mine. After all, I am already living happily on
>> cloud 9 while writing awesomely concise and expressive Ruby code to
>> build desktop GUI apps.
>>
>> On Mon, Nov 1, 2021 at 8:14 PM Gregory Cohen <gregorycohen2@gmail.com> > wrote:
>> >
>> > Hey Andy,
>> >
>> > Thank you. I will install that package, and I will see if it works :slight_smile:
>> >
>> > I just wrote a desktop widget, and it works on Windows, and it shows
my site. It's transparent and it has no titlebar. Cross platform, probably
works well on Android, so I can make an app. I compiled it using just MXE
(MinGW32) and it works :slight_smile:
>> >
>> >
>> >
>> > Does anyone know of QuickJS?
>> >
>> > I'm able to compile Ruby into statically linked C. And it works :slight_smile:
>> >
>> > Ruby + Opal + QuickJS = Use Ruby for anything. No installer
necessary. Works on Windows and Wine, too.
>> >
>> >
>> >
>> >
>> > My site mostly works well (I have to pay money to improve the
certificate to make it work on mobile well.)
>> >
>> > It works in Safari, in Chrome, and probably in Firefox and other
browsers.
>> >
>> >
>> > I still have a little bit of work to do on it.
>> >
>> >
>> >
>> > QuickJS is utterly insane.
>> >
>> > It makes Opal work better.
>> >
>> > Opal isn`t very good at interacting with the desktop
>> >
>> > But in QuickJS, you can import std, then do std.in.getline(), and it
calls the C function getline(), and you get a Javascript line.
>> >
>> > Node.js`s createInterface function for the readline module is a
nightmare
>> >
>> > --------------------------------------------------------------------
>> >
>> >
>> > I`m currently creating a script, well, I have it already, that turns
markup, a list, to representation.
>> >
>> >
>> > So
>> >
>> > [["hello", "world"], ["foo", "bar"]]
>> >
>> > would get represented as a markup-up HTML page (with appropriate divs
and spans) AND a cross platform C program which can be statically linked on
Windows, would be created, with no Installer, no dependencies, no Glade
file. Just 100% speed. Also, it would show you the content using Ruby GTK
>> >
>> >
>> >
>> > In other words, Ruby lists can be given to the program as an
argument, and you would, in theory, get ALL possible representations of
that data, which could then be stylized with CSS (which both Gtk and Qt
support really well)
>> >
>> >
>> >
>> >
>> > I could use Glimmer as another backend, but I would have to be able
to use it
>> >
>> > Attached is pictures of my desktop widget (the computer im using has
no screenshot tool)
>> >
>> > Im also now looking for work as a programmer and kind of trying to
pursue that
>> >
>> > I have an interview on Monday
>> >
>> > I also now have a graphical Windows installer, written using the
Windows API, for my gem
>> >
>> >
>> > All of the Windows work that I have been doing uses https://mxe.cc/
>> >
>> >
>> >
>> >
>> > Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org
?subject=unsubscribe>
>> > <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>
>>
>>
>>
>> --
>> Andy Maleh
>>
>> LinkedIn: https://www.linkedin.com/in/andymaleh
>> Blog: http://andymaleh.blogspot.com
>> GitHub: http://www.github.com/AndyObtiva
>>
>> Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org
?subject=unsubscribe>
>> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>
>
>
> Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org
?subject=unsubscribe>
> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>

--
Andy Maleh

LinkedIn: https://www.linkedin.com/in/andymaleh
Blog: http://andymaleh.blogspot.com
GitHub: http://www.github.com/AndyObtiva

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>

Ease of installation and usage matters for me.

I like QuickJS in general, though while it's easy to bind the libc using it, binding more complicated things (like external libraries) may be a mess. GJS may be a lot better in this manner. Also, I'm not sure it can even produce .exe files (ELF executables are possible). You may want to take a look at MRuby, which can be statically linked in a similar manner.

Btw. opal 1.3 supports `gets` for the following runners: chrome, gjs, nodejs, quickjs, miniracer (+ small Ruby side binding for miniracer). You are right that NodeJS API for just getting a line is a mess, but all this is abstracted away.

Another problem with QuickJS that I see is that its development process... leaves a lot to be desired. It isn't developed in the open, but only releases are dropped now and then. It is also basically a two man project. It also has no support for the stacktraces somehow.

I added support in Opal for both QuickJS and GJS mostly for experimentation purposes (and making tests run on foreign engines, so we can weed out some errors). If you would like to extend on that, you are free to do so (please take a look at how we work with implementing IO [1] or File [2] on NodeJS, or how similar, albeit much lesser bindings are done for GJS [3] and QuickJS [4]). Unfortunately, I moved to other parts of Opal recently so this support won't be extended a lot by me in the near future.

[1] opal/io.rb at master · opal/opal · GitHub

[2] opal/file.rb at master · opal/opal · GitHub

[3] opal/stdlib/gjs at master · opal/opal · GitHub

[4] opal/stdlib/quickjs at master · opal/opal · GitHub

···

On 11/2/21 00:30, Gregory Cohen wrote:

Hey Andy,

Thank you. I will install that package, and I will see if it works :slight_smile:

I just wrote a desktop widget, and it works on Windows, and it shows my site. It's transparent and it has no titlebar. Cross platform, probably works well on Android, so I can make an app. I compiled it using just MXE (MinGW32) and it works :slight_smile:

Does anyone know of QuickJS?

I'm able to compile Ruby into statically linked C. And it works :slight_smile:

Ruby + Opal + QuickJS = Use Ruby for anything. No installer necessary. Works on Windows and Wine, too.

My site mostly works well (I have to pay money to improve the certificate to make it work on mobile well.)

It works in Safari, in Chrome, and probably in Firefox and other browsers.

I still have a little bit of work to do on it.

QuickJS is utterly insane.

It makes Opal work better.

Opal isn`t very good at interacting with the desktop

But in QuickJS, you can import std, then do std.in.getline(), and it calls the C function getline(), and you get a Javascript line.

Node.js`s createInterface function for the readline module is a nightmare

--------------------------------------------------------------------

I`m currently creating a script, well, I have it already, that turns markup, a list, to representation.

So

[["hello", "world"], ["foo", "bar"]]

would get represented as a markup-up HTML page (with appropriate divs and spans) AND a cross platform C program which can be statically linked on Windows, would be created, with no Installer, no dependencies, no Glade file. Just 100% speed. Also, it would show you the content using Ruby GTK

In other words, Ruby lists can be given to the program as an argument, and you would, in theory, get ALL possible representations of that data, which could then be stylized with CSS (which both Gtk and Qt support really well)

I could use Glimmer as another backend, but I would have to be able to use it

Attached is pictures of my desktop widget (the computer im using has no screenshot tool)

Im also now looking for work as a programmer and kind of trying to pursue that

I have an interview on Monday

I also now have a graphical Windows installer, written using the Windows API, for my gem

All of the Windows work that I have been doing uses https://mxe.cc/

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>

Also, if I am indeed wrong, which is not only possible, but happens

frequently (it's how I learn), then please correct me kindly instead
of getting upset or repeating that I don't get it over and over
without explaining nicely why to get past my mistake.

To start, how do I even install Glimmer?

What are the secret dependencies?

It is certainly possible to use `gzexe` on Unix to reduce a binary size. Tons of similar approaches exist for Windows as well.

···

On 11/2/21 04:01, Andy Maleh wrote:

Can you have people run your software without an installer?

Of course you can, but bare apps are larger in size, so they are more
difficult to share. PKG files on the Mac and MSI files on Windows are
compressed, so they are much smaller. Additionally, since they provide
an install program, they may provide options for the user to customize
the installation like install in the user directory instead of a
global directory.