Status: Accepted
Owner: nicolas....(a)gmail.com
Labels: Type-Enhancement Priority-Medium Performance Maintainability
New issue 111 by nicolas....(a)gmail.com: Use direction aware << and >>
instead of bitShift: to avoid useless Runtime test
http://code.google.com/p/cog/issues/detail?id=111
As reported in vm-dev mailing list "bitShift: and runtime sign discussion"
http://comments.gmane.org/gmane.comp.lang.smalltalk.squeak.vm.devel/9261
in (expr bitShift: shift),
some shift have well known direction for the programmer,
but the CCodeGenerator is unable to guess if shift is not literal.
This results in useless runtime tests.
Worse, it can increase the number of C compiler warnings after inlining.
I attach some changes to VMMaker (based on .oscog-eem.241 branch).
For sound, there is a shift sign discussion already, so we can eventually
use directed shift too
(based on trunk -ul.32 branch).
Attachments:
VMMaker_replace_bitShift_with_directedShift.cs 12.1 KB
Sound_replace_bitShift_with_directedShift.cs 1.8 KB
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 108 by stm...(a)gmail.com: Access to stackPages broken in
Stack/CoInterpreter>>#commonReturn
http://code.google.com/p/cog/issues/detail?id=108
One of the branches in Stack/CoInterpreter>>#commonReturn does a `self
freeStackPage: thePage` where all other places in the code do `stackPages
freeStackPage: thePage`.
#freeStackPage: is not defined on self, so I suppose the attached patch is
necessary.
The bug should be in the CogVM branch and the Pharo branches of the
codebase.
Attachments:
StackPages Access.1.cs 11.5 KB
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 107 by stm...(a)gmail.com: Bit-rot in the Pharo CogVM code based
(Simulator)
http://code.google.com/p/cog/issues/detail?id=107
The attached change set fixes bit rot in the *InterpreterSimulator and
related classes.
Here a brief summary:
- VMClass>>#doOrDefer: now uses ProcessBrowser>>#isUIProcess: instead of
Project
- it replaces the use of #asDisplayText with StringMorph>>#contents:.
- use of ThreadStream>>#on: is replaced with ThreadSafeTranscript>>#new
- Utilities is replaced by UIManager>>#default
- and #primitiveGetAttribute now uses the non-depricated `Smalltalk vm
getSystemAttribute: attr`
Attachments:
Fix simulator.3.cs 30.0 KB
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 106 by stm...(a)gmail.com: Bit-rot in NOMS>>#sqGrowMemory:By: and
IS>>#ioUTCMicrosecondsNow
http://code.google.com/p/cog/issues/detail?id=106
In InterpreterSimulator the method #ioUTCMicrosecondsNow is missing.
I just added this:
ioUTCMicrosecondsNow
"STEFAN: not entierly sure what to do with this... but the method is
missing."
^ Time millisecondClockValue
In the NewObjectMemorySimulator>>#sqGrowMemory:By:, there is a reference to
coInterpreter which receives are #memory: message. However in the new
hierarchy, where the interpreter is not an ObjectMemory anymore, that
message is not implemented.
So, I removed it...
Not sure whether either of these solutions is appropriate, but would be
good to get the problems fixed and have the simulators usable.
Attachments:
more-bit-rot.1.cs 857 bytes
Status: Accepted
Owner: camillob...(a)gmail.com
Labels: Type-Defect Priority-Medium
New issue 105 by camillob...(a)gmail.com: Add VMMaker Smalltalk Sources to
the C Repository
http://code.google.com/p/cog/issues/detail?id=105
Currently there is no way to find out which VMMaker version works along
with which C source version.
Solution: Export the current VMMaker sources to the repository and keep
them in sync there.
Status: Accepted
Owner: camillob...(a)gmail.com
Labels: Type-Defect Priority-Medium
New issue 104 by camillob...(a)gmail.com: Remove KLATT Plugin
http://code.google.com/p/cog/issues/detail?id=104
I wonder who still wants to use this.
Klatt is sincerely outdated, every OS provides better speech synthesis
nowadays.
Comment #18 on issue 102 by marcus.d...(a)gmail.com: Can't allocate
semaphores? VirtualMachine>>maxExternalSemaphores: aSize | Not enough space
for external objects, set a larger size at startup!
http://code.google.com/p/cog/issues/detail?id=102
Moved to: Issue cog:102
Status: Accepted
Owner: camillob...(a)gmail.com
Labels: Type-Defect Priority-Medium
New issue 101 by camillob...(a)gmail.com: Snapshot primitive with 512byte
image header
http://code.google.com/p/cog/issues/detail?id=101
I would like to add proper shebang support to our image files.
Hence I need a proper primitive which allows me to inject the 512bytes
header with a proper shebang (or other user data..)
This could be handled the same way as the quit primitive by checking for an
optional argument, the header, and pass it along to #writeImageFile:
Status: Accepted
Owner: camillob...(a)gmail.com
Labels: Type-Defect Priority-Medium
New issue 99 by camillob...(a)gmail.com: Link LZ4 Compression
http://code.google.com/p/cog/issues/detail?id=99
We should build our VM with lz4 support:
https://code.google.com/p/lz4/
Ideally we will compress all internal unused/static data.
Another application would be to compress all the fuel-ized data as well.