Postings by Nicola Mingotti

issue with nailgun


I have JRuby- installed on Linux-Red Hat Enterprise Linux Server
7.6 (Maipo).

I am trying to use nailgun to run some Ruby shell scripts from the
command line
but I found a problem.

Performance gap between Ruby MRI and JRuby


I just completed writing an application which substitutes FileBeat, for
our Elasticsearch stack.

I wrote it in Ruby 2.5.0, I considered it a good idea to move it under
JRuby because the server where it runs is not under my direct control.
Running it as JRuby would ensure me better protection against future
changes in the server software stack. The idea is: make a .jar of it and
close the story
once and for all.

Since the Java env.

Apostrophe flag for printf

Hi guys,

There is this thing that to me seems very useful, I could try to
implement it
in a first slot of available free time. But, since it is messing with
"printf" I would
like to know what you do think about it.

One of the things that made me love Ruby at first sight was that i could
type long numbers as "123_332_231", with separators.

FreeBSD port for RubyTk

I prepared the FreeBSD port for gem 'tk' .

I don't know if it will be accepted and how long it will take
to see it in the ports tree. So, you can find it here attached in case
you want to try.

The port compiles against Tk8.6 and installs it if it is
not already present in the system.


How to gracefully kill IRB


leaving aside our RubyGUI debate for while, I have a question about IRB.

The script i have currently in dev. ends with this:
When I close the GUI (an action calling "Tk::exit; exit(0)" ) , the
shell invoking the script
remains in an inconsistent state, i type and i get nothing printed into
it. I must kill it.
(i am running the thing in FreeBSD, lanunching my script from a Konsole)

Is there a way i can terminate IRB REPL
without doing Ctrl-d or Ctrl-d from the REPL itself, without loosing the
invoking shell ?


An issue piping to "head"

Hi Rubysts !

I found this little issue, I woud like to know what you think about it.

This simple little script
I never saw errors coming out from "head".
As far as i understand "head" is closing the "pipe" and "Ruby" complains
it has not where to write to.

In my opinion an error should not be given, in line with what
happens in other Unix tools as
#> cat foofile | head


Unsubscribe: <m

a bug in BigDecimal ?


I was doing some computations JFF when I found
this :

require 'bigdecimal'

# ok => 2.718...
n = 1_000_000_000;
(( + /**

# gives infinity, not good, it should converge to value E or rise
# an exception if it can't compute it.
n = 1_000_000_000_0;
(( + /**

I am running Ruby 2.4.2, do you observe the same behaviour
in your release?


Unsubscribe: <mailto:r

Concerns about Ruby and Tk

Dear Rubists,

I am new to Ruby and I like it a lot. In short, i like it because
it has Python simplicity, Lisp consistency and Perl efficacy.

I have a concern I would like to share with you.
I had installed on my system a release of Ruby that in my opinion was
too old: 2.1.
So I decided to install a recent release from source since
in my Debian 8.9 (old stable) it is not possible to install it from apt.

The problem is I want to use 'tk' and installing 'tk' has
been really painful.

Irb Tab completion problem in Emacs

Hi everyone,

I just installed Ruby 2.4.2 from source.
and I am using Emacs 24.4.1 in Debian 8.9.

If I run irb in xterm, then Tab-completion *works*.

If i run irb in an Emacs shell with "M-x shell", then Tab-completion
*does not work*.

If I run irb in an Emacs shell with "M-x ansi-term", then Tab-completion

I would like to be able to use irb in Emacs "M-x shell" because
there it is easy to move and copy/paste code.

Do you know how to achieve this ?

I prefer to use an Emacs shell over installing a specialized ".el" just
for Ruby.
Because Emacs + "M-x shell" + "isend-mode" is w