This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Compilers | |
- Essentials of compilation book. J. Siek | |
- [Video] Overview to the "Essentials of compilation" book. 2023. https://www.youtube.com/watch?v=y_6bycM5fV8 | |
- MLIR Tutorial | |
- [Blog] https://github.com/j2kun/mlir-tutorial | |
- [Blog] https://jeremykun.com/2023/10/23/mlir-dialect-conversion/ | |
- [Blog] https://jeremykun.com/2023/11/01/mlir-lowering-through-llvm/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://forms.gle/NqgbySEkzQ9YewJDA |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| manifest load | | |
manifest := #( "('http://source.squeak.org/FFI' 1 ('FFI-Pools' 'FFI-Kernel')) already in Pharo" | |
('http://source.squeak.org/VMMaker' 6 ('Balloon-Engine-Pools' 'BytecodeSets.spur' 'VMMaker.oscog' 'Cog' 'CogTools' 'ImageFormat')) | |
('http://source.squeak.org/VMMaker' 0 ('VMMakerCompatibilityForPharo6')) | |
('http://ss3.gemstone.com/ss/MethodMassage' 3 ('MethodMassage' 'MethodMassageCompatibility')) | |
('http://www.squeaksource.com/AioPlugin' 7 ('VMConstruction-Plugins-AioPlugin.oscog')) | |
"('http://www.squeaksource.com/Alien' 0 ('Alien-Core' 'Alien-Tests-Core' 'Alien-Win32')) already in Pharo" | |
"('http://www.squeaksource.com/FreeTypePlus' 5 ('FreeType')) can't load this. it is toxic to Squeak 4.5" | |
"('http://www.squeaksource.com/FreetypePlugin' 8 ('Freetype-Plugin')) hence we can do without this" | |
"('http://www.squeaksource.com/OSProcess' 4 ('OSProcess')) appears to conflict with OSSVMProcess" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
styler := SHRBTextStyler new. | |
text := 'EEEE' asText. | |
styler classOrMetaClass: Object. | |
styler styledTextFor: text. | |
text asOrderedCollection collect: [ :each | | |
FreeTypeGlyphRenderer current | |
subGlyphOf: each | |
colorValue: 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// Use IntelliSense to learn about possible attributes. | |
// Hover to view descriptions of existing attributes. | |
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "(gdb) Launch", | |
"type": "cppdbg", | |
"request": "launch", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
``` | |
reader := HEBinaryReader new | |
stream: ('AST-Core.hermes' asFileReference) binaryReadStream; | |
yourself. | |
package := HEPackage readFrom: reader. | |
``` | |
If you inspect the package you will see all the content in the Hermes file (the format allows us to have different root elements in the file, but we are exporting a package per file). | |
If it is useful we can include it as an inspector. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is done via the "worldMenu" pragma. | |
Browse the senders of #worldMenu and you will see how this is done. | |
``` | |
menuCommandOn: aBuilder | |
<worldMenu> | |
(aBuilder item: #Tools) | |
order: 1.0; | |
target: self; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
report := DADependencyChecker new computeImageDependencies. | |
report knownDependantsOf: 'Glamour-Examples' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
StartupPreferencesLoader default executeAtomicItems: { | |
StartupAction | |
name: 'Git Settings' | |
code: [ | |
FileStream stdout | |
cr; nextPutAll: 'Setting the ssh credentials'; cr. | |
Iceberg enableMetacelloIntegration: true. | |
IceCredentialsProvider useCustomSsh: true. | |
IceCredentialsProvider sshCredentials |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
items := OrderedCollection new. | |
items add: (StartupAction name: 'Setup Pharo Iceberg Repository' code: [ | myRepoLocation | | |
myRepoLocation := FileLocator home / 'Projects/Pharo/git-repos/pharo'. | |
IceRepository registry | |
detect: [ :e | e name = 'pharo' ] | |
ifFound: [ :pharo | | |
pharo | |
location: myRepoLocation; | |
subdirectory: 'src' ] | |
]). |
NewerOlder