Fun little project #82
Replies: 15 comments 8 replies
-
|
best of luck! |
Beta Was this translation helpful? Give feedback.
-
|
Update, got all the syntax working: https://github.com/wizard7377/twelf |
Beta Was this translation helpful? Give feedback.
-
|
For anyone that happens to know: there are a lot of comments of the form |
Beta Was this translation helpful? Give feedback.
-
|
Below is my recollection.
When this project started, Carsten and I experimented with a fully
functorized style of SML programming. However, this lead to some
problems with sharing constraints, as specified in the "Definition of
Standard
ML". Plus, there where many redundancies in places where a module
was only instantiated once.
So eventually we backtracked somewhat, using some structures more
pervasively. Instead of deleting references to (more or less) pervasive
structures, we commented the functor parameters in the (*! ... !*) style
so it is recorded which structures a structure or functor actually depends
on (even if it is not an explicit parameter).
We didn't do this consistently throughout, and, as a comment, it cannot be
enforced by the SML compiler. Nowadays in my programming, I use explicit
parameters more selectively, when there are (or I anticipate) multiple
instances.
- Frank
…On Mon, Dec 29, 2025 at 9:28 AM Asher Frost ***@***.***> wrote:
For anyone that happens to know: there are a lot of comments of the form (*!
... !*) (particuarly around modules). What is the purpose of them?
—
Reply to this email directly, view it on GitHub
<#82 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAHKJ7LBEEM2BRSS6G6H42T4EE263AVCNFSM6AAAAACNTTDCVSVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTKMZWGYZTGMQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
--
Frank Pfenning, Professor
Computer Science Department
Carnegie Mellon University
Pittsburgh, PA 15213-3891
http://www.cs.cmu.edu/~fp
https://cmu.zoom.us/my/fpfenning
+1 412 268-6343
GHC 6017
|
Beta Was this translation helpful? Give feedback.
-
|
Also (as a side note) I've decided that it will be advantageous to work on a way to actually convert SML programattically to OCaml, found here |
Beta Was this translation helpful? Give feedback.
-
|
How far along is this project? I may have some use of it
for another purpose. What I need does not include the module
system, mutable store, or exceptions, so it is relatively basic.
Thanks,
Frank
…On Thu, Jan 1, 2026 at 10:53 AM Asher Frost ***@***.***> wrote:
Also (as a side note) I've decided that it will be advantageous to work on
a way to actually convert SML programattically to OCaml, found here
<https://github.com/wizard7377/sml-ocaml-converter>
—
Reply to this email directly, view it on GitHub
<#82 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAHKJ7OSDBR5KXDZYSZS2K34EU7ITAVCNFSM6AAAAACNTTDCVSVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTKMZYGY2DMNA>
.
You are receiving this because you commented.Message ID:
***@***.***>
--
Frank Pfenning, Professor
Computer Science Department
Carnegie Mellon University
Pittsburgh, PA 15213-3891
http://www.cs.cmu.edu/~fp
https://cmu.zoom.us/my/fpfenning
+1 412 268-6343
GHC 6017
|
Beta Was this translation helpful? Give feedback.
-
|
Progress might be slowing down in the next couple days, what with college apps and exams, so I expect this will be done sometime next week, possibly a little earlier |
Beta Was this translation helpful? Give feedback.
-
|
First working release is here: |
Beta Was this translation helpful? Give feedback.
-
|
Code should be just about ready: https://github.com/wizard7377/sml-ocaml-converter/tree/master |
Beta Was this translation helpful? Give feedback.
-
|
Project is in large part working and a PR to opam is on the way :) ocaml/opam-repository#29256 |
Beta Was this translation helpful? Give feedback.
-
|
Is there a way to print all names in scope for SML ? |
Beta Was this translation helpful? Give feedback.
-
|
As an aside, here's another fun project of mine that attempts to combine universe levels with phases (a la Racket Scheme) https://github.com/wizard7377/MLTT |
Beta Was this translation helpful? Give feedback.
-
|
First correct run, on a (heavily modified) version of the Hamlet source code, is here https://github.com/wizard7377/basis . |
Beta Was this translation helpful? Give feedback.
-
|
Just realized I didn't mention this, I'm working on the (hopefully) final iteration of the port of the twelf project (porting twelf itself and correcting the output) hopefully, given the speed at which it's been going, I'll have the codebase building within the week :) |
Beta Was this translation helpful? Give feedback.
-
|
@robsimmons @frankpfenning IT BUILDS untitled.mp4 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
For reasons known not by me, I have started trying to port Twelf... to OCaml... using Github Copilot
If you were by some chance interested in that very idea, it is here: https://github.com/wizard7377/twelf/tree/main
Best,
Asher Frost
Beta Was this translation helpful? Give feedback.
All reactions