XRuby 0.3.1发布了!

发布总是一件快乐的事,尤其是有比较大的进步时。

在这个版本中,XRuby带来标准库的预编译,这意味着今后执行那些标准库直接就是加载编译之后的字节码,而无需再次编译,这样的做法对于提升运行时效率是有好处的。

有一个与编译相关的话题。之前,Jon Tirsen曾经谈到JRuby的一个问题,运行在AppServer中会有占用太多内存。经过分析得知,为了提高程序的并发性,程序运行会启动多个 JRuby。每个JRuby解析Ruby脚本都会建立一棵完整的语法树,这就意味着,由于这种解析模式本身的限制,对于同样的内容,内存中需要保存多份相 同的语法树,这种做法意味着无谓的耗用了大量的内存。采用编译的做法,则可以很好的避免这个问题。因为在运行时,相同的是字节码,而JVM很好的帮我们解 决字节码共享问题,无需耗用大量的内存。

从0.3.0起步的Annotation,在这个版本基本上完成了builtin的移植工作,这个工作完成使得XRuby的代码结构看上去更加清晰,消除了一个非常容易产生误解的地方。当然Annotation本身还有许多需要完善的地方。

Ruby Hacking Guide中文版第一部分的发布,可以给更多的人了解Ruby实现的机会。
http://www.iteye.com/topic/126817

如果你想尝试在书中学到的内容,XRuby是一个非常好的机会。欢迎对此有兴趣的人加入我们!
如何用Arduino和HX711压力传感器制作一个简易电子秤(含OLED显示) 本文详细介绍了如何使用Arduino、HX711压力传感器和OLED显示屏制作一个简易电子秤。从硬件连接到软件编程,提供了分步教程,包括核心元件功能解析、接线方法、库安装、模块测试以及关键的校准流程。项目实践性强,适合创客和DIY爱好者学习嵌入式系统与传感器应用。 阅读详情

相关推荐

Android 开发实战:从零到一集成 espeak-ng 实现中文离线 TTS(无需账号开箱即用)

本文详细介绍了如何在 Android 项目中集成 espeak-ng,实现中文离线语音播报。通过下载 so 库、编写 Java 接口、封装管理类,开发者可快速构建无需账号的 TTS 功能。文章覆盖从零到一的开发步骤、调试技巧及性能优化,适合中高级 Android 开发者参考。

全栈 3322

XRuby 0.1.4发布了!

XRuby 0.1.4发布了! [url]http://xruby.blogspot.com/2007/04/xruby-014-released.html[/url] 向0.2.0又迈进了一步!0.2.0的目标是让单元测试框架可以运行起来。 这个版本中终于将我写的Runtime集成进去了,虽然只是主体结构,还有不少要调整的地方。 我的开发过程:[url=http://dreamh...

梦想风暴 324

高德地图JS API私有化部署实战:从数据爬取到内网集成

本文详细介绍了高德地图JS API私有化部署的完整流程,涵盖从地图瓦片数据爬取、JS API离线化改造到内网项目集成的实战步骤。重点解决了在封闭内网环境中实现地图功能的核心难题,并提供了Vue.js项目中的具体集成代码与调试技巧,帮助开发者在离线环境下构建稳定可靠的地图应用。

weixin_29062255的博客 319

XRuby 0.2.0发布了!

XRuby 0.2.0发布了! xruby.blogspot.com/2007/05/xruby-020-released.html 这是一次版本号的提升,主要是加入了test::unit的支持,现在这个框架已经可以运行了,并且,通过了一部分ruby自带的单元测试。下一次版本号提升时,我们希望可以让所有ruby自带的单元测试全部通过。 另一个重大的变化是beanworms为XRuby加入了de...

梦想风暴 446

旧版Linux安装新NVIDIA显卡“No devices were found”排查实战

在Linux系统里安装NVIDIA闭源驱动,本质是加载内核模块并让它在PCIe总线上匹配设备ID。当遇到“No devices were found”这类提示,很多人误以为显卡损坏,其实问题常出在驱动层与硬件间的兼容链路。新架构显卡(如RTX 5090)对内核版本、BAR窗口、nouveau冲突等都有更高要求,而老发行版(如麒麟V10)的内核相对保守,nvidia-smi自然无法识别设备。本文从基础概念出发,讲解如何用lspci、lsmod、dmesg定位问题层级,系统梳理禁用nouveau、升级内核与工具

weixin_42638178的博客 302

XRuby 0.3.0发布了!

XRuby 0.3.0发布了! 发布信息: http://xruby.blogspot.com/2007/08/xruby-030-released.html JavaEye镜像: http://xruby.iteye.com/blog/110336 这个版本最大的变化是,受到JRuby中Java 5相关讨论的启发,加入了以Annotation绑定Java方法和Ruby方法,简化了代码的编写。现...

梦想风暴 416

手把手教你用TJA1145A实现CAN节点智能唤醒(含数据帧过滤技巧)

本文详细介绍了如何使用TJA1145A收发器实现CAN节点的智能唤醒功能,包括数据帧过滤技巧和超低功耗设计。通过硬件级帧过滤和双条件唤醒机制,TJA1145A在保持微安级休眠电流的同时,能对特定报文做出毫秒级响应,显著提升电池供电设备的续航能力。

weixin_28721917的博客 257

XRuby发布了!

XRuby是什么?它是一个编译器。与其它编译器一样,它完成的工作是将一种格式的语言转换成另一种。与大多数编译器不同的是,它是将Ruby的代码(.rb)转换成Java的bytecode(.class)。XRuby是一个开源项目,很荣幸,我是这个项目的成员。 提起Ruby和Java的组合,现阶段,在人们脑中率先撞线的多半是JRuby。JRuby确实在结合Ruby和Java这条路上走了很长一段时间,尤其...

梦想风暴 361

AIGC算法工程师-面试八股文-2025年版本-算法八股文/工程八股文/开放式问题

​两年前整理了《AIGC算法工程师 面试八股文》,全网一共有100w读者看过,收到了很多小伙伴的催更。Diffusion的技术发展非常快,博主特意整理了最近两年最新的八股文,内容非常全面,涵盖算法八股文/工程八股文/开放式问题三个大类,希望能为求职的读者们带来帮助。

沉迷单车的追风少年 4189

康耐视visionpro-CogBlobTool工具详细说明

康耐视visionpro-CogBlobTool工具详细说明

视觉人机器视觉的博客 1730

XRuby 0.1.2 released

XRuby 0.1.2 is now available for download from the project download page: http://code.google.com/p/xruby/downloads/listThis latest release contains more built-in libraries and a few bug fixes for the ...

xruby 265

1、CUDA 编程基础

GPU计算的发展历程与重要性。首先回顾了计算机技术的发展,特别是摩尔定律的影响,强调了计算能力的快速提升。然而,随着晶体管尺寸的缩小和频率的停滞,单线程性能增长放缓。为了继续提升性能,多核处理器开始普及,促使软件开发者开始考虑并行计算。介绍了延迟导向设计和吞吐量导向设计的概念,CPU和GPU分别代表了这两种设计方法。GPU是吞吐量导向的,拥有众多弱小的ALU,通过流水线处理提高算术吞吐量。GPU的成功在于其高并行性和高吞吐量,以及能够分摊高昂的固定成本的大量销售额。

Justinyh的博客 581

XRuby 0.1.0 released

[Link of this article: http://xruby.blogspot.com/2007/01/xruby-010-released.html]Today I am glad to announce the release XRuby 0.1.0 , a ruby compiler which compiles ruby script (.rb) to java bytecode...

xruby 160

LinePhone3.2.7(android端最新版本) sip客户端

SIP客户端For android:LinePhone3.2.7(最新版本),官网地址:http://www.linphone.org/

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain&#39;s apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath(&#39;DeepLearnToolbox&#39;));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand(&#39;state&#39;,0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W&#39;); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand(&#39;state&#39;,0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = &#39;sigm&#39;;%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, &#39;Too big error&#39;);```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand(&#39;state&#39;,0)sae = saesetup([784 100]);sae.ae{1}.activation_function = &#39;sigm&#39;;sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)&#39;)% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = &#39;sigm&#39;;nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, &#39;Too big error&#39;);```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x&#39;,28,28,60000))/255;test_x = double(reshape(test_x&#39;,28,28,10000))/255;train_y = double(train_y&#39;);test_y = double(test_y&#39;);%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you&#39;ll get around 1.2% errorrand(&#39;state&#39;,0)cnn.layers = { struct(&#39;type&#39;, &#39;i&#39;) %input layer struct(&#39;type&#39;, &#39;c&#39;, &#39;outputmaps&#39;, 6, &#39;kernelsize&#39;, 5) %convolution layer struct(&#39;type&#39;, &#39;s&#39;, &#39;scale&#39;, 2) %sub sampling layer struct(&#39;type&#39;, &#39;c&#39;, &#39;outputmaps&#39;, 12, &#39;kernelsize&#39;, 5) %convolution layer struct(&#39;type&#39;, &#39;s&#39;, &#39;scale&#39;, 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, &#39;Too big error&#39;);```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand(&#39;state&#39;,0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, &#39;Too big error&#39;);%% ex2 neural net with L2 weight decayrand(&#39;state&#39;,0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, &#39;Too big error&#39;);%% ex3 neural net with dropoutrand(&#39;state&#39;,0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, &#39;Too big error&#39;);%% ex4 neural net with sigmoid activation functionrand(&#39;state&#39;,0)nn = nnsetup([784 100 10]);nn.activation_function = &#39;sigm&#39;; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, &#39;Too big error&#39;);%% ex5 plotting functionalityrand(&#39;state&#39;,0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = &#39;softmax&#39;; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, &#39;Too big error&#39;);%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand(&#39;state&#39;,0)nn = nnsetup([784 20 10]); nn.output = &#39;softmax&#39;; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, &#39;Too big error&#39;);```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

XRuby 0.2.0 released

I am glad to announce that XRuby 0.2.0 is now available for download at: http://code.google.com/p/xruby/downloads/listHere is a summary of major changes in this release:1. Beanworms started to work on...

xruby 162

jdk-8u144-linux-x64.tar.gz.

该资源为搭建Linux系统Java环境用,资源的后缀为tar.gz格式的压缩包

xruby 0.3.0 released

I am pleased to announce that XRuby 0.3.0 is released:http://code.google.com/p/xruby/downloads/listWe have fixed lots of bugs and made significant improvement in the code.Changes from 0.2.1 to 0.3.0:1...

xruby 159

SAP B1中文培訓教材_SDK

公司内部培训资料,对开发工具 ,DIAPI, UIAPI,Add-ON有详细解说

XRuby 0.1.4 released

I am glad to announce that XRuby 0.1.4 is now available for download at: http://code.google.com/p/xruby/downloads/listThe most significant change in this release is: one of our team member, dreamhead,...

xruby 149

专访XRuby贡献者郑晔:软件开发不是自娱自乐(下)

郑晔今年五月份正式加入了ThoughtWorks,郑晔在自己的博客中是这样评价ThoughtWorks的,“在这里,你可以对很多事情发表看法,尽 管看起来与你的工作没什么关系,每个人都随和,相处起来十分舒服,这样一群人,真正做起工作来却是毫不含糊,大家决不会仅仅满足于交出一个仅仅可运行的版 本,不会交出满目疮痍的代码。需要帮助的话,只要把问题抛出来,只要有人懂,一定会毫不犹豫的过来帮忙。我们想要的

马沛专栏 4695

xruby 0.3.2发布了

基本和上一个版本(0.3.1)相比变化不大, 大多数都是bug fix. sishen加入了我们的项目,给我们带来了很多重要的改进。 下个版本(0.4.0)的目标就是支持yaml和rubygems。这里和原来的计划不太一样了。最初准备0.4.0的miltstone是先将ruby自带的所有unit test先通过,但目前的形势下,觉得还是支持ruby on rails最重要。这样就要提前面对yaml...

xruby 160

InfoQ中文站正式发布1.5版

从2007年3月28日InfoQ中文站预启动测试版上线,到今天也走过了一段艰辛而骄傲的路程。和InfoQ.com网站一样,InfoQ中文站的使命是成为国内关注企业软件开发领域变化和创新的源泉之地,向中文读者提供有深度的内容,专注于服务团队领导者、技术架构师、企业架构师、项目经理和高级软件开发人员。带着这种使命,过去的一段时间里,InfoQ中文站发布了: 444篇翻译+原创新闻

编辑空间 2158

ruby_parser 1.0:Ruby语言实现的Ruby语法分析器

07年12月22日,Ryan Davis宣布了ruby_parser的发布。ruby_parser是一个纯Ruby实现的Ruby源代码语法分析器。这个语法分析器的编写过程中使用了Ruby yACC (RACC),一个包含在Ruby标准库中的语法分析程序生成器。\ruby_parser(RP)是一个纯Ruby实现的Ruby语法分析器(借助了racc——它在缺省情况下使用C语言的扩展). RP的输出与...

cpongo5 412

编译与解释

编译与解释 - 梦想风暴 - 博客大巴一个小程序员的信口开河 &lt;&lt; XRuby 0.3.1和Ruby Hacking Guide中文版 | 首页 | 一篇XRuby概述的文章 &gt;&gt; 2007-10-10 编译与解释 Tag:向下走 版权声明:转载时请以超链接形式标明文章原始出处和作者信息及本声明 http://dreamhead...

weixin_33912445的博客 79

InfoQ中文站正式升级为1.4版

从2007年3月28日InfoQ中文站预启动测试版上线,到今天也走过了一段艰辛而骄傲的路程。和InfoQ.com网站一样,InfoQ中文站的使命是成为国内关注企业软件开发领域变化和创新的源泉之地,向中文读者提供有深度的内容,专注于服务团队领导者、技术架构师、企业架构师、项目经理和高级软件开发人员。带着这种使命,过去的一段时间里,InfoQ中文站发布了:\444篇翻译+原创新闻\ 88篇翻译+...

cpongo5 238

infoq中文站 发布《Grails入门指南 》中文版

曾经对XRuby JRuby这样的项目产生过怀疑,为什么要花费时间将JVM和Ruby联系在一起呢?得到的回答是,快并且 复用。我对脚本语言比较感兴趣,ruby是我最喜欢的脚本语言,然后是javascript,很早以前就听说过groovy脚本语言,但是没有具体接触过。这可能是跟我的c、c++出身有关,有时候,我对java是排斥的,对java相关的一切都不太关心。(当然,为了讨生活,还是要学习和使

软件开发资料汇总 393
上一篇: Ruby Hacking Guide中文版第一部分发布了!
下一篇: Fluorida 0.0.1发布了!
dreamhead
博客等级 码龄26年 19粉丝 13原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值