Re: [Pharo-project] Performance Tip: Using buffered streams

2012-12-02 Thread drush66
Sven Van Caekenberghe-2 wrote > Hi Mariano, > > On 02 Dec 2012, at 23:43, Mariano Martinez Peck < > marianopeck@ > > wrote: > >> This is really really interesting, because it means a speed up of 2x when >> reading :) >> Where can I get the last version of ZnBufferedReadStream? > > I knew you w

[Pharo-project] using a long running native thread - NativeBoost or Plugin?

2012-12-02 Thread drush66
Would it be possible to start native thread inside pharo? This thread would run (for quite a long time) some event loop (like the libev), and post some info to the SharedQueue. Smalltalk code would in turn be reading stuff from this queue. You could say it would be pumping events from libev to Shar

Re: [Pharo-project] NB Capabilities

2012-11-09 Thread drush66
Fernando olivero-2 wrote > Hi, i wanted to give my opinion on this, since i've encountered some of > the > problems you mention. > > Sometimes to benefit from the simplicity of Smalltalk while coexisting > with > other tools, we must cope with low level technology "glue code". > > NB made it easy

Re: [Pharo-project] NB Capabilities

2012-11-09 Thread drush66
Igor Stasenko wrote > AFAIK, COM is fairly simple. You need to do a lill parsing deciphering > IDL interface, > and frankly i don't remember all the details. But at the end, it is > just a bunch of C calls. > With NativeBoost you can do calls to C .. so it is doable. > > Again, Dolphin Smalltalk c

Re: [Pharo-project] Tips for efficient multi-serial handling

2012-11-08 Thread drush66
Hi Udo! Well, as fare as I know there is currently no equivalent Ruby's EventMachine, or similar event based server infrastructure. There is AioPlugin for async IO http://wiki.squeak.org/squeak/3384 which lets Smalltalk process (looking from the os view) to get async notifications of IO events, a

Re: [Pharo-project] Yet another Notation format: Object literals

2012-10-22 Thread drush66
Dale Henrichs wrote > If you guys are all fired up to write parsers:) writing a YAML parser for > Smalltalk would be very cool. There are yaml parsers for a bunch of > languages, but a Smalltalk parser is conspicuously absent ... > > YAML is very readable (all the extraneous gibberish has been rem

Re: [Pharo-project] Global session object?

2012-10-09 Thread drush66
Igor Stasenko wrote > On 9 October 2012 14:28, drush66 < > davorin.rusevljan@ > > wrote: >> Igor Stasenko wrote > run levels just adding another dimension into dependency soup. > they don't solve the dependency problem.. > when you say "i run at leve

Re: [Pharo-project] Global session object?

2012-10-09 Thread drush66
Igor Stasenko wrote > 1. during startup, you have to be very careful about dependencies > between services, > the errors like using uninitialized service(s) makes image > unrecoverable (because VM crashing). > For example , putting 'Transcript show: ' before freetype initialized > may kill an image

Re: [Pharo-project] Again: Basic Questions about NativeBoost

2012-08-28 Thread drush66
Does NB support writing callbacks in smalltalk that can be called by external library? - http://www.cloud208.com/ -- View this message in context: http://forum.world.st/Again-Basic-Questions-about-NativeBoost-tp4645447p4645471.html Sent from the Pharo Smalltalk mailing list archive at Nabbl

Re: [Pharo-project] How to globals that are NOT classes or traits?

2012-04-18 Thread drush66
Igor Stasenko wrote > > I think that we missing a way to determine to which package some > global belongs to. > When you loading a package it can declare new global, but there is no > reflective mechanisms in system to tell, to which package it belongs. > If we could have that, then clearly, if y

Re: [Pharo-project] tail-like

2012-04-08 Thread drush66
Tudor Girba-2 wrote > > Thanks. I will take a look. > I think that dearly missed Dolphin Smalltalk had implementation for Windows, so you could also grab Dolphin Community Edition and take a look how it is implemented there. Davorin Rusevljan http://www.cloud208.com/ - http://www.cloud2

Re: [Pharo-project] tail-like

2012-04-08 Thread drush66
Tudor Girba-2 wrote > > Thanks. I will take a look. > I think that dearly missed Dolphin Smalltalk had implementation for Windows, so you could also grab Dolphin Community Edition and take a look how it is implemented there. Davorin Rusevljan http://www.cloud208.com/ - http://www.cloud2

Re: [Pharo-project] tail-like

2012-04-06 Thread drush66
It kind of depends on the OS, but all of them let you subscribe to events on the files in some way. So you would subscribe with os to notify you when some file is changed in some way, keep some internal house keeping information like position up to which you have displayed info, verify that file ha

Re: [Pharo-project] Socket listenOn: 0 & accept

2012-03-16 Thread drush66
Sven Van Caekenberghe wrote > > Most socket API's allow for the creation of a server socket on the next > available port, often by specifying 0 instead of a port. When the socket > is bound, one can retrieve the local port and let the client(s) know. I > tried to do that in Pharo today, and these

Re: [Pharo-project] Trusting Trust

2012-02-08 Thread drush66
Well, it's the turtles all the way down, and you always need a peace of trust to step on to keep the whole thing. So there is no absulute security, but I guess this is not a new concept. But IMHO, if someone would like to reduce (not eliminate) the risks, Smalltalk could make it less daunting. Sma

Re: [Pharo-project] Best way for FFI in Pharo

2012-01-20 Thread drush66
So, am I getting this right: if I need callbacks, then I need NativeBoost? Can those callbacks be used in situations where it is necessary to deliver very high number of them quickly and efficiently? I am looking at libev - event library used to deliver high I/O traffic through evented interfac