Chris Cunnington | 9 Feb 22:05
Picon

Interesting article on PyPy (P{ython's tracing JIT) by Laurence Tratt


That taught me a lot in a hurry. I now make the distinction in our vm confecting process between the
methodology and the language.
The methodology is versatile and not tied to Smalltalk. It can be adapted to Newspeak, Converge, a new
language, or Commodore BASIC.
That's impressive.  

Chris 
Eliot Miranda | 9 Feb 01:41
Picon

Interesting article on PyPy (P{ython's tracing JIT) by Laurence Tratt

 

this is well written, relatively short, and extremely informative.

http://tratt.net/laurie/tech_articles/articles/fast_enough_vms_in_fast_enough_time

thanks to Bob  Westergaard for pointing it out to me. 
--
best,
Eliot

Eliot Miranda | 7 Feb 23:14
Picon

status of plugins?

 

Hi ALl,


    I've read http://wiki.squeak.org/squeak/1865 but it's light on details.  Can anyone summarise the state of Squeak VM plugin support for Safari 5.x?

--
best,
Eliot

commits | 7 Feb 01:00
Favicon

VM Maker: VMMaker-oscog-IgorStasenko.143.mcz


Igor Stasenko uploaded a new version of VMMaker to project VM Maker:
http://source.squeak.org/VMMaker/VMMaker-oscog-IgorStasenko.143.mcz

==================== Summary ====================

Name: VMMaker-oscog-IgorStasenko.143
Author: IgorStasenko
Time: 7 February 2012, 4:28:02 am
UUID: 25049516-19fb-3647-9ca4-6328c656f3f0
Ancestors: VMMaker-oscog-EstebanLorenzano.140, VMMaker.oscog-eem.142

- clean merge with VMMaker.oscog-eem.142

=============== Diff against VMMaker-oscog-EstebanLorenzano.140 ===============

Item was changed:
  TestCase subclass: #AbstractInstructionTests
  	instanceVariableNames: 'processor opcodes'
  	classVariableNames: ''
  	poolDictionaries: 'CogRTLOpcodes'
  	category: 'VMMaker-Tests'!
+ 
+ !AbstractInstructionTests commentStamp: 'BenjaminVanRyseghem 9/27/2011 14:04' prior: 0!
+ Use for a test: ClosureCompilerTest>>#closureCases!

Item was changed:
  ----- Method: CoInterpreter>>longUnconditionalJump (in category 'jump bytecodes') -----
  longUnconditionalJump
  	| offset switched |
(Continue reading)

Igor Stasenko | 7 Feb 03:39
Picon

strange warning in threaded VM/Win


i just built a threaded cog VM for win32,
and when i starting an image, a console window shows warnings:
# Debug console
# To close: F2 -> 'debug options' -> 'show output console'
# To disable: F2 -> 'debug options' -> 'show console on errors'
warning, processHasThreadId flag is unset; cannot function as a
threaded VM if so.
warning: Process doesn't have threadId; VM will not thread
warning: Process doesn't have threadId; VM will not thread
warning: Process doesn't have threadId; VM will not thread
warning: Process doesn't have threadId; VM will not thread
warning: Process doesn't have threadId; VM will not thread
warning: Process doesn't have threadId; VM will not thread
warning: Process doesn't have threadId; VM will not thread
warning: Process doesn't have threadId; VM will not thread
warning: Process doesn't have threadId; VM will not thread
warning: Process doesn't have threadId; VM will not thread

however, in pharo we already introduced the threadId ivar:

Link subclass: #Process
	instanceVariableNames: 'suspendedContext priority myList threadId
errorHandler name env'
	classVariableNames: ''
	poolDictionaries: ''
	category: 'Kernel-Processes'

could it be because of initial "warning, processHasThreadId flag is
unset; cannot function as a threaded VM if so."?
(Continue reading)

Chris Cunnington | 4 Feb 01:21
Picon

Command Line Interface using FFI

 


Squeak4.3VM.r2522/

1.
$ uname -a
Darwin Macintosh-4.local 11.3.0 Darwin Kernel Version 11.3.0: Thu Jan 12 18:47:41 PST 2012; root:xnu-1699.24.23~1/RELEASE_X86_64 x86_64
$ /Users/chriscunnington/Desktop/Cog.app/Contents/MacOS/Croquet /Users/chriscunnington/Desktop/Squeak4\ 2.3/Squeak4.3.image&
[1] 841


2.
Entered in Workspace:  
StdioListener new run 

3.
$ squeak> DateAndTime now!
-bash: DateAndTime: command not found

[1]+  Stopped                 /Users/chriscunnington/Desktop/Cog.app/Contents/MacOS/Croquet /Users/chriscunnington/Desktop/Squeak4\ 2.3/Squeak4.3.image

4.
(Continue reading)

commits | 4 Feb 00:35

[commit] r2531 - -Wno-pragmas is a blunt instrument that is not understood on 3.x gccs.


Author: eliot
Date: 2012-02-03 15:35:12 -0800 (Fri, 03 Feb 2012)
New Revision: 2531

Modified:
   branches/Cog/nscogsrc/vm/cogit.h
   branches/Cog/platforms/unix/vm-display-fbdev/Makefile.in
Log:
-Wno-pragmas is a blunt instrument that is not understood on 3.x gccs.
Newspeak's cogit.h was accidentally unofficial.

Modified: branches/Cog/nscogsrc/vm/cogit.h
===================================================================
--- branches/Cog/nscogsrc/vm/cogit.h	2012-02-03 23:02:38 UTC (rev 2530)
+++ branches/Cog/nscogsrc/vm/cogit.h	2012-02-03 23:35:12 UTC (rev 2531)
@@ -1,5 +1,5 @@
 /* Automatically generated by
-	CCodeGenerator * VMMaker.oscog-eem.139 uuid: c2849383-9768-4948-b9b2-a5c22d482b07
+	CCodeGenerator VMMaker.oscog-eem.139 uuid: c2849383-9768-4948-b9b2-a5c22d482b07
  */

Modified: branches/Cog/platforms/unix/vm-display-fbdev/Makefile.in
===================================================================
--- branches/Cog/platforms/unix/vm-display-fbdev/Makefile.in	2012-02-03 23:02:38 UTC (rev 2530)
+++ branches/Cog/platforms/unix/vm-display-fbdev/Makefile.in	2012-02-03 23:35:12 UTC (rev 2531)
@@ -43,7 +43,7 @@
 TARGET		= vm-display-fbdev$a
 OBJS		= sqUnixFBDev$o

(Continue reading)

commits | 4 Feb 00:02

[commit] r2530 - Add 1007, 1008 & 1009 attribute info to version info on linux, & 1009 on Windows.


Author: eliot
Date: 2012-02-03 15:02:38 -0800 (Fri, 03 Feb 2012)
New Revision: 2530

Modified:
   branches/Cog/platforms/Cross/vm/sqSCCSVersion.h
   branches/Cog/platforms/Mac OS/vm/sqMacMain.c
   branches/Cog/platforms/Mac OS/vm/sqMacUnixCommandLineInterface.c
   branches/Cog/platforms/unix/vm/sqUnixMain.c
   branches/Cog/platforms/win32/vm/sqWin32Intel.c
   branches/Cog/platforms/win32/vm/sqWin32PluginSupport.c
Log:
Add 1007,1008 & 1009 attribute info to version info on linux, & 1009 on Windows.
Add -version option to Mac VM (with similar info to linux).
Fix compilation warning in sqWin32PluginSupport.c

Property changes on: branches/Cog/platforms/Cross/vm/sqSCCSVersion.h
___________________________________________________________________
Modified: checkindate
   - Thu Feb  2 14:44:43 PST 2012
   + Fri Feb  3 15:01:19 PST 2012

Modified: branches/Cog/platforms/Mac OS/vm/sqMacMain.c
===================================================================
--- branches/Cog/platforms/Mac OS/vm/sqMacMain.c	2012-02-02 22:45:39 UTC (rev 2529)
+++ branches/Cog/platforms/Mac OS/vm/sqMacMain.c	2012-02-03 23:02:38 UTC (rev 2530)
@@ -152,6 +152,7 @@
 extern void dumpPrimTraceLog(void);
 extern BOOL NSApplicationLoad(void);
(Continue reading)

commits | 2 Feb 23:45

[commit] r2529 - Enable building vm-display-fbdev on linux. Exclude fbdev in the newspeak build.


Author: eliot
Date: 2012-02-02 14:45:39 -0800 (Thu, 02 Feb 2012)
New Revision: 2529

Modified:
   branches/Cog/nscogbuild/unixbuild/bld/mvm
   branches/Cog/platforms/Cross/vm/sqSCCSVersion.h
   branches/Cog/platforms/unix/config/configure
   branches/Cog/platforms/unix/config/configure.ac
   branches/Cog/platforms/unix/vm-display-fbdev/Makefile.in
   branches/Cog/unixbuild/HowToBuild
   branches/Cog/unixbuild/bld/mvm
   branches/Cog/unixbuild/mtbld/mvm
Log:
Enable building vm-display-fbdev on linux.  Exclude fbdev in the newspeak build.

Modified: branches/Cog/nscogbuild/unixbuild/bld/mvm
===================================================================
--- branches/Cog/nscogbuild/unixbuild/bld/mvm	2012-02-02 02:03:33 UTC (rev 2528)
+++ branches/Cog/nscogbuild/unixbuild/bld/mvm	2012-02-02 22:45:39 UTC (rev 2529)
@@ -5,7 +5,7 @@
 *)		OPT=-O2;;
 esac

-test -f config.h || ../../../platforms/unix/config/configure --with-src=nscogsrc CFLAGS="-g $OPT
-msse2 -D_GNU_SOURCE -DNDEBUG -DITIMER_HEARTBEAT=1 -DNO_VM_PROFILE=1 -DDEBUGVM=0"
LIBS="-lpthread -luuid"
+test -f config.h || ../../../platforms/unix/config/configure --with-src=nscogsrc
--without-vm-display-fbdev --without-npsqueak CFLAGS="-g $OPT -msse2 -D_GNU_SOURCE -DNDEBUG
(Continue reading)

Eliot Miranda | 2 Feb 21:23
Picon

Re: Igor's fast become for CompiledMethods in Cog

 



On Wed, Feb 1, 2012 at 8:19 AM, Mariano Martinez Peck <marianopeck <at> gmail.com> wrote:
 


On Wed, Feb 1, 2012 at 12:28 AM, Eliot Miranda <eliot.miranda <at> gmail.com> wrote:
 


On Tue, Jan 31, 2012 at 3:13 PM, Mariano Martinez Peck <marianopeck <at> gmail.com> wrote:
 


On Tue, Jan 31, 2012 at 11:42 PM, Eliot Miranda <eliot.miranda <at> gmail.com> wrote:
 


On Tue, Jan 31, 2012 at 12:41 PM, Mariano Martinez Peck <marianopeck <at> gmail.com> wrote:
(Continue reading)

commits | 2 Feb 03:03

[commit] r2528 - Load function pointer early in threaded FFI checking sequence, for compatibility


Author: eliot
Date: 2012-02-01 18:03:33 -0800 (Wed, 01 Feb 2012)
New Revision: 2528

Added:
   branches/Cog/platforms/unix/vm/sqUnixITimerHeartbeat.c
   branches/Cog/platforms/unix/vm/sqUnixITimerTickerHeartbeat.c
Modified:
   branches/Cog/platforms/Cross/vm/sqSCCSVersion.h
   branches/Cog/platforms/Cross/vm/sqTicker.c
   branches/Cog/platforms/unix/vm-display-fbdev/sqUnixFBDev.c
   branches/Cog/platforms/unix/vm-display-fbdev/sqUnixFBDevMousePS2.c
   branches/Cog/platforms/unix/vm/sqUnixHeartbeat.c
   branches/Cog/src/plugins/SqueakFFIPrims/SqueakFFIPrims.c
   branches/Cog/unixbuild/bld/mvm
   branches/Cog/unixbuild/mtbld/mvm
Log:
Load function pointer early in threaded FFI checking sequence, for compatibility
with old FFIPlugin.
Make Qwaq ticker support optional, requiring VM_TICKER to enable.  This to
simplify ticker for older linuxes.
Include Michael Zeder's fixes to revive vm-display-fbdev build on linux.
Avoid assuming readlink supports -f flag on linux builds.



Property changes on: branches/Cog/platforms/Cross/vm/sqSCCSVersion.h
___________________________________________________________________
Modified: checkindate
(Continue reading)


Gmane