If so, I'm a bit at loss here:
What's the exact use case? I can see that a "Hello, World!" is easily done,
but Flammarion requires the user to have Chrome installed --- or the
programmer to make sure Chrome is present.
I'm not the author of Flammarion and not affilated with him, but I'll try
to answer this.
(I was planning to do almost the same in the future, with one difference:
just run Sinatra server in-process in separate thread, and point user's
default browser to it, thus eliminating dependency on concrete browser.)
About the use case.
Assume, I'm doing some useful script, which wants to ask some questions to
user, and output some data, but mostly it does some script-y task, theres
no need in constant GUI.
Or assume I'd want to experiment with something in IRB, but results are to
complicated to just show them in console (think some charts, or just
RMagick::Image). Or input is easier to do with mouse (think 2d "select the
point", or pick a color, or just some slider).
What options I have currently for those tasks?
Shoes is great, but relies on JRuby. Tk, which once was provided with Ruby,
is not more doing so. Qt? FXRuby? All of them have multitude of
dependencies, hard to bring to life on Windows, and typically are
"frameworks", not "tools".
So, the tool we need:
* Has simple API, targeting tasks like "ask for input" and "show the
output";
* Has as low dependencies and assumptions about target OS as possible;
* Looks rather contemporary to user;
* Provides now assumptions about structure of your project, being a library
you can call with one line of code and forget.
And here, the Flammarion.
···
2016-01-04 16:24 GMT+02:00 Eric MSP Veith <eveith@wwweb-library.net>:
Hey Zach,
On Monday 04 January 2016, 04:58:55, Zach Capalbo wrote:
> Announcing a brand new nifty gem for gui development in ruby!
congratulations on the Flammarion Gem!
> Flammarion is a gem for easily creating simple GUIs for displaying
> information or simple interactions. Rather than being a full fledged
> application development framework, Flammarion is aimed at making it
> simple to display pieces of information or get some graphical user
> interaction for scripts or simple applications. For instance, the
> Flammarion "Hello World" is super simple:
>
> require 'flammarion'
> Flammarion::Engraving.new.puts "Hello World"
From inspecting the source, it seems that Flammarion uses Chrome to display
HTML that is customized using Slim. Correct? If so, I'm a bit at loss here:
What's the exact use case? I can see that a "Hello, World!" is easily done,
but Flammarion requires the user to have Chrome installed --- or the
programmer to make sure Chrome is present.
To me, that seems quite heavyweight. Flammarion seems to buy a bit of
ease/niceness API-wise with quite an heavy dependency. Where's the
advantage
in comparison with, to pull another heavyweight, Qt with QML? Or Shoes? Do
you
care to elaborate?
Thanks.
--- Eric
Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>