reverse-complement Pharo Smalltalk program
source code
"* The Computer Language Benchmarks Game
https://salsa.debian.org/benchmarksgame-team/benchmarksgame/
contributed by Eliot Miranda and Isaac Gouy *"!
Object subclass: #BenchmarksGame
instanceVariableNames: ''
classVariableNames: ''
poolDictionaries: ''
category: ''!
!BenchmarksGame class methodsFor: 'private'!
readFasta: sequenceName from: input
| sc gt lf prefix description buffer byte |
sc := $; asciiValue.
gt := $> asciiValue.
lf := Character lf asciiValue.
prefix := '>',sequenceName.
"* find start of particular fasta sequence *"
[(input atEnd) or: [
(input peek = gt)
ifTrue: [((line := (input upTo: lf) asString)
findString: prefix) = 1]
ifFalse: [input skipTo: lf. false].
]
] whileFalse.
"* line-by-line read - it would be a lot faster to block read *"
description := line.
buffer := ReadWriteStream on: (String new: 1028).
[(input atEnd) or: [(byte := input peek) = gt]] whileFalse: [
(byte = sc)
ifTrue: [input upTo: newline]
ifFalse: [buffer nextPutAll: (input upTo: lf) asString]
].
^Association key: description value: buffer contents!
reverseComplement: sequence named: sequenceName to: output
| complement newline lineLength n |
(sequenceName isNil) ifTrue: [^self].
complement := String new: 128 withAll: $*.
'ABCDGHKMNRSTVWY' with:
'TVGHCDMKNYSABWR'
do: [:a :b|
complement at: a asInteger put: b.
complement at: a asLowercase asInteger put: b].
newline := Character lf.
lineLength := 60.
n := sequence size.
output nextPutAll: sequenceName; nextPut: newline.
[n > 0] whileTrue: [
1 to: ((n < lineLength) ifTrue: [n] ifFalse: [lineLength]) do:
[:i | output nextPut:
(complement at: (sequence at: n - i + 1) asInteger)].
output nextPut: newline.
n := n - lineLength.
]! !
!BenchmarksGame class methodsFor: 'initialize-release'!
do: n
| input output |
input := Stdio stdin.
output := Stdio stdout.
#('ONE' 'TWO' 'THREE') do:
[:sequenceName| | fasta |
fasta := self readFasta: sequenceName from: input.
self reverseComplement: fasta value named: fasta key to: output.
].
output flush! !
!StdioStream instance methodsFor: 'positioning'!
skipTo: anObject
"Set the access position of the receiver to be past the next occurrence of
anObject. Answer whether anObject is found."
[self atEnd]
whileFalse: [self next = anObject ifTrue: [^true]].
^false! !
notes, command-line, and program output
NOTES:
64-bit Ubuntu quad core
Pharo8.0.0 build: 1122, commit: bbcdf97
Sun, 10 May 2020 04:23:44 GMT
MAKE:
cp /opt/src/pharo64-linux-stable/Pharo8.0.0-0-64bit-bbcdf97.image revcomp.pharo_run.image
cp /opt/src/pharo64-linux-stable/Pharo8.0.0-0-64bit-bbcdf97.changes revcomp.pharo_run.changes
ln -s /opt/src/pharo64-linux-stable/Pharo8.0-32bit-bbcdf97.sources .
cat Include/pharo/make.st
| prog |
(SystemWindow windowsIn: World
satisfying: [:w | w model canDiscardEdits])
do: [:w | w delete].
"load program to be measured"
prog := Smalltalk getSystemAttribute: 3.
(prog notNil) ifTrue: [FileStream fileIn: prog].
ImageCleaner cleanUpForRelease.
Smalltalk garbageCollect.
SmalltalkImage current snapshot: true andQuit: true.
/opt/src/pharo64-linux-stable/pharo -headless revcomp.pharo_run.image Include/pharo/make.st revcomp.pharo 2>/dev/null
NewUndeclaredWarning: BenchmarksGame class>>readFasta:from: (line is Undeclared)
NewUndeclaredWarning: BenchmarksGame class>>readFasta:from: (line is Undeclared)
NewUndeclaredWarning: BenchmarksGame class>>readFasta:from: (newline is Undeclared)
cat Include/pharo/main.st
BenchmarksGame do: (Smalltalk getSystemAttribute: 3) asInteger.!
SmalltalkImage current snapshot: false andQuit: true!
38.25s to complete and log all make actions
COMMAND LINE:
/opt/src/pharo64-linux-stable/pharo -headless revcomp.pharo_run.image Include/pharo/main.st 0 < revcomp-input100000000.txt
(TRUNCATED) PROGRAM OUTPUT:
>ONE Homo sapiens alu
GGGATTACAGGCGTGAGCCACCGCGCCCGGCCTTTTTGAGACGGAGTCTCGCTCTGTCGC
CCAGGCTGGAGTGCAGTGGCGCGATCTCGGCTCACTGCAACCTCCGCCTCCCGGGTTCAA
GCGATTCTCCTGCCTCAGCCTCCCGAGTAGCTGGGATTACAGGCGCGCGCCACCACGCCC
GGCTAATTT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TCCTGCCTCAGCCTC
CCGAGTAGCTGGGATTACAGGCGCGCGCCACCACGCCCGGCTAATTTTTGTATTTTTAGT
AGAGACGGGGTTTCACCATGTTGGCCAGGCTGGTCTCGAACTCCTGACCTCAGGTGATCC
GCCCGCCTCGGCCTCCCAAAGTGCTGGGATT
pthread_setschedparam failed: Operation not permitted
This VM uses a separate heartbeat thread to update its internal clock
and handle events. For best operation, this thread should run at a
higher priority, however the VM was unable to change the priority. The
effect is that heavily loaded systems may experience some latency
issues. If this occurs, please create the appropriate configuration
file in /etc/security/limits.d/ as shown below:
cat <<END | sudo tee /etc/security/limits.d/pharo.conf
* hard rtprio 2
* soft rtprio 2
END
and report to the pharo mailing list whether this improves behaviour.
You will need to log out and log back in for the limits to take effect.
For more information please see
https://github.com/OpenSmalltalk/opensmalltalk-vm/releases/tag/r3732#linux