Hi there,
it is possible to create a standalone script on Unices:
#!/home/user/polyml-5.9/bin/poly --script
print "Hello World!\n"
But the Windows executable creates a window. Is it possible to compile a Poly/ML read-eval-print loop that I could start in a cmd window? My goal would be to write standalone scripts for Windows.
- Gergely
On Windows the Poly/ML executable creates a GUI window if it hasn't been given an output stream. If you redirect the output to a file or a pipe it won't create the window.
Hope that helps. David
On 25/11/2024 13:09, Gergely Buday wrote:
Hi there,
it is possible to create a standalone script on Unices:
#!/home/user/polyml-5.9/bin/poly --script
print "Hello World!\n"
But the Windows executable creates a window. Is it possible to compile a Poly/ML read-eval-print loop that I could start in a cmd window? My goal would be to write standalone scripts for Windows.
- Gergely
polyml mailing list polyml at inf.ed.ac.uk http://lists.inf.ed.ac.uk/mailman/listinfo/polyml
Continuing this thread, I have found an old thread from 8 years ago:
https://polyml.inf.ed.ac.narkive.com/4xmYIUbU/is-there-a-windows-build-that-...
It talks about building a standalone version of Poly/ML on Windows.
There you wrote:
The alternative is to create a native Windows application. That can be done using either Windows Visual Studio or Msys/Mingw.
The Poly/ML source distribution includes "projects" and a "solution" for Visual Studio and you can use the free "community" edition to build Poly/ML. You will need to change the linker "subsystem" option from "Windows" to "Console" but otherwise it's fairly straightforward.
---
Does this work on Visual Studio Code?
- Gergely
On Tue, 26 Nov 2024 at 15:29, David Matthews <David.Matthews at prolingua.co.uk> wrote:
On Windows the Poly/ML executable creates a GUI window if it hasn't been given an output stream. If you redirect the output to a file or a pipe it won't create the window.
Hope that helps. David
On 25/11/2024 13:09, Gergely Buday wrote:
Hi there,
it is possible to create a standalone script on Unices:
#!/home/user/polyml-5.9/bin/poly --script
print "Hello World!\n"
But the Windows executable creates a window. Is it possible to compile a Poly/ML read-eval-print loop that I could start in a cmd window? My goal would be to write standalone scripts for Windows.
- Gergely
polyml mailing list polyml at inf.ed.ac.uk http://lists.inf.ed.ac.uk/mailman/listinfo/polyml
polyml mailing list polyml at inf.ed.ac.uk http://lists.inf.ed.ac.uk/mailman/listinfo/polyml
I don't think that will work. As I understand it Visual Studio Code is an editor rather than a development environment. You need a C++ compiler and a linker to build Poly/ML.
David
On 27/02/2025 13:13, Gergely Buday via polyml wrote:
Continuing this thread, I have found an old thread from 8 years ago:
https://polyml.inf.ed.ac.narkive.com/4xmYIUbU/is-there-a-windows-build-that-...
It talks about building a standalone version of Poly/ML on Windows.
There you wrote:
The alternative is to create a native Windows application. That can be done using either Windows Visual Studio or Msys/Mingw.
The Poly/ML source distribution includes "projects" and a "solution" for Visual Studio and you can use the free "community" edition to build Poly/ML. You will need to change the linker "subsystem" option from "Windows" to "Console" but otherwise it's fairly straightforward.
Does this work on Visual Studio Code?
- Gergely
On Tue, 26 Nov 2024 at 15:29, David Matthews <David.Matthews at prolingua.co.uk> wrote:
On Windows the Poly/ML executable creates a GUI window if it hasn't been given an output stream. If you redirect the output to a file or a pipe it won't create the window.
Hope that helps. David
On 25/11/2024 13:09, Gergely Buday wrote:
Hi there,
it is possible to create a standalone script on Unices:
#!/home/user/polyml-5.9/bin/poly --script
print "Hello World!\n"
But the Windows executable creates a window. Is it possible to compile a Poly/ML read-eval-print loop that I could start in a cmd window? My goal would be to write standalone scripts for Windows.
- Gergely
polyml mailing list polyml at inf.ed.ac.uk http://lists.inf.ed.ac.uk/mailman/listinfo/polyml
polyml mailing list polyml at inf.ed.ac.uk http://lists.inf.ed.ac.uk/mailman/listinfo/polyml
polyml mailing list polyml at inf.ed.ac.uk http://lists.inf.ed.ac.uk/mailman/listinfo/polyml
On 27/02/2025 16:05, David Matthews wrote:
I don't think that will work.? As I understand it Visual Studio Code is an editor rather than a development environment.? You need a C++ compiler and a linker to build Poly/ML.
Yes, Visual Studio Code has almost nothing in common with the Visual Studio IDE. This is why I always say "VSCode" for the former, to avoid confusion.
Makarius