DOjS, eine JavaScript Engine for DOS

Diskussion zum Thema Programmierung unter DOS (Intel x86)
Benutzeravatar
SuperIlu
Norton Commander
Beiträge: 122
Registriert: Di 13. Nov 2018, 09:40
Wohnort: Berlin
Kontaktdaten:

Re: DOjS, eine JavaScript Engine for DOS

Beitrag von SuperIlu »

DOjS ist jetzt in V1.1.0

Version 1.1.0 (the COM together)
  • Added COM port access through the COMPort() object.
  • Added RAW LPT port access through LPT-funktions LPTRawData(), LPTRawStatus() and LPTRawControl().
  • Added LPT printer access through LPTReset(), LPTSend() and LPTStatus().
  • Added LPT/COM port enumeration through GetParallelPorts() and GetSerialPorts().
  • Added more verbose output about detected 3dfx card and found ports when starting up.
Version 1.0.1 (the minimal midi modification)
  • Added MidiGetPos()
  • Added example script that implements a simple MIDI player.
  • Small cleanups for release building.
http://twitter.com/dec_hl - Vier 8086 habe auch 64bit!
DOjS, Javascript fuer MS-DOS: https://github.com/SuperIlu/DOjS/
Benutzeravatar
SuperIlu
Norton Commander
Beiträge: 122
Registriert: Di 13. Nov 2018, 09:40
Wohnort: Berlin
Kontaktdaten:

Re: DOjS, eine JavaScript Engine for DOS

Beitrag von SuperIlu »

DOjS ist jetzt in V1.2.0

Version 1.2.0 (Watt is that?)
  • Added TCP/IP support through WATT32.
  • Fixed bug where text mode was not restored after exiting DOjS
  • Added File.GetSize(), File.WriteBytes() and File.ReadBytes()
  • Added fixnewlines target to Makefile.
  • Updated syntax highlighting file.
  • Switched JSDoc documentation to better-docs
  • Improved editor
    • Quoted strings are now GREEN
    • The cursor positioning at the end of line is more usable.
    • 50-line mode can now be selected on the command line
    • Fixed CTRL-L/Go to line
  • Fixed bugs in p5js compatibility layer
    • endShape() polygon drawing
    • lerpColor()
  • Cleaned up startup messages in logfile.
  • Re-added PNG loading/writing
http://twitter.com/dec_hl - Vier 8086 habe auch 64bit!
DOjS, Javascript fuer MS-DOS: https://github.com/SuperIlu/DOjS/
Benutzeravatar
SuperIlu
Norton Commander
Beiträge: 122
Registriert: Di 13. Nov 2018, 09:40
Wohnort: Berlin
Kontaktdaten:

Re: DOjS, eine JavaScript Engine for DOS

Beitrag von SuperIlu »

DOjS ist jetzt in Version 1.4.0

Version 1.4.0 (The curly conglomerate)
  • Replaced loadpng+libpng by alpng to reduce EXE size.
  • Added fast integer array class IntArray
  • Added ReadInts() and WriteInts() to File, Zip and Socket to speed up data IO.
  • Improved type checking for parameters.
  • Added cURL and OpenSSL support.
  • FIXED: memory leak in editor
  • FIXED: editor crashed when deleting selected text
  • Added loadable module support during runtime
  • IPX, PNG, Allegro3D, COMPort and cURL are loadable modules now
Version 1.3.0 (The ZIPpy serving)
  • Added ZIP file access through Zip() class
  • Added StringToBytes() and BytesToString()
  • Added file name to stack trace for files loaded by Include() and Require()
  • Added loading of images, fonts, samples, midi files and scripts from ZIP files
  • JSBOOT/ can now be replaced by JSBOOT.ZIP
  • Added autostart feature for ZIP files
  • Added more fonts from Linux Font Project
  • Fixed crash in context help
  • Added ReadZIP(), Rename(), MakeDir(), RmDir() and RmFile()
  • Internal cleanup and removed some duplicate code
  • Fixed bug in DrawArray() and new Bitmap()
  • Fixed memory allocation bug where CWSDPMI and MuJS started to use virtual memory because of missing GCs.
  • Added raw disk access through RawRead() and RawWrite() (and other functions)
  • Fixed problems with the Makefile and filenames which only happened for fresh checkouts on case sensitive file systems.
  • Updated build instructions
  • Fixed ReadBytes() in socket.c
  • Renamed fxGetMemoryTMU() to fxGetMemoryTmu()
http://twitter.com/dec_hl - Vier 8086 habe auch 64bit!
DOjS, Javascript fuer MS-DOS: https://github.com/SuperIlu/DOjS/
Benutzeravatar
SuperIlu
Norton Commander
Beiträge: 122
Registriert: Di 13. Nov 2018, 09:40
Wohnort: Berlin
Kontaktdaten:

Re: DOjS, eine JavaScript Engine for DOS

Beitrag von SuperIlu »

New Version 1.5.0 available at https://github.com/SuperIlu/DOjS/releases

Version 1.5.0 (The neuronal necessity)
  • Added SQLite module
  • Added module for training/running neuronal networks
  • Added libcpuid module
  • Added NanoSVG module
  • Added global variables Width/Height
  • Added single parameter version of Color()
  • Added Console and EvalChain classes.
  • Added perlin noise module
  • You can now create single color Bitmaps with new Bitmap(width, height, color)
  • FIXED: small fixes for raw disk access.
  • FIXED: p5js arc() function is now somewhat useable (was completely broken before).
  • FIXED: Updated openssl to 1.1.1k
http://twitter.com/dec_hl - Vier 8086 habe auch 64bit!
DOjS, Javascript fuer MS-DOS: https://github.com/SuperIlu/DOjS/
go32
Kommandozeilenfetischist
Beiträge: 174
Registriert: Sa 24. Okt 2015, 22:51

Re: DOjS, eine JavaScript Engine for DOS

Beitrag von go32 »

Kann diese Scritengine als Unterbau für Windows Java GUIs derart verwendet werden, dass so eine GUI dann auch unter DOS läuft?
Benutzeravatar
SuperIlu
Norton Commander
Beiträge: 122
Registriert: Di 13. Nov 2018, 09:40
Wohnort: Berlin
Kontaktdaten:

Re: DOjS, eine JavaScript Engine for DOS

Beitrag von SuperIlu »

go32 hat geschrieben: Fr 13. Aug 2021, 10:12 Kann diese Scritengine als Unterbau für Windows Java GUIs derart verwendet werden, dass so eine GUI dann auch unter DOS läuft?
DOjS verwendet Javascript, nicht Java. Und es laeuft unter DOS oder in der DOS EIngabeaufforderung. Es weiss nichts von Windows...
http://twitter.com/dec_hl - Vier 8086 habe auch 64bit!
DOjS, Javascript fuer MS-DOS: https://github.com/SuperIlu/DOjS/
Benutzeravatar
SuperIlu
Norton Commander
Beiträge: 122
Registriert: Di 13. Nov 2018, 09:40
Wohnort: Berlin
Kontaktdaten:

Re: DOjS, eine JavaScript Engine for DOS

Beitrag von SuperIlu »

New DOjS release V1.6.0 on https://github.com/SuperIlu/DOjS/releases
  • Added JPEG loading through jpeg module
  • Made JSLOG.txt optional and the filename can be changed as well
  • Updated libcpuid to v0.5.1
  • Removed many compiler warnings and streamlined the make output during build
  • Added basic GIF animations loading/rendering through gifanim module
  • Added ReadSoundInputInts() which returns the sampled data as IntArray (ReadSoundInput() uses Javascript arrays which are slower)
  • Improved CTRL-DEL, CTRL-BS handling with whitespaces
  • Added error popup to editor for displaying script errors
  • parallelized the build as far as possible
  • added Makefile target to create a FreeDOS distribution ZIP
  • Added different blend modes which are selected through TransparencyEnabled()
  • Added p5js API mapping from blendMode() to TransparencyEnabled()
  • Added QR-Code generator from https://github.com/kazuhikoarase/qrcode-generator, see examples/qrcode.js
  • Fixed/added some examples
  • Improved error handling for missing GLIDE3 drivers
http://twitter.com/dec_hl - Vier 8086 habe auch 64bit!
DOjS, Javascript fuer MS-DOS: https://github.com/SuperIlu/DOjS/
go32
Kommandozeilenfetischist
Beiträge: 174
Registriert: Sa 24. Okt 2015, 22:51

Re: DOjS, eine JavaScript Engine for DOS

Beitrag von go32 »

SuperIlu hat geschrieben: So 29. Aug 2021, 14:03
go32 hat geschrieben: Fr 13. Aug 2021, 10:12 Kann diese Scritengine als Unterbau für Windows Java GUIs derart verwendet werden, dass so eine GUI dann auch unter DOS läuft?
DOjS verwendet Javascript, nicht Java. Und es laeuft unter DOS oder in der DOS EIngabeaufforderung. Es weiss nichts von Windows...
Danke für die Auskunft!

Schade, das wäre nämlich schön wenn ich damit dann eine für Windows geschriebene JAVA GUI unter DOS betreiben könnte, weil die Script Engine das nötige API schon mitbringt ohne dafür Windows Rssourcen zu benötigen.

Aber ich sehe gerade, dass sich JAVA doch von JAVA Script und so auch deren Anewndunggsgebiete maßgeblich unterscheiden.

So eine JAVA Maschine für DOS wäre schon klasse, mit der man dann auch Windows JAVA Code insbesondere für GUI Anwendungen ausführen könnte, diese DOS JAVA Mashine also das komplette API dafür mitbrächte, so dass dann die Neuentwicklung der GUI nicht mehr nötig wäre. Man würde dann einfach die DOS Java Maschine starten und die eigentlich für Windows geschriebene Jave GUI Anwendung darauf ausführen. Entwickelt werden msste dann nur die DOS Java Maschine, die GUI wäre dann schon da.
Benutzeravatar
SuperIlu
Norton Commander
Beiträge: 122
Registriert: Di 13. Nov 2018, 09:40
Wohnort: Berlin
Kontaktdaten:

Re: DOjS, eine JavaScript Engine for DOS

Beitrag von SuperIlu »

Entwickelt werden msste dann nur die DOS Java Maschine
So schoen deine Idee ist, aber ich habe mal beruflich eine Zeitlang mit "Embedded Java" zu tun gehabt und glaube mir, eine vollwertige Java-VM ist ein unglaublicher Molloch. Eine halbwegs moderne VM auf DOS zu portieren ist evtl. fuer ein geuebtes und grosses Entwicklerteam moeglich...
http://twitter.com/dec_hl - Vier 8086 habe auch 64bit!
DOjS, Javascript fuer MS-DOS: https://github.com/SuperIlu/DOjS/
Benutzeravatar
SuperIlu
Norton Commander
Beiträge: 122
Registriert: Di 13. Nov 2018, 09:40
Wohnort: Berlin
Kontaktdaten:

Re: DOjS, eine JavaScript Engine for DOS

Beitrag von SuperIlu »

New DOjS release V1.7.0 on https://github.com/SuperIlu/DOjS/releases
  • Added FLIC playback (video)
  • Added MPEG1 playback (audio/video) using plugin `mpeg1`.
  • Added Ogg Vorbis playback plugin `vorbis`.
  • Added `rawplay` plugin for raw 16 bit stereo audio data loaded from file system or ZIP.
  • Added CTRL-F for 'search' (same as F7)
  • Added live coding examples. Install the extension in the `vscode/` directory and run `DOjS -r examples\websvr.js`
  • Fixed missing newline in error message.
http://twitter.com/dec_hl - Vier 8086 habe auch 64bit!
DOjS, Javascript fuer MS-DOS: https://github.com/SuperIlu/DOjS/
Antworten