[#5322] O(1) performance for insertions/deletions at the front of an Array/String — Eric Mahurin <eric_mahurin@...>
I just did some benchmarks on push, pop, shift, and unshift
On Fri, 1 Jul 2005, Eric Mahurin wrote:
--- Mathieu Bouchard <matju@artengine.ca> wrote:
On Sat, 2 Jul 2005, Eric Mahurin wrote:
--- Mathieu Bouchard <matju@artengine.ca> wrote:
On Sun, 3 Jul 2005, Eric Mahurin wrote:
--- Mathieu Bouchard <matju@artengine.ca> wrote:
Hi,
--- Yukihiro Matsumoto <matz@ruby-lang.org> wrote:
Hi,
Yukihiro Matsumoto wrote:
--- Florian Gro<florgro@gmail.com> wrote:
Eric Mahurin wrote:
--- Nikolai Weibull
Eric Mahurin wrote:
[#5388] Problem with socket communications on Windows — "Jim McMaster" <jim.mcmaster@...>
I recently installed PGP 9.0 on my Windows XP SP2 machine. At that point,
[#5391] Object#=~ — Ryan Davis <ryand-ruby@...>
Since Rexexp#=~ and String#=~ return nil if they fail to match,
Hi,
Hi,
--- Yukihiro Matsumoto <matz@ruby-lang.org> wrote:
[#5409] socket.c - s_recvfrom — Zach Dennis <zdennis@...>
If I am reading s_recvfrom correctly in can throw an error which kills
[#5420] Sydney Developer Preview 1 released — Evan Webb <evanwebb@...>
Sydney, an experimental ruby interpreter, has been released!
Thanks everyone for the feedback so far!
Hi,
The MD5 sum is 53d1bde4542365caf4849c56e6274617.
Hi,
On 7/12/05, nobuyoshi nakada <nobuyoshi.nakada@ge.com> wrote:
Hi,
Hello,
[#5445] GC tweak — Stefan Kaes <skaes@...>
I have found that the performance of current garbage collector
[#5451] bug in pstore (ruby 1.8.2) on Windows ( Win XP) ? — noreply@...
Bugs item #2101, was opened at 2005-07-14 15:30
[#5470] Bogus age value from Etc — Daniel Berger <Daniel.Berger@...>
Hi all,
[#5471] make fail; ruby v182 not finding readline ? — OpenMacNews <OpenMacNews@...>
hi all,
[#5476] Bug in ruby's command line parsing — Lothar Scholz <mailinglists@...>
Hello,
On Sat, Jul 16, 2005 at 10:11:34AM +0900, Lothar Scholz wrote:
[#5492] ruby ( v183) bcc32: using Socket.new with timeout -> files not closed — noreply@...
Bugs item #2131, was opened at 2005-07-19 17:34
Re: [ANN] Sydney Developer Preview 1 released
Hello, see below. On 7/12/05, nobu.nokada@softhome.net <nobu.nokada@softhome.net> wrote: > Hi, > > At Wed, 13 Jul 2005 03:10:17 +0900, > Evan Webb wrote in [ruby-core:05430]: > > > * macro _C in globals.h conflicted with one in ctype.h > > > > Hmmm. On which I dont have a _C macro under linux or freebsd. > > I found it on cygwin. Seems it appears other platforms too. I've change it to _CPATH (and i'm going to change it to CPATH tonight as well, seems that _ macros should be avoided). > > > > * stringization by # needs ANSI C compiler > > > > Could you elaborate? > > #define _C(kls) rb_path2class0(#kls) > > Making string literals from macro arguments prefixed by # is > specified by ANSI standard, so older compilers may not support > the feature. Hm. Ok, I'll have to redo that to support other compilers. Any suggestions? > > # And, // style comment is newer than it. Yeah, thats just my bad habit (using // comments). > > > > * using IDs as storages for temporary (and possibly long) > > > strings would not be a nice idea. ID names never get freed > > > until the process dies. > > > > Hm. Where do you see me doing that? With the _S() macro? The _S() > > macro just replaced global rb_intern()'d variables. > > User defined % literals. > > case 1: > lex_strterm = NEW_STRTERM(str_xquote, term, paren); > pslval->id = rb_intern(tmpstr); > return tXSTRING_BEG; Well, my original thinking was that they they'd have to survive the entire process anyway since they were being used directly by a node. But I see your point in that if the node were collected (perhaps because remove_method was called), the rest of the node would be removed but the % expansion string would survive. I should be able to move the string elsewhere and make obj_free aware it may need to remove the expansion string. Hm. Ok, I checked out the code and perhaps what I'll do is add a VALUE to the lval union and pass back rb_str_new2(tmpstr), then assign that val to u2.value. The only problem there is that I then need to use that to dispatch a method of the same name, so I end up having to call rb_intern eventually anyway. I'll have to think about this a bit more. Perhaps what I need is a symbol that can be collected later. I'll think on it. > > > > * there is a swap file of test/sydney/test_binding.rb > > > > A swap file? Like it takes up a bunch of memory? > > Just a junk file, sydney-dr1/test/sydney/.test_binding.rb.swp Yep, thanks. Found it and removed it. > > > And it contains so many and large changes, can't you split it > > > to some patches? > > > > Yes, I can split it up. The vast bulk of the changes were required to > > get OS threads working properly, so all of that needs to be a single > > thread. I could easily split off the other features (Backtrace / Frame > > objects, other hooks, etc) into patchs. > > As for Batktrace, I've been thinking about an iterator rather > than a method returning an array. iterator rather than the Backtrace class or rather than Backtrace#frames? Having it the form of a fleshed out object is quite nice. I'm working on GUI debugger that uses them to be able to display a full backtrace that allows for jumping back in the code, etc. Having the the filename, line, etc. makes all that easy. Evan > -- > Nobu Nakada > >