Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Oct 25 14:44

    AndyObtiva on master

    Update README.md (compare)

  • Oct 22 10:54

    AndyObtiva on master

    Update PROCESS.md (compare)

  • Oct 18 11:10
    AndyObtiva closed #7
  • Oct 18 11:10
    AndyObtiva commented #7
  • Oct 18 02:38

    AndyObtiva on master

    Update issue_report.md (compare)

  • Oct 17 23:51

    AndyObtiva on master

    Create config.yml (compare)

  • Oct 17 23:51

    AndyObtiva on master

    Update and rename bug_report.md… (compare)

  • Oct 17 23:45

    AndyObtiva on master

    Update issue templates (compare)

  • Oct 17 23:43

    AndyObtiva on master

    Update issue templates (compare)

  • Oct 17 22:40
    AndyObtiva commented #7
  • Oct 17 22:09
    AndyObtiva commented #7
  • Oct 17 12:16
    mistergibson opened #7
  • Oct 17 04:14

    AndyObtiva on master

    Update README.md (compare)

  • Oct 16 21:53
    AndyObtiva closed #6
  • Oct 16 21:53
    AndyObtiva commented #6
  • Oct 16 21:50
    mistergibson commented #6
  • Oct 16 21:02
    AndyObtiva commented #6
  • Oct 16 20:59
    AndyObtiva commented #6
  • Oct 16 20:58
    AndyObtiva commented #6
  • Oct 16 20:48
    mistergibson commented #6
G. Gibson
@mistergibson
So, as I was saying: in my database driver I have two what would loosely be called 'models'. a PersistedHash and a PersistedArray - that's it. each can hold each other as well as a limited set of base element types (String, Boolean, Integer ...).
So it is very different from a straight table representation.
{ :a => 0, :b => 1, :c => [{:e => 2}, {:f => 3}], :d => {}} is a typical 'record' in my db.
I think the closest similarity is mongo_db
G. Gibson
@mistergibson
Just to give you the background on the DB stuff.
G. Gibson
@mistergibson
But that's not the alteration I'm thinking of just yet. Actually, I want to run glimmer totally inside my own JDK/JRUBY container independent of OS-installed Ruby or JRuby.
I have reasons to do this --> that's what I wanted to discuss.
G. Gibson
@mistergibson
At this point essentially, I need to be able to specify to glimmer/girb which jruby and which rake to use. So: glimmer --jruby /path/to/my/jruby --rake /path/to/my/rake would be desired. This would allow me to run it fully independent of the OS tools.
Andy Maleh
@AndyObtiva
I don't see big value in those requests since you can simply just use the raw jruby command (path/to/jruby -r './path/to/glimmer-dsl-swt' -S path/to/application.rb) as per instructions here: https://github.com/AndyObtiva/glimmer-dsl-swt#raw-jruby-command
G. Gibson
@mistergibson
ok
Andy Maleh
@AndyObtiva
As for linking to a different rake, you can simply do it in Bundler Gemfile in your application (e.g. gem 'rake', path: 'somepath'). Alternatively, you could symlink your installed rake directory (find out with gem which rake) into a different directory.
G. Gibson
@mistergibson
ok I see
G. Gibson
@mistergibson
Question : swt : swt has native gui widget bindings yes? ... or can be made to use them? I seem to remember something about it but I'm fuzzy on this.
G. Gibson
@mistergibson
The examples seem to indicate this -- silly question
Andy Maleh
@AndyObtiva
Yes, that's one of the strong suits of SWT. It leverages the native widgets on every operating system out of the box. That is the default. Glimmer DSL for SWT is just a wrapper in Ruby, so you get the native widgets automatically when using it.
G. Gibson
@mistergibson
sweet
How was your day?
Friday --> yay!
So, I wanted to let you know I don't use github, but gitlab for my repos
I run my own little server here at the apartment ;)
I really like it
G. Gibson
@mistergibson
Can I write custom scripts (behaviors) for shell widgets?
Does it use an event system like a web page for user events?
Andy Maleh
@AndyObtiva
Yes and yes
Shell widgets, which represent windows, can be wrapped as Custom Shells: https://github.com/AndyObtiva/glimmer-dsl-swt#custom-shells (Example: https://github.com/AndyObtiva/glimmer-cs-calculator)
G. Gibson
@mistergibson
ok
Andy Maleh
@AndyObtiva
There is a GUI event loop that is started when calling "shell.open". You generally do not need to be aware of it except when doing multi-threaded programming. In that case, you can only do GUI changes by executing code in async_exec or sync_exec blocks.
G. Gibson
@mistergibson
I am a threaded guy : I do threads all day
and JRuby makes it possible
Andy Maleh
@AndyObtiva
hello_custom_widget.rb has a good example of using multi-threading with Glimmer and using async_execinside a new thread: https://github.com/AndyObtiva/glimmer-dsl-swt/blob/master/samples/hello/hello_custom_widget.rb
G. Gibson
@mistergibson
ok
Andy Maleh
@AndyObtiva
Good news! I implemented your indirect suggestion of a glimmer run command. Now, if you're in a scaffolded app, and you run glimmer run, it automatically runs the app by invoking the right file under bin. It's in version 4.17.2.4: https://rubygems.org/gems/glimmer-dsl-swt/versions/4.17.2.4
G. Gibson
@mistergibson
sweet -- I helped :)
I'm still trying to wrap my head around how to stuff my data structures into your bound-data model thingy
I'll have to sneak up on that one I suspect.
Andy Maleh
@AndyObtiva
My advice is to avoid stuffing all of it at once. Grab only a teeny tiny bit of data at first and try to stuff that (like a list or one column in a table), and then add more data bit by bit, nesting deeper and deeper till you got it all.
G. Gibson
@mistergibson
ok
thanks
So - the only ruby on my system is now JRuby and I'm running my server under it. I'm a tad disturbed by how much memory it is taking to do very little at the moment.
I'm hunting for memory leaks just now
Andy Maleh
@AndyObtiva
That is a general Java thing. Java is a memory hog and since Glimmer runs via JRuby on Java, it uses a lot of memory (it reserves more memory than it is truly consuming, so you could not take its memory usage seriously while hunting for memory leaks). Practically though, with today's machines having more than 16GB of RAM, this is a very petty concern on the desktop. I have been using a number of Glimmer apps with no problem whatsoever regarding memory. Also, Java lets you limit how much memory an app takes with an option (prefix with -J for JRuby) -J-Xmx256m (limits memory by 256 megabytes)
G. Gibson
@mistergibson
ok
Andy Maleh
@AndyObtiva
This is partially why I started a new project recently called Glimmer DSL for Tk (https://github.com/AndyObtiva/glimmer-dsl-tk/). It aims at providing similar niceties to Glimmer DSL for SWT, but running MRI Ruby (aka CRuby) on top of the Tk GUI library. I still like Glimmer DSL for SWT because of awesome SWT and Nebula widgets, so I don't see the Tk version replacing it entirely, but it provides another alternative should java memory-usage/startup-time concerns be an issue.
G. Gibson
@mistergibson
makes sense
G. Gibson
@mistergibson
Oracle jdk download site down ... it is to bum
They say they are working on it
Andy Maleh
@AndyObtiva
Good news! Glimmer DSL for SWT v4.17.3.0 just got released, addressing Linux scaffolding issues and adding a new scaffolding command "scaffold:desktopify" and a new packaging command "package:gem". I just blogged about it here: https://andymaleh.blogspot.com/2020/10/desktopify-web-apps-with-one-glimmer.html
G. Gibson
@mistergibson
sweet --> good work
G. Gibson
@mistergibson
Question : Do you know if JavaFX is included in 8u241? I'd like to do multimedia widgets if possible.
the build for it in other versions of jdk are ugly and broken