Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the board
Thread view  Mix view  Order
SuperIlu

Homepage

Berlin, Germany,
27.03.2020, 14:47
 

DOjS Javascript for DOS went 1.0 (Announce)

Hi,

my pet project DOjS was released in V1.0 today.
See below for the changelog, or see GitHub for binary releases (https://github.com/SuperIlu/DOjS/releases) and the source code.

Cheers
Ilu

Version 1.0.0 (the major mashup)
- Fixed memory leaks in TexInfo
- Added dynamic TexInfo generation from Bitmap
- Better memory handling between native and JS code (GC before malloc())
- Documented joystick functions
- Added RandomInt() to API
- Added compile time to startup message
- Added LFB (linear frame buffer) access to the 3dfx cards
- Added POST() function to display debug info using a ISA/PCI POST card
- SHIFT-F1 now opens the online help at the function uder the cursor (does not work for object methods)
- CTRL-DEL and CTRL-BS now delete whole words
- Updated behavior of CTRL-LEFT/CTRL-RIGHT to match the above
- Updated syntax highlighting with new functions and JS functions
- Added 'h' to command line options
- Updated transparency handling, transparency now is also available with 24bbp display modes
- Added System() to call external programs from DOjS.
- Fixed initialization order of Allegro sound card support
- Improved screen drawing code for editor
- You can now create Bitmaps from ARGB integer arrays via new Bitmap(array, width, height)
- You can now create Bitmaps from the current screen new Bitmap(x, y, width, height)
- You can now create Bitmaps from the current 3dfx screen new Bitmap(x, y, width, height, buffer)
- ARGB Arrays can be drawn directly using DrawArray()
- You can now save Bitmaps to BMP, PCX and TGA files.
- Optimized unneeded calls to Input() away.
- Added createImage(w,h) to p5js compatibility layer.
- Added Sample.Get() and VoiceGetPosition(), updated Sample.Play().

---
Javascript on MS-DOS? Try DOjS https://github.com/SuperIlu/DOjS
Fediverse: @dec_hl@mastodon.social

iw2evk

Magenta (Italy),
28.03.2020, 15:51

@ SuperIlu

DOjS Javascript for DOS went 1.0

> Hi,
this javascr*** program can be added to a dos browser like LINKS for enable Javascript features in dos internet?
Thanks
Roberto

SuperIlu

Homepage

Berlin, Germany,
28.03.2020, 17:42

@ iw2evk

DOjS Javascript for DOS went 1.0

Hi,

no, sorry, that is not how this works.
JavaScript is just the language I used. It has nothing to do with HTTP/HTML in this case.
You can't just plug something like a HTML4/5 JS runtime into an existing browser.

Cheers
Ilu

---
Javascript on MS-DOS? Try DOjS https://github.com/SuperIlu/DOjS
Fediverse: @dec_hl@mastodon.social

Wengier

E-mail

31.03.2020, 02:59
(edited by Wengier, 31.03.2020, 04:48)

@ SuperIlu

DOjS Javascript for DOS went 1.0

> no, sorry, that is not how this works.
> JavaScript is just the language I used. It has nothing to do with HTTP/HTML
> in this case.
> You can't just plug something like a HTML4/5 JS runtime into an existing
> browser.

It will be very useful for a DOS browser like LINKS and JavaScript runtime like DOjS to work together though, because the main use of JavaScript is for Internet (in combination with HTML) after all. Your work on DOjS itself is impressive, but perhaps you or someone else can port the code from DOjS to LINKS to make DOS Internet work with JavaScript too, so that your work will become useful to a wider range of DOS users.

Oso2k

31.03.2020, 09:00

@ Wengier

DOjS Javascript for DOS went 1.0

> > no, sorry, that is not how this works.
> > JavaScript is just the language I used. It has nothing to do with
> HTTP/HTML
> > in this case.
> > You can't just plug something like a HTML4/5 JS runtime into an existing
> > browser.
>
> It will be very useful for a DOS browser like LINKS and JavaScript runtime
> like DOjS to work together though, because the main use of JavaScript is
> for Internet (in combination with HTML) after all. Your work on DOjS itself
> is impressive, but perhaps you or someone else can port the code from DOjS
> to LINKS to make DOS Internet work with JavaScript too, so that your work
> will become useful to a wider range of DOS users.

Links2 on DOS integration/support would be awesome! Have you considered Nano-X/Microwindows support?

glennmcc

Homepage E-mail

North Jackson, Ohio (USA),
31.03.2020, 19:23
(edited by glennmcc, 31.03.2020, 19:39)

@ Wengier

DOjS Javascript for DOS went 1.0

Speaking only for myself....

One of the biggest reasons for using a DOS browser
is that it does NOT support JS and therefore is TONS faster
than JS capable browsers for those sites which do not need JS

This board does not need JS therefore.....
http://glennmcc.org/images/DOS_Arachne.png

For those sites I visit that do need JS... Linux Firefox

> > no, sorry, that is not how this works.
> > JavaScript is just the language I used. It has nothing to do with
> HTTP/HTML
> > in this case.
> > You can't just plug something like a HTML4/5 JS runtime into an existing
> > browser.
>
> It will be very useful for a DOS browser like LINKS and JavaScript runtime
> like DOjS to work together though, because the main use of JavaScript is
> for Internet (in combination with HTML) after all. Your work on DOjS itself
> is impressive, but perhaps you or someone else can port the code from DOjS
> to LINKS to make DOS Internet work with JavaScript too, so that your work
> will become useful to a wider range of DOS users.

---
--
http://glennmcc.org/

Wengier

E-mail

31.03.2020, 21:49

@ glennmcc

DOjS Javascript for DOS went 1.0

> Speaking only for myself....
>
> One of the biggest reasons for using a DOS browser
> is that it does NOT support JS and therefore is TONS faster
> than JS capable browsers for those sites which do not need JS
>
> This board does not need JS therefore.....
> http://glennmcc.org/images/DOS_Arachne.png
>
> For those sites I visit that do need JS... Linux Firefox

Just want to mention that you can almost always find an option to disable JS on a JS capable browser (such as Firefox or Google Chrome) if you want to visit some website(s) without enabling JS. The same can also be applied to a JS-capable browser in DOS - ideally the user should be able to control whether to enable or disable the JS feature with a simple switch, instead of always forcing JS mode or non-JS mode.

iw2evk

Magenta (Italy),
06.04.2020, 14:34

@ Wengier

DOjS Javascript for DOS went 1.0

Hi,

in another ahandcan be used duktape for add a JS engine to links as in
Edbrowse

------snip from hom page of edbrowse

The home-grown javascr*** engine worked, but keeping up with changes to an evolving language turned out to be a hassle. Version 3.1.1 used the Spider Monkey javascr*** engine from Mozilla.org, which is also open source. This allowed Karl to leverage some 30,000 lines of code - more than everything he had written to date. And somebody else was maintaining it! That's the power of open source. As of version 3.7.0, edbrowse uses the duktape javascr*** engine from duktape.org.

------
Or try to porting edbrowsing in DOS using DJGCC..

glennmcc

Homepage E-mail

North Jackson, Ohio (USA),
06.04.2020, 23:37

@ SuperIlu

DOjS Javascript for DOS went 1.0

> Hi,
>
> no, sorry, that is not how this works.
> JavaScript is just the language I used. It has nothing to do with HTTP/HTML
> in this case.
> You can't just plug something like a HTML4/5 JS runtime into an existing
> browser.
>
> Cheers
> Ilu

OK, it can't be integrated into a browser to parse JS embeded in web pages.

So.... what _can_ it be used for and how ?

---
--
http://glennmcc.org/

SuperIlu

Homepage

Berlin, Germany,
07.04.2020, 20:51

@ glennmcc

DOjS Javascript for DOS went 1.0

> OK, it can't be integrated into a browser to parse JS embeded in web
> pages.
>
> So.... what _can_ it be used for and how ?

It is basically a DOS/Javascript version of Processing:
https://en.wikipedia.org/wiki/Processing_(programming_language)
https://processing.org/

Processing (and p5js) is a system to create electronic art, visualizations, etc.
You write a (short) programm called a "sketch" which creates a visual effect.

Creative coding is a little bit like demo coding, but with less focus on getting the last bit out of the hardware.
See OpenProcessing for some visual examples:
https://www.openprocessing.org/browse/#

Does this help?

---
Javascript on MS-DOS? Try DOjS https://github.com/SuperIlu/DOjS
Fediverse: @dec_hl@mastodon.social

Back to the board
Thread view  Mix view  Order
22632 Postings in 2109 Threads, 402 registered users, 396 users online (0 registered, 396 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum