similar to: mmap and faster IO?

Displaying 20 results from an estimated 70000 matches similar to: "mmap and faster IO?"

2004 Mar 07
1
win32-mmap problem
Hi all, Ruby 1.8.1 (hand built, not the installer) Windows 2000 I was just playing with win32-mmap. I tried running the test_server.rb and test_client.rb. I started the server, which seems to be fine, but when I run the client I get this: C:\eclipse\workspace\win32-mmap-0.1.0\test>ruby test_client.rb C:/ruby/lib/ruby/1.8/ftools.rb:23:in `initialize'': Permission denied -
2008 Apr 25
4
win32-mmap test failures
Hi all, This is odd. It looks to me like we have all 4 variations of memcpy set in Windows::MSVCRT::Buffer but somehow this one creeps up. I actually noticed it in a few cases with that earlier mmap sub/replace example, but I wasn''t sure what was happening. Note that windows-api 0.2.3 and windows-pr-0.8.3 are the latest versions in CVS, but this happens with windows-api-0.2.2 and
2006 Oct 13
2
win32-mmap - trying to marshal self
Hi all, I realized the current implmentation has a problem - you can only get the last value set? I realized, after looking at the old C code, that it actually stores values in a hash and marshals the hash, not the values themselves. That seemed clunky to me, though. I thought it would be more interesting if we just marshalled the entire mmap object and passed that back and forth.
2007 May 04
5
[ win32utils-Bugs-10589 ] Bug in win32-mmap
Bugs item #10589, was opened at 2007-05-04 12:01 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=411&aid=10589&group_id=85 Category: win32-mmap Group: Code Status: Open Resolution: None Priority: 3 Submitted By: Daniel Berger (djberg96) Assigned to: Daniel Berger (djberg96) Summary: Bug in win32-mmap Initial Comment: Ruby 1.8.6 win32-mmap 0.2.1 Assigning
2004 Mar 09
6
win32-mmap test suite
I just tried running tc_mmap.rb and noticed that something rather curious seems to happen. The call to Mmap.new in setup seems to cause the test suite to just exit without ever actually running the tests. I reduced the test suite to just this bit of code. This works, although the final test (TypeError) does not pass - no exception in thrown. This is 1.8.1 on Win2k. Any ideas? Dan PS - I
2006 Jul 04
0
Reworking win32-mmap for the pure Ruby version
Hi all, I was looking at win32-mmap today. I thought it might be worth it to rewrite this one as pure Ruby. In the process, I decided I don''t really like the current API very much. Just feels too clunky and not very friendly. I think we followed Win32::MMF too closely. Anyway, I have a very preliminary version in CVS that I was hoping folks could take a look at and comment on.
2004 Mar 14
3
Re: RubyGems 0.2.0
Hello Chad, I installed and tried out rubygems for one of the win32-utils projects named win32-mmap. This is on Win XP (Home). Here is how I did it but got some errors (see at the end). I must be doing something wrong. Please help ... -- Shashank #------------------------------------------------------------ require ''rubygems'' spec = Gem::Specification.new do |s|
2004 Feb 25
1
win32-mmap committed
Hi all, I have committed win32-mmap package. It is similar to mmap or shared memory of unix Basically, it can be used for variable sharing like this In server side ================================== m = Mmap.new a = 1 m.setvar("a",a) =================================== In client side ================================== m = Mmap.new(''reuse''=>true) a =
2007 May 04
1
Trying to get a good example for win32-mutex
Hi all, I''ve been going through the various IPC modules for Win32Utils and converting them to pure Ruby. I''m almost done with win32-mutex, but I can''t get the example to work. I keep getting this error: C:/Documents and Settings/djberge/workspace/win32-mutex/examples/mutex_test.rb:41: undefined method `+'' for nil:NilClass (NoMethodError) from
2006 Oct 23
0
Need some help with MMap# and MMap#=
Hi all, At RubyConf this year I talked about win32-mmap with Patrick Hurley and Ara Howard. Ara mentioned that Guy''s version of mmap (for Unix) contains some string-like methods that let you access pieces of the view like a string. Patrick and I came up with this (which requires the latest windows-pr in cvs so that we can use a more flexible version of memcpy, as well as some
2006 Oct 06
13
Need some help with latest win32-mmap
Hi all, I''ve got the latest win32-mmap code checked into CVS. Unfortunately, it seems that I''m not able to open an existing mapping and retrieve set data. Below is a simple example that seems like it ought to work but doesn''t. Any ideas? # map1.rb require ''win32/mmap'' include Win32 mmap = MMap.new(:name => ''alpha'', :size
2007 May 04
0
[ win32utils-Feature Requests-1435 ] Move native IO routines to the IO class
Feature Requests item #1435, was opened at 2005-02-03 12:19 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=414&aid=1435&group_id=85 Category: win32-file Group: Code Status: Open Resolution: None Priority: 3 Submitted By: Daniel Berger (djberg96) Assigned to: Daniel Berger (djberg96) Summary: Move native IO routines to the IO class Initial Comment: The
2004 Mar 13
1
win32-mmap followup
Oops - just realized that there aren''t accessors for namespace, swapfile, size, etc. Should we add them? Or don''t we want to because then it might become confusing as to whether those values were "shared"? Dan _________________________________________________________________ Store more e-mails with MSN Hotmail Extra Storage – 4 plans to choose from!
2004 Mar 13
0
Quick thought on win32-mmap
I suggest getting rid of the hash style arguments fior new() for this package. In this particular case, you already have a class and accessors, so you can just use the yield trick, e.g. rb_yield(self) if rb_block_given_p(). Thus you can do: mm = Mmap.new do |m| m.namespace = file m.swapfile = sfile m.size = 1024 end Looks just as nice, and is a lot less code on the C side of
2008 Jun 04
2
Win32-ole start
Hi all, Since I didn''t get any takers on the win32-ole rewrite I thought I''d take a stab at starting it. Here''s what I''ve got so far (along with some extra constants in Windows::COM only in CVS), but the call to CoCreateInstance() isn''t working. I''m not sure if I''m dealing with the IDispatch interface properly: # win32/ole.rb require
2007 Sep 27
2
Threads and IO (gets) still a problem for us?
Hello Guys, I''m trying to get this working: t = Thread.new { while true puts "printing a line" sleep 2 end } gets t.exit puts "exiting" As you see, the idea is get multiple "printing a line" until a hit enter. The thing is this is a known problem for 1.8 on win32. I tried both mingw, VC6 and VC8 with the same results. Saw a post
2009 Aug 21
0
[ win32utils-Bugs-26975 ] Two test failures on XP virtual machine
Bugs item #26975, was opened at 2009-08-21 10:52 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=411&aid=26975&group_id=85 Category: win32-sapi Group: Code Status: Open Resolution: None Priority: 3 Submitted By: Daniel Berger (djberg96) Assigned to: Nobody (None) Summary: Two test failures on XP virtual machine Initial Comment: Ruby 1.8.6-p383 VC++ 9
2004 Mar 01
0
RE: win32etc test failure
Excellent! Like I said, I really need to do some code cleanup. I''ll also be adding the config_group and config_user methods :) Dan -----Original Message----- From: Date, Shashank [Non-Employee] [mailto:Shashank.Date@mail.sprint.com] Sent: Monday, March 01, 2004 10:19 AM To: Berger, Daniel Subject: RE: [Win32utils-devel] RE: win32etc test failure That worked ! Now everything is
2004 Mar 01
0
RE: win32etc test failure
For delete_user, try this patch: etc.c, line 639: - lpHost = (LPCWSTR)STR2CSTR(rbHost); +lpHost = AllocWideLString(rbHost); Lemme know how it goes. Dan -----Original Message----- From: win32utils-devel-bounces@rubyforge.org [mailto:win32utils-devel-bounces@rubyforge.org] On Behalf Of win32utils-devel@rubyforge.org Sent: Monday, March 01, 2004 10:02 AM To: Date, Shashank [Non-Employee] Cc:
2007 Oct 01
2
[ win32utils-Bugs-14360 ] Bad interaction between win32-file-stat and FileUtils
Bugs item #14360, was opened at 2007-10-01 15:00 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=411&aid=14360&group_id=85 Category: win32-file-stat Group: Code Status: Open Resolution: None Priority: 3 Submitted By: Daniel Berger (djberg96) Assigned to: Nobody (None) Summary: Bad interaction between win32-file-stat and FileUtils Initial Comment: Ruby