Please tell us your contact details like full name, email, github ID, blog, etc.
What are you currently engaged in? Where do you work or study?
What is your experience level with Ruby? What is your experience with Tensor Flow or AI in general?
%% saddle: saddle | |
function [z] = saddle(x, y) | |
z = x*x - y*y; | |
endfunction | |
x = [-20.0,-19.0,-18.0,-17.0,-16.0,-15.0,-14.0,-13.0,-12.0,-11.0,-10.0,-9.0,-8.0,-7.0,-6.0,-5.0,-4.0,-3.0,-2.0,-1.0,0.0,1.0,2.0,3.0,4.0,5.0,6.0,7.0,8.0,9.0,10.0,11.0,12.0,13.0,14.0,15.0,16.0,17.0,18.0,19.0,20.0]; | |
y = [-20.0,-19.0,-18.0,-17.0,-16.0,-15.0,-14.0,-13.0,-12.0,-11.0,-10.0,-9.0,-8.0,-7.0,-6.0,-5.0,-4.0,-3.0,-2.0,-1.0,0.0,1.0,2.0,3.0,4.0,5.0,6.0,7.0,8.0,9.0,10.0,11.0,12.0,13.0,14.0,15.0,16.0,17.0,18.0,19.0,20.0]; | |
temp = []; |
xarr = GSL::Vector.alloc([-2.0, -1.0, 0.0, 1.0, 2.0]) | |
yarr = GSL::Vector.alloc([-2.0, -1.0, 0.0, 1.0, 2.0]) | |
a = [] | |
xarr.each do |x| | |
yarr.each do |y| | |
a << x*x - y*y | |
end | |
end | |
puts a.inspect # this array has been put into the C program | |
zarr = GSL::Vector.alloc(a) |
require 'daru' | |
require 'statsample-glm' | |
require 'open-uri' | |
content = open('http://www.ats.ucla.edu/stat/data/binary.csv') | |
File.write('binary.csv', content.read) | |
df = Daru::DataFrame.from_csv "binary.csv" | |
df.vectors = Daru::Index.new(['admit', 'gre', 'gpa', 'rank']) | |
df.to_category 'rank' |
/* C extension for basic_ruby_method. | |
This file in generated by Rubex. Do not change! | |
*/ | |
#include <ruby.h> | |
#include <stdint.h> | |
VALUE __rubex_f_addition (int argc, VALUE* argv, VALUE __rubex_arg_self); | |
VALUE __rubex_f_addition (int argc, VALUE* argv, VALUE __rubex_arg_self) | |
{ | |
int32_t __rubex_arg_a; |
Sameer Deshmukh
Email - sameer.deshmukh93@gmail.com
GitHub - @v0dro
Dear Koichi,
I have bunch of questions about Ruby's Garbage Collection. But before I proceed to ask, I would like to update you properly on the current progress that I have accomplished with Rubex.
As of now I have finished most of the objectives that I had stated in the original proposal that was sent to the Ruby Association. So now, one can declare simple primitive data types, arrays, Ruby methods and even loops in Rubex and all of it is handled gracefully by the Rubex compiler.
All the objectives that I had specified for the Ruby Grant application final term report except the creating unions and enums have been met.
Rubex can now use code from external C libraries.
For example, to use the RSTRING_LEN
macro from the ruby.h
header file in a method, the following code snippet can be used:
lib ruby do
double RSTRING_LEN(object)
Easy and fast analysis of data is an uphill task for any Rubyist today. Ruby has been mostly restricted to web development and scripting, until now. In this talk we will have a look at daru, a gem from the Ruby Science Foundation specifically developed for simplifying data analysis tasks for Rubyists.
You will learn how you can use daru for analyzing large data sets and get a tour of daru being coupled with other Ruby tools like pry, iruby and nyaplot for interactive and standalone data analysis and plotting for gaining quick insights into your data — all with a few lines of Ruby code.
This will be an example-driven talk on performing advanced yet simple to understand data analysis tasks in Ruby using daru and other allied scientific gems like iruby, nyaplot, gnuplotrb and nmatrix. Since Ruby is m
# In a calling Ruby script caller.rb | |
require ‘compiled_binary.so’ | |
def compute_without_gil | |
t = [] | |
4.times { t << Thread.new { _some_computation } | |
4.times { t.join } | |
end |