How many people are actively developing MacRuby apart from Laurent?
Thanks, Joel
---
http://tinyco.de
Mac, Lisp, OCaml
___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
Has anyone succeeded with macruby 0.6, activerecord and mysql?
Would you have any pointers on getting up and running with the above?
Thanks in advance, Joel
---
http://twitter.com/wagerlabs
___
MacRuby-devel mailing list
snow leopard, gcc 4.2.1, mysql gem 2.8.1
mysql.c: In function ‘stmt_init’:
mysql.c:878: error: expected identifier or ‘(’ before numeric constant
mysql.c:883: error: lvalue required as unary ‘’ operand
Does this look familiar to anyone?
---
http://twitter.com/wagerlabs
mysql-gem does not install with mysql-5.1.47 because ext/mysql_api/mysql.c:878
has this code:
my_bool true = 1;
Unfortunately, 'true' is defined as 1 so you end up with
my_bool 1 = 1;
which is an error.
I fixed the issue in my local mysql-gem directory but for the life of me
On May 23, 2010, at 9:02 AM, Laurent Sansonetti wrote:
Feel free to file a ticket if you want to track that issue.
https://www.macruby.org/trac/ticket/728
In the meantime I'm afraid you will have to change the code manually, as you
already did...
My problem is that I can't manage to
On May 23, 2010, at 9:02 AM, Laurent Sansonetti wrote:
In the meantime I'm afraid you will have to change the code manually, as you
already did...
I can't manage to do this: http://pastie.org/973144
Thanks, Joel
---
http://twitter.com/wagerlabs
Finally, I was able to narrow it down to a bug in macruby.
I had to edit rbconfig.rb to remove -arch i386 from ARCH_FLAG, leaving it
with just -arch x86_64 which works for me. Then I had to remove the compiled
rbconfig.rbo.
All of the above leaves me with the bus error below. How do I debug
On May 23, 2010, at 8:37 PM, Laurent Sansonetti wrote:
Do you have a gdb backtrace or a crash log handy?
I don't know how to get one. I am just installing llvm and preparing to build
macruby from source.
---
http://twitter.com/wagerlabs
___
On May 23, 2010, at 8:45 PM, Laurent Sansonetti wrote:
Every time a program crashes, a crash log file is generated in
~/Library/Logs/CrashReporter (look for a macruby file there with the
appropriate time stamp).
It's crashing in rb_vm_dispatch, e.g.
http://gist.github.com/411199
---
Any suggestions?
Thanks, Joel
---
uname -a
Darwin biggie.local 10.3.0 Darwin Kernel Version 10.3.0: Fri Feb 26 11:57:13
PST 2010; root:xnu-1504.3.12~1/RELEASE_X86_64 x86_64
rake --verbose --trace
(in /Users/joelr/work/ruby/MacRuby)
** Invoke default (first_time)
** Invoke all
On May 23, 2010, at 10:40 PM, Laurent Sansonetti wrote:
Looks like your rake command uses the MacRuby rake.
Why do you say so?
---
http://twitter.com/wagerlabs
___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
On May 24, 2010, at 8:35 PM, Thibault Martin-Lagardette wrote:
What is the test_mysql.rb file that you are running?
I don't think I'm doing any thread application or running test_mysql.rb at all.
I'm just running macrake in the mysql gem directory.
---
http://twitter.com/wagerlabs
Louis-Philippe,
On May 27, 2010, at 3:25 PM, Louis-Philippe wrote:
Did find:
/PATH/MYSDK.framework/MYSDK: mach-o, but wrong architecture)
from /PATH/(irb):2:in `main'
Can you paste the output from the following?
uname -a
file ATH/MYSDK.framework/MYSDK
file `which macruby`
On May 27, 2010, at 3:48 PM, Louis-Philippe wrote:
./MYSDK (from the MYSDK.framework)
-bash: ./R3DSDK: No such file or directory
file PATH/MYSDK.framework/MYSDK
Run the file command on MYSDK
which macruby:
/usr/local/bin/macruby
Not `which macruby` but run the file command on macruby
I have a plugin that's supposed to call into MacRuby to deliver stock prices.
This may happen a few times per second.
I will be running other MacRuby code at the same time. Think a trading systems
development environment, with charting, Ruby code editing, etc.
Will MacRuby be able to handle
I would like to edit MacRuby code in a Cocoa text window, press a button to
compile it and display error information in a status line.
I would also like to highlight the position of the error in my text window.
How do I programmatically grab the error location from an evaluation or
How do I build MacRuby -just- for 64 bits?
Thanks, Joel
---
http://wagerlabs.com | @wagerlabs | http://www.linkedin.com/in/joelreymont
___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
Is this normal?
I built the latest trunk, i.e.
commit 36f01b88ae4290e9963ef2d48f26e5bdacdf2b54
Author: lsansone...@apple.com lsansone...@apple.com@23306eb0-4c56-4727-a40e-e92
Date: Wed Jan 5 22:46:43 2011 +
revert r5122
git-svn-id:
Are there substantial benefits to running the 64-bit version of MacRuby?
For example, does LLVM JIT work better on x86-64?
Thanks, Joel
---
http://wagerlabs.com | @wagerlabs | http://www.linkedin.com/in/joelreymont
___
MacRuby-devel
On Jan 7, 2011, at 12:20 AM, Eloy Duran wrote:
The IRB::Source class uses Ripper and might be of help as well.
Why would it be beneficial to catch syntax errors before execution by getting
hold of the AST using Ripper?
---
http://wagerlabs.com | @wagerlabs |
How do you do this?
[NSNumber numberWithDouble:NAN]
NAN is defined as __builtin_nanf(0x7fc0) in math.h
Thanks, Joel
---
http://wagerlabs.com | @wagerlabs | http://www.linkedin.com/in/joelreymont
___
MacRuby-devel mailing list
On Jan 7, 2011, at 5:21 PM, Thibault Martin-Lagardette wrote:
I'd say something like:
a = NSNumber.numberWithDouble(0.0/0.0)
which returns the exact same thing as:
a = (0.0/0.0)
Does the resulting NaN automatically convert to NSNumber?
I need to pass the object initialized this
Is there anything I can piggyback on to implement syntax highlighting in a
Cocoa editing window?
Is there some Ruby lexing code, for example, that I can reuse?
Thanks, Joel
---
http://wagerlabs.com | @wagerlabs | http://www.linkedin.com/in/joelreymont
I would like to do
mungedRegistration = [...]
registrationString = NSString.stringWithUTF8String(mungedRegistration)
but this results in
can't convert Array into String (TypeError)
What is the best approach here?
I do need my munged registration to be an array since
How do I combine compilation with macrubyc and xcode?
I would like to use macrubyc in the Release configuration, to avoid
distributing Ruby source code files.
Thanks, Joel
---
http://wagerlabs.com | @wagerlabs | http://www.linkedin.com/in/joelreymont
On Jan 11, 2011, at 4:30 PM, Martin Hawkins wrote:
def getURL(event, withReplyEvent:returnEvent)
...
Typing 'experimental://' in the Safari address bar produces an error:
experimental[4759]: -[AppDelegate
getURL:event:withReplyEvent:returnEvent]: unrecognised selector sent
to instance
On Jan 11, 2011, at 5:40 PM, Rolando Abarca wrote:
I'm using MacRuby 0.8
Works for me!
macruby -version
MacRuby 0.9 (ruby 1.9.2) [universal-darwin10.0, x86_64]
macirb
irb(main):001:0 framework 'Foundation'
= true
irb(main):002:0 a = [1,2,3,4,5]
= [1, 2, 3, 4, 5]
irb(main):003:0
Matt,
I -am- using the latest BridgeSupport (Preview 2) if you are talking to me.
On Jan 11, 2011, at 6:06 PM, Matt Aimonetti wrote:
Can you make sure you are using the latest BridgeSupport?
- Matt
Sent from my iPhone
On Jan 11, 2011, at 10:01, Joel Reymont joe...@gmail.com wrote
What should be the constant name below?
Is there a way to find out the constants defined in a framework?
Thanks, Joel
---
grep -i ro_MGSFOTextView
build/Release/MGSFragaria.framework/Resources/BridgeMetadata/MGSFragaria.bridgemetadata
constant name='ro_MGSFOTextView' type='@'/
On Jan 11, 2011, at 9:04 PM, Duane Kiefer wrote:
Am I the only person unable to do a 'rake' on the current MacRuby-trunk?
Works for me, although I pull from the git repo.
A bison problem perhaps?
---
http://wagerlabs.com | @wagerlabs | http://www.linkedin.com/in/joelreymont
Folks,
How do I load this C bundle into MacRuby?
file beagle.so
beagle.so: Mach-O 64-bit bundle x86_64
ls -la beagle.bridgesupport
-rw-r--r-- 1 joelr staff 15428 Jan 14 19:05 beagle.bridgesupport
Thanks, Joel
---
http://wagerlabs.com | @wagerlabs |
This is what I did to make it work...
file beagle.so
beagle.so: Mach-O 64-bit bundle x86_64
Note that beagle.so is a bundle so I can't link against it.
beagle.c is a file that loads the bundle and sets up function pointers to call
into it.
--- BeagleBundle.c ---
#include beagle.h
void
Not all is peachy :-(.
macirb -r beagle.rb
irb(main):001:0 bg_open(0)
Assertion failed: (cache-as.fcall.imp != NULL), function rb_vm_dispatch, file
dispatcher.cpp, line 766.
Abort trap
cat beagle.rb
#!/usr/bin/env macruby
require 'Beagle'
load_bridge_support_file 'beagle.bridgesupport'
---
require './Beagle.bundle'
makes all the difference. Why?
ls -la Beagle.bundle
-rwxr-xr-x 1 joelr staff 21800 Jan 14 20:45 Beagle.bundle
file Beagle.bundle
Beagle.bundle: Mach-O 64-bit bundle x86_64
On Jan 14, 2011, at 8:49 PM, Joel Reymont wrote:
Not all is peachy :-(.
macirb -r
On Jan 16, 2011, at 6:28 PM, Daniel Lopes wrote:
Everything goes and compile but the selector registered in notification is
not called when user interact with ABPeoplePicker.
Are you sure?
I'm asking because building and running the code in FaceFinder.zip gives me
this in the console:
Has anyone tried wrapping user-land IOKit, e.g.
#include IOKit/IOKitLib.h
#include IOKit/scsi/SCSITaskLib.h
#include IOKit/usb/IOUSBLib.h
#include IOKit/storage/IOMedia.h
I'd love to use MacRuby to prototype user-land USB drivers.
---
http://wagerlabs.com | @wagerlabs |
Bought the book although I barely browsed the free HTML version.
I figure it's a worthwhile investment, seeing how my livelihood depends on
MacRuby now :-).
On Jan 17, 2011, at 6:34 PM, Matt Aimonetti wrote:
O'Reilly is running a special today and my MacRuby: Definitive Guide - Early
On Jan 17, 2011, at 7:54 PM, Matt Aimonetti wrote:
Also, what are you building with MacRuby?
Since Matt asked...
- A trading platform.
- A protocol reverse-engineering interface to my USB hardware bus analyzer.
- User-space interface for a consumer electronics device that uses MacFUSE
On Jan 17, 2011, at 9:42 PM, Chuck Remes wrote:
I'd love to use MacRuby to prototype user-land USB drivers.
+1
This would be way cool...
The problem here is that you cannot just run gen_bridge_metadata on
IOKit.framework.
You need to selectively include or exclude a bunch of
On Jan 17, 2011, at 9:48 PM, Laurent Sansonetti wrote:
IOKit.framework should be wrapped in the latest BridgeSupport preview release.
Is this V2?
If you install it, you should be able to talk to the IOKit APIs from MacRuby,
in theory.
Where is the bridge support file?
---
On Jan 17, 2011, at 9:48 PM, Laurent Sansonetti wrote:
IOKit.framework should be wrapped in the latest BridgeSupport preview
release. If you install it, you should be able to talk to the IOKit APIs from
MacRuby, in theory.
Doesn't seem to work!
macirb
irb(main):001:0 framework 'IOKit'
=
On Jan 17, 2011, at 11:24 PM, Laurent Sansonetti wrote:
Looks like I talked too fast, there isn't any BridgeSupport file for IOKit,
even in Preview 2. I will look into it, as I'm planning to roll out a new
version soon.
What can I do to help?
Assume that I have some time to spare.
---
Does this include bridge support for IOKit?
On Jan 19, 2011, at 1:15 AM, Laurent Sansonetti wrote:
Hi guys,
The 3rd preview release of BridgeSupport is available for download:
http://www.macruby.org/files/BridgeSupport%20Preview%203.zip
---
http://wagerlabs.com | @wagerlabs |
I'm getting segmentation faults all over the place [1] when building spec-fu
[2] using macrake.
What is the best way to debug these?
Should I just run macruby from gdb and file a bug report with the stack trace?
Thanks, Joel
[1] https://gist.github.com/786100
[2]
I bought from O'Reilly and got an email about an update just yesterday.
I bought the electronic version, though.
On Jan 20, 2011, at 5:48 PM, Martin Hawkins wrote:
Thanks, Matt; so I see. I must be one of the few people who have paid
the full price for the book, expecting O'Reilly to let me
Are there any examples of a MacRuby app that sits in the menu, TimeMachine and
WiFi indicator style?
What about an app that adds itself to the user's login items to start upon
login?
Thanks, Joel
---
http://wagerlabs.com | @wagerlabs | http://www.linkedin.com/in/joelreymont
Am I dreaming or was there an example of MacRuby with MacFUSE?
Thanks, Joel
--
- mac osx device driver ninja, kernel extensions and user-land usb drivers
Is it just me or has the hellofs example [1] stopped working again?
[1] http://www.macruby.org/trac/ticket/922
--
- mac osx device driver ninja, kernel extensions and user-land usb drivers
I get a bunch of errors like this when running the hellofs MacFUSE example [1]:
macruby(25346,0x107082000) malloc: *** auto malloc[25346]: error: GC operation
on unregistered thread. Thread registered implicitly. Break on
auto_zone_thread_registration_error() to debug.
Is this a MacRuby
Has there been any progress with this ticket?
http://www.macruby.org/trac/ticket/1126
Thanks, Joel
--
- mac osx device driver ninja, kernel extensions and user-land usb drivers
I'm chomping at the bit to have IOKit support in MacRuby.
Can you tell me what needs to be done for IOKit support [1]?
I may be able to do the work and submit a patch.
Thanks in advance, Joel
[1] http://www.macruby.org/trac/ticket/1126
51 matches
Mail list logo