flat assembler
Message board for the users of flat assembler.

Index > High Level Languages > Miracle Browser with 40 Soulscript Pages. The New Internet

Author
Thread Post new topic Reply to topic
soul_master



Joined: 30 Jun 2023
Posts: 24
soul_master 19 Jan 2024, 22:34
Initial release of Miracle Browser V0. Viewer of Soulscript (.SOUL) pages. Download: https://github.com/starpow3r/miracle

40 example pages, tutorials on C and Assembler, graphics, machine code, compression schemes, electronics devices, and custom launchers.

WHAT IS SOULSCRIPT?

Soulscript is a Page Scripting Language (PSL) like HTML/CSS/JS, but much easier, clearer, smaller, and written in pure portable C with TinyCC. Designed for teaching, writing books, tutorials, creating examples, help files, documentation, and custom explorers and launchers of files, folders, programs, games, videos and music.

Easiest language ever. Teachable in one sentence: Just write text inside of <t><>, and code inside of <code><>. ; Is a comment. No required <tags> like <html><head></head><style> </style><script></script> <body></body></html>.

EXAMPLE

Code:
<t>My Page.<> ; Minimal example in only 1 line!    


Description:
Filesize: 72.21 KB
Viewed: 3686 Time(s)

index.gif


Description:
Filesize: 109.78 KB
Viewed: 3686 Time(s)

images.gif




Last edited by soul_master on 20 Jan 2024, 00:10; edited 2 times in total
Post 19 Jan 2024, 22:34
View user's profile Send private message Reply with quote
soul_master



Joined: 30 Jun 2023
Posts: 24
soul_master 19 Jan 2024, 22:50
TEXT

Code:
<t>Small Text<>
<t2>Medium Text<>
<t3>Big Text<>
<t4>Bigger Text<>    


COLORS

Code:
<t3>
  Colors:
  <#f00>RED<>, <#0f0>GREEN<>, <#00f>BLUE<>,
  <#0ff>CYAN<>, <#f0f>MAGENTA<>, <#ff0>YELLOW<>.
<>    


CODE

Supports multiple languages: C/C++, ASM, FASM/G, HTML, CSS, JS, PHP, Python, etc. C is the default.

Code:
<code='c'>
  // example

  #include <<stdio.h>>

  int main() {
    puts("white");
    return 0;
  }
<>

<code='asm'>
  rgb12:
    and eax, 1111b
    shl eax, 8
    and ecx, 1111b
    shl ecx, 4
    or eax, ecx
    and edx, 1111b
    or eax, edx
  ret
<>

<code='fasmg'>
  macro movm a, b
    push b
    pop a
  end macro
<>    


Code:
<code='c'>int i=0;<>
<code='cpp'>class DOT { int x, y; };<>
<code='a'>loop n, say('Hi'), end<>
<code='s'><<t>>Soulscript<<>><>
<code='asm'>mov dword [edi+ecx*4], 1<>
<code='fasm'>forward push [esi+i*4]<>
<code='fasmg'>match a==b+c, p<>
<code='html'><</body>><>
<code='css'>width: 320px;<>
<code='js'>let a=1;<>
<code='php'>function rgb24(r, g, b)<>
<code='py'>print('Hello')<>    


Description:
Filesize: 37.44 KB
Viewed: 3684 Time(s)

languages.gif


Description:
Filesize: 108.96 KB
Viewed: 3684 Time(s)

themes.gif


Description: Flat Assembler G!
Filesize: 49.19 KB
Viewed: 3684 Time(s)

fasmg.gif


Post 19 Jan 2024, 22:50
View user's profile Send private message Reply with quote
soul_master



Joined: 30 Jun 2023
Posts: 24
soul_master 19 Jan 2024, 23:52
Custom launchers of games, videos and music. See LINK.SOUL, GAMES.SOUL and VIDEOS.SOUL.


Description:
Filesize: 155.81 KB
Viewed: 3677 Time(s)

games_videos.gif


Post 19 Jan 2024, 23:52
View user's profile Send private message Reply with quote
soul_master



Joined: 30 Jun 2023
Posts: 24
soul_master 23 Feb 2024, 05:05
Miracle Browser V0.1: https://github.com/starpow3r/miracle See VARIABLE and LOOP. INDEX is the main file.

UPDATES

* Minimal variables: int a, b, byte c, text t='Hi'. See VARIABLE.SOUL
* Print variables inside text/code tags, <?name>, as hexa/decimal/binary/k/m/g: int n=123, <t>Variable: <?n><>
* Experimental if and loops. Generate <tags> programmatically in loops with variables. Example: loop 5, <t>Hi<>, end.
* page.image='abc' ; stretch. page.texture='abc' ; repeat. See ANIMALS.

BUG FIXES

* In code viewer, fixed code disappearing on right side (clip box wasn't being restored), and fixed not displaying colors properly when scrolled (draw_edit started at wrong location).
* Fixed crash if right click with no selection (address=0).
* Fixed typos in example pages.

Updated every 1-2 months. Site in development.


Description:
Filesize: 61.01 KB
Viewed: 3348 Time(s)

loops.gif


Post 23 Feb 2024, 05:05
View user's profile Send private message Reply with quote
soul_master



Joined: 30 Jun 2023
Posts: 24
soul_master 23 Feb 2024, 07:40
Updated GitHub again. Accidentally uploaded "debug" version. Anyone downloaded it? Please retry.
Post 23 Feb 2024, 07:40
View user's profile Send private message Reply with quote
Picnic



Joined: 05 May 2007
Posts: 1389
Location: Piraeus, Greece
Picnic 23 Feb 2024, 10:48
Honestly speaking, it looks and plays fantastic. Here, I have uploaded two screenshots from my Windows 7 system where Miracle browser working flawlessly and fast.
This is big stuff, it will probably need a book. I mean that (from a beginner's point of view) maybe at first glance it seems a little difficult to master. It's new.

Image

Image

_________________
Hobby BASIC Interpreter
Post 23 Feb 2024, 10:48
View user's profile Send private message Visit poster's website Reply with quote
sylware



Joined: 23 Oct 2020
Posts: 440
Location: Marseille/France
sylware 23 Feb 2024, 11:38
what's the catch?

What are the dependencies?

(BTW, you could use also use CPROC+QBE as a C compiler, generated machine code is light years faster since it does include basic optimization passes, everything in plain and simple C, unlike those abomination of gcc|clang/llvm).

And don't forget, rv64 assembly is the new C Razz
Post 23 Feb 2024, 11:38
View user's profile Send private message Reply with quote
soul_master



Joined: 30 Jun 2023
Posts: 24
soul_master 24 Feb 2024, 01:11
Picnic: Thanks for your comments, the screenshots, and for confirming that it runs on W7. It's beta, incomplete, and not intended to be seriously used yet.
Post 24 Feb 2024, 01:11
View user's profile Send private message Reply with quote
Picnic



Joined: 05 May 2007
Posts: 1389
Location: Piraeus, Greece
Picnic 24 Feb 2024, 08:46
You're welcome soul_master.
There is a long road ahead. In that case, i will be watching Starpower Software.
Post 24 Feb 2024, 08:46
View user's profile Send private message Visit poster's website Reply with quote
soul_master



Joined: 30 Jun 2023
Posts: 24
soul_master 25 May 2024, 03:45
New site with updated Miracle Browser (0.3+): https://www.starpow3r.net/ Download reduced to under 1 MB .ZIP with 13 help pages. See INDEX.

Spent the last 3+ months designing, creating, drawing, editing and converting fonts, and didn't dedicate much time to MB. Now, with the new fonts and site, MB will be updated more often, and everything will be improved (text, fonts, code, links, images, language, etc, a neverending 2-DO list). Try re-download every 1-2 weeks.

Image


Last edited by soul_master on 25 May 2024, 03:54; edited 1 time in total
Post 25 May 2024, 03:45
View user's profile Send private message Reply with quote
soul_master



Joined: 30 Jun 2023
Posts: 24
soul_master 25 May 2024, 03:48
New .FONT file format (See FONT.BAT). Powerful compression schemes average under 1 BPP. Example: Roman128b (font/roman/128b). Image dimensions are 10297x213*3 (24 BPP) = 6,579,783 bytes, 6.27mb file. When converted to .FONT, it gets reduced to only 137k, 47 times smaller, 2.1% of its original size. Alternative to TTF.

Image
Image
Post 25 May 2024, 03:48
View user's profile Send private message Reply with quote
soul_master



Joined: 30 Jun 2023
Posts: 24
soul_master 25 May 2024, 21:56
For those who prefer a plain font, here's "write/20.font" which is a derivative of Open Sans (OFL). Just replace media/font/romeo/20.font with this. Soon, many fonts will be available, and loadable in source: t.font='note/16'.

Download 20.font (only 14k!): https://www.starpow3r.net/font/write/20.font

Image
Post 25 May 2024, 21:56
View user's profile Send private message Reply with quote
soul_master



Joined: 30 Jun 2023
Posts: 24
soul_master 30 May 2024, 09:12
New Miracle Fonts Package: https://starpow3r.net/fonts.html

230+ .FONT Files, 21 Styles, 24 Example .SOUL Pages to View them. Includes MB 0.31+ with .font update: t.font='name/32'. See DEMO1/2/3.

Image
Image
Image
Image
Image
Image
Image
Post 30 May 2024, 09:12
View user's profile Send private message Reply with quote
soul_master



Joined: 30 Jun 2023
Posts: 24
soul_master 30 May 2024, 23:32
Updated FONTS.ZIP again. Styles comparison: Simple, Code, Roman, Block.

Image
Image
Image
Image
Post 30 May 2024, 23:32
View user's profile Send private message Reply with quote
soul_master



Joined: 30 Jun 2023
Posts: 24
soul_master 01 Jun 2024, 02:47
3 new Romans: Rose (clearest), Roma, Rom (thinnest). Updated FONTS.ZIP (https://www.starpow3r.net/fonts.html). Improved spacing between characters.

Image


Last edited by soul_master on 15 Jun 2024, 14:29; edited 1 time in total
Post 01 Jun 2024, 02:47
View user's profile Send private message Reply with quote
soul_master



Joined: 30 Jun 2023
Posts: 24
soul_master 04 Jun 2024, 02:26
Updated FONTS.ZIP: https://www.starpow3r.net/fonts.html 35+ styles. That's enough. See PROGRAMMING.BAT for example tutorial: "Introduction to C". t.font='rose/20' will be default.
Image
Image
Image
Post 04 Jun 2024, 02:26
View user's profile Send private message Reply with quote
soul_master



Joined: 30 Jun 2023
Posts: 24
soul_master 15 Jun 2024, 13:56
UPDATES

Miracle Browser 0.32: https://starpow3r.net/miracle.zip, https://starpow3r.net/fonts.zip

* Links are finally working correctly with tests to prove it. Examples (inside <t>): <link>page<> (.soul=default if no .ext), <link>www.disney.com<> (site), <link='Visit Disney'>www.disney.com<>, <link>c:/<>, or <link='c:/'>Open C Drive<>. See LINK. Fixed unresponsive links. Needed fonts first.
* Fonts: t.font='rose/32' seems to be working now between tags, and can be assigned: t2.font=t3.font. Prevents re-loading. Known bug: Crashes when fade is applied to certain fonts and sizes like galaxy/64 and antique/64.
* t.justify=center - Align text inside bigger t.w/h. See INDEX source.
* Shortcut keys: Reload: Alt+R, Debug: Alt+D. Exit: Esc. Scroll: Up/Down, Wheel, Page.Up, Page.Down. Home, End
* Disabled non-functional menus. Removed editor toolbar. It's a code viewer now. Loads faster (20+ less image files). Lower memory usage.
* Detects resolution. Runs fast on old XP laptop in 1024x600. First attempt crashed. Replaced create_screen(1920, 1080) with (os_w, os_h), and that solved it. Try Win95.
* Error checking on array indices and sizes. "Error (#123): Invalid Array[3] Index=5", "Array[7] Overflow" (example: byte a[3]=1,2,3,4). Note: HTML browsers don't perform any error checking on source. One slight mistake results in "the white screen of death", and no information on what caused it. Another reason WHY.BAT.
* locate x, y sets the location where the next element begins: Shortcut to: element.x=1, element.y=2. To move down, use <r>, <rr> or element.y+=n
* "Open With" anywhere doesn't work, only in /page/ with .BAT. Next update.

Questions: When will MB be able to load pages online? Unknown. It must be converted to VC++ 6.0 (released in 98'?) for Winsock (Network) and Winmm (Audio: play 'my.wav'), and for the executable icon. Will MB be able to download files? Only recognized types like text (.txt, no links), code, fonts, images, audio and videos. Will online pages be able to run executables on the system? No!, but they could download popular media files, and Open With a program selected by the user.

Warning: Chrome is falsely reporting a virus in miracle.zip. Since the 90s, anti-virus software has always been a scam that never worked. Safe software gets rejected while real viruses go undetected. MB does not access any files on your system (only its files in /miracle/), and never will.
Post 15 Jun 2024, 13:56
View user's profile Send private message Reply with quote
soul_master



Joined: 30 Jun 2023
Posts: 24
soul_master 31 Aug 2024, 13:19
New videos:

Soulscript Introduction:
https://www.youtube.com/watch?v=RBy2zN9cqtk

HTML VS Soulscript:
https://www.youtube.com/watch?v=HjWGcQaY6lc
Post 31 Aug 2024, 13:19
View user's profile Send private message Reply with quote
soul_master



Joined: 30 Jun 2023
Posts: 24
soul_master 31 Aug 2024, 15:13
Post 31 Aug 2024, 15:13
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.