Author |
Message |
reckrhodes
Joined: 30 May 2007 Posts: 116
|
Posted: Sun 02 Nov 2008, 00:20 Post subject:
Wirbel - a new programming language |
|
As sir Barry Kauler says:
http://www.puppylinux.com/blog/?viewDetailed=00469
I compiled the source package into a pet.
First attachment was compiled using Puppy Linux 4.00
Second attachment was compiled using Puppy Linux 4.10
Last edited by reckrhodes on Sun 02 Nov 2008, 16:30; edited 2 times in total
|
Back to top
|
|
 |
Lobster
Official Crustacean

Joined: 04 May 2005 Posts: 15238 Location: Paradox Realm
|
Posted: Sun 02 Nov 2008, 04:34 Post subject:
|
|
reckrhodes you are a star
How exciting.
The programmer of Wirbel is as smart as they get.
The documentation (3 tutorials) is already sounding like gibberish.
However that is because smart people don't slow down for the rest of us.
A new language.
Right at its inception - woof woof
did not seem to work for me
Code: | # wirbel hello.w
Warning: No baustones index found. Continuing without any baustones.
Fatal: in hello.w:1:
No variable or function with name 'print'
Error while compiling hello.w -> hello. |
anyone have better luck?
_________________ YinYana AI Buddhism
|
Back to top
|
|
 |
reckrhodes
Joined: 30 May 2007 Posts: 116
|
Posted: Sun 02 Nov 2008, 16:35 Post subject:
|
|
thank you sir Lobster.
I was able to duplicate the error you posted.
Its my fault. The first pet i did attached was compiled using the puppy linux 4.1 of MU.
I edited my first post. It has two wirbel pets, for-4.1 and for-4.0.
I hope these will help.
|
Back to top
|
|
 |
Lobster
Official Crustacean

Joined: 04 May 2005 Posts: 15238 Location: Paradox Realm
|
Posted: Tue 04 Nov 2008, 01:02 Post subject:
|
|
Thank you reckrhodes Sir,
I removed the old version using the package manager
and got the following:
Code: | There was an error expanding package wirbel-0.1.8-i386-for-4.1.tar.gz.
Either the file is corrupted, or has not expanded into its own directory with
name of wirbel-0.1.8-i386-for-4.1/ (which is how most packages expand).
You will have to go into /root/.packages/ directory and manually clean it up.
This script will now exit... |
tried cleaning up the files too - still can not install . . .
Anyone else have better luck?
_________________ YinYana AI Buddhism
|
Back to top
|
|
 |
Keef

Joined: 20 Dec 2007 Posts: 890 Location: Staffordshire
|
Posted: Tue 04 Nov 2008, 14:44 Post subject:
|
|
I got the same result as Lobster. Did a manual install of the files in the packages directory, but then got this again:
Code: |
# wirbel hello.w
Warning: No baustones index found. Continuing without any baustones.
Fatal: in hello.w:1:
No variable or function with name 'print'
Error while compiling hello.w -> hello.
|
Perhaps I should be relieved not to have any baustones. Sounds painful.
|
Back to top
|
|
 |
Firefox
Joined: 03 Nov 2006 Posts: 171 Location: UK
|
Posted: Tue 04 Nov 2008, 15:18 Post subject:
wirbel install |
|
Running pup 4.1 full harddrive install.
I simply followed the instructions on the wirbel site!
You will need your devx file to compile it.
Downloaded the wirbel tar.gz file and did a tar xzf wirbel.0.1.8.tar.gz. Then did a make then a make install and it works fine from the command line.
The baustones are in usr/local/lib/wirbel.
|
Back to top
|
|
 |
seaside
Joined: 11 Apr 2007 Posts: 917
|
Posted: Tue 04 Nov 2008, 21:34 Post subject:
|
|
Keef wrote: | I got the same result as Lobster. Did a manual install of the files in the packages directory, but then got this again:
Code: |
# wirbel hello.w
Warning: No baustones index found. Continuing without any baustones.
Fatal: in hello.w:1:
No variable or function with name 'print'
Error while compiling hello.w -> hello.
|
Perhaps I should be relieved not to have any baustones. Sounds painful. |
I'm getting the same error, no matter how the directories are structured. Is it just me or does someone have the pet working (other than compiling from scratch)?
I feel close to passing a few baustones myself at this point....
|
Back to top
|
|
 |
Cur Dog
Joined: 22 Dec 2007 Posts: 60
|
Posted: Tue 04 Nov 2008, 22:43 Post subject:
|
|
Lobster, I to had the same error as you but I renamed the folder "wirbel-0.1.8-i386" in /root/.packages/ to "wirbel-0.1.8-i386-for-4.1" (without the " " ) and then installed the .pet.
After creating the hello file I attempted to execute and now I am getting this error
Code: |
# wirbel hello.w
wirbel: /usr/lib/libstdc++.so.6: no version information available (required by wirbel)
wic: /usr/lib/libstdc++.so.6: no version information available (required by wic)
wic: /usr/lib/libstdc++.so.6: no version information available (required by wic)
hello.w:2: Error: syntax error, unexpected TOK_UNINDENT, expecting TOK_LINEEND
Parse error.
Error while compiling hello.w -> hello.
|
Has anyone had this problem?
|
Back to top
|
|
 |
reckrhodes
Joined: 30 May 2007 Posts: 116
|
Posted: Wed 05 Nov 2008, 11:05 Post subject:
error in compiling |
|
Again its my fault. I compiled the source into pet even if it has a "wrapper error" when i untarred the source.
I recompiled the new downloaded source into pet this time. Tested the simple "hello.w" by using the command:
wic hello.w then ./hello it displays hello world.
hopefully this will work now.
this my hello.w simple program
print("hello world.")
note:
1. devx_400.sfs should be loaded first
2. please press enter after the close parenthesis so that the program above will work
Please use this pet I attached not the one above.
|
Back to top
|
|
 |
Cur Dog
Joined: 22 Dec 2007 Posts: 60
|
Posted: Wed 05 Nov 2008, 11:44 Post subject:
|
|
Thanks, reckrhodes....
Quote: |
note:
1. devx_400.sfs should be loaded first
2. please press enter after the close parenthesis so that the program above will work |
# 2 seemed to have been my problem.....
Thanks again,
Cur Dog
|
Back to top
|
|
 |
Keef

Joined: 20 Dec 2007 Posts: 890 Location: Staffordshire
|
Posted: Wed 05 Nov 2008, 16:55 Post subject:
|
|
I compiled from source too, and got success - apart from the forgot-to-hit-the-enter-key-so-smack-me-with-a-wet-fish error reported above.
|
Back to top
|
|
 |
brad_chuck
Joined: 15 Aug 2005 Posts: 284 Location: Appalachian Mountains
|
Posted: Wed 05 Nov 2008, 22:32 Post subject:
|
|
test_w.w
Code: | #!/usr/bin/wirbel
print("test") |
test_c.c
Code: | #include <stdio.h>
main()
{
printf ("test \n");
return 0;
} |
test_b.sh
Code: | #!/bin/sh
echo test |
test_w => 68k
test_c => 8k
test_b.sh => 4k
64k of overheat is going to add up quick.
Is there something I am missing here?
|
Back to top
|
|
 |
Lobster
Official Crustacean

Joined: 04 May 2005 Posts: 15238 Location: Paradox Realm
|
Posted: Sun 09 Nov 2008, 06:42 Post subject:
|
|
Thanks guys - got it working now
Quote: | 64k of overheat is going to add up quick. |
It is a new language and optimisation may come later or may not be possible (because of the nature of the language)
Find out - write to the author
mk -at- mathias-kettner.de
I wrote to him to make him aware of this thread.
Where is Barry?
Has anyone converted any Python - used UPX on that 64k file?
Anyone know a simple python program that can be converted
and used in Puppy?
Remember with Wirbel we can create self running code - no python libraries needed - m m m . . .
_________________ YinYana AI Buddhism
|
Back to top
|
|
 |
MathiasKettner

Joined: 09 Nov 2008 Posts: 3
|
Posted: Sun 09 Nov 2008, 07:12 Post subject:
Hello and size of executable |
|
Hello to you all,
first I want to thank you for your interest in Wirbel and to apologize for the
unconveniances Wirbel still has. Of couse the lack of documentation and
many other things is a great drawback. Also I've to apologize for my often
weird an incorrect English, I try my best
Now to your topics:
Code size: per default the output files are not stripped. If you strip them
with 'strip hello', the code size of the hello wolrd program for example
will go down from 69206 to 22648. In the current version 0.1.10 this
is done automatically if you call wic with the option -O (which also does
optimization).
Improvement: It will probably possible to further reduce the size of the
hello world program. But it will never be as small as a hand crafted C
program. It has - for example - to carry code for dynamic string handling,
even if you only print "hello world.". String handling is *very* inconveniant
in C. Every higher level language has some sort of dynamic strings at
the price of bigger code - may it be in some library or included in the executable
itself. If the size of the executable matters a lot in your environment, one
might think of putting as much as possible into a dynamic library that can be used
by all Wirbel programs. Currently Wirbel uses the static-library approach, because
that has the advantage that Wirbel executables run independent of *any*
component of Wirbel.
Greetings,
Mathias
|
Back to top
|
|
 |
Lobster
Official Crustacean

Joined: 04 May 2005 Posts: 15238 Location: Paradox Realm
|
Posted: Sun 09 Nov 2008, 07:45 Post subject:
|
|
Hi Mathias
Welcome to the kennels (Puppy Community)
Glad you accepted my invitation - good to have you here
- just want to add something for Cur Dog
Your error messages (I got them in geany too) are caused by Linefeeds
- my solution from terminal type leafpad (another editor)
and paste text and save without linefeeds use CR (carriage return) instead - you can probably do this in Geany too . . .
_________________ YinYana AI Buddhism
|
Back to top
|
|
 |
|