Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 22 Dec 2014, 09:02
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
Wirbel - a new programming language
Moderators: deshlab, Flash, GuestToo, Ian, JohnMurga, Lobster
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 2 Posts_count   Goto page: 1, 2 Next
Author Message
reckrhodes

Joined: 30 May 2007
Posts: 116

PostPosted: 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
wirbel-0.1.8-i386-for-4.0.pet
Description  to be used for puppy linux 4.0
pet

 Download 
Filename  wirbel-0.1.8-i386-for-4.0.pet 
Filesize  431.34 KB 
Downloaded  430 Time(s) 
wirbel-0.1.8-i386-for-4.1.pet
Description  to be used for puppy linux 4.10
pet

 Download 
Filename  wirbel-0.1.8-i386-for-4.1.pet 
Filesize  431.25 KB 
Downloaded  480 Time(s) 

Edited_times_total
Back to top
View user's profile Send_private_message 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15122
Location: Paradox Realm

PostPosted: Sun 02 Nov 2008, 04:34    Post_subject:  

reckrhodes you are a star Smile

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?

_________________
Puppy WIKI
Back to top
View user's profile Send_private_message Visit_website 
reckrhodes

Joined: 30 May 2007
Posts: 116

PostPosted: Sun 02 Nov 2008, 16:35    Post_subject:  

thank you sir Lobster. Very Happy

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
View user's profile Send_private_message 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15122
Location: Paradox Realm

PostPosted: 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?

_________________
Puppy WIKI
Back to top
View user's profile Send_private_message Visit_website 
Keef


Joined: 20 Dec 2007
Posts: 649
Location: Staffordshire

PostPosted: 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
View user's profile Send_private_message 
Firefox

Joined: 03 Nov 2006
Posts: 171
Location: UK

PostPosted: 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
View user's profile Send_private_message 
seaside

Joined: 11 Apr 2007
Posts: 888

PostPosted: 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
View user's profile Send_private_message 
Cur Dog

Joined: 22 Dec 2007
Posts: 60

PostPosted: 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
View user's profile Send_private_message 
reckrhodes

Joined: 30 May 2007
Posts: 116

PostPosted: 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.
wirbel-0.1.8-i386.pet
Description 
pet

 Download 
Filename  wirbel-0.1.8-i386.pet 
Filesize  584.48 KB 
Downloaded  408 Time(s) 
Back to top
View user's profile Send_private_message 
Cur Dog

Joined: 22 Dec 2007
Posts: 60

PostPosted: 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
View user's profile Send_private_message 
Keef


Joined: 20 Dec 2007
Posts: 649
Location: Staffordshire

PostPosted: 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. Embarassed
Back to top
View user's profile Send_private_message 
brad_chuck

Joined: 15 Aug 2005
Posts: 284
Location: Appalachian Mountains

PostPosted: 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
View user's profile Send_private_message 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15122
Location: Paradox Realm

PostPosted: Sun 09 Nov 2008, 06:42    Post_subject:  

Thanks guys - got it working now Smile

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 . . .

Wink

_________________
Puppy WIKI
Back to top
View user's profile Send_private_message Visit_website 
MathiasKettner


Joined: 09 Nov 2008
Posts: 3

PostPosted: 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 Wink

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
View user's profile Send_private_message Visit_website 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15122
Location: Paradox Realm

PostPosted: 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 Smile

- 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 . . .

_________________
Puppy WIKI
Back to top
View user's profile Send_private_message Visit_website 
Display_posts:   Sort by:   
Page 1 of 2 Posts_count   Goto page: 1, 2 Next
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0906s ][ Queries: 12 (0.0044s) ][ GZIP on ]