Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Sept 27, 2013 21:47:19 GMT 1
I ran into a cool site that offers visitors the ability to try out languages online. (compilers, interpreters, ...) I was able to get ScriptBasic submitted and working on the site. (SB 2.2 CentOS 64 bit) I have tested the curl, sqlite, hash, t, gd SB extensions modules and they seem to work fine. MySQL/unixODBC isn't supported due to possible abuse. Files created with SB seem to be deleted after the session is exited. (you can download compiled projects before they're deleted) It would be great if BaCon could be added to the list of languages supported there.
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Sept 28, 2013 22:33:10 GMT 1
I have submitted a request to CompileOnline.com to support BaCon. Lets hope Mohtashim has time and is willing to set it up.
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Sept 29, 2013 18:56:58 GMT 1
I'm happy to announce that BaCon is now Online, BaCon Online@peter - Is there a way to prevent the line indicator from displaying, Since this isn't a true console the lines roll down the screen Let me know if you have any suggestions to improve the online version of BaCon. We are still refining the interface an it will be added to the main menu after that.
|
|
|
Post by bigbass on Sept 29, 2013 20:15:09 GMT 1
Hey John I really like this idea ! Having a way to compile on line is really great for many reasons one is we can compile for a different machine virtual (so to say ) and sometimes I am at work and want to test an idea and dont have a bacon compiler at hand file main main: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, not stripped
It compiles 64 bit I have 32 bit so I couldnt test it though I tried passing -m32 as a compiler option but maybe thats not enough? may need to have a 32bit glibc dev package available/installed for gtk2 and gtk3 when doing more complex example code feedback may need to append a "y" for yes somehow to clean up a bad build I will help out with testing and feedback by testing many snippets Thank you for initiating this for BaCon very useful *It compiles examples also with PROTO and PRAGMA so this means gtk2 and gtk3 work also on 64bit too bad I cant test it yet though will up load a bin later for someone to test Joe
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Sept 29, 2013 20:26:43 GMT 1
Thanks Joe for helping with the testing.
I'm going to change the line counting rolling down the screen and maybe use dots instead.
It generates CentOS 64 bit BaCon executables. I think as this catches on he should move to Amazon EC2 and have different OS options as well. (Including Windows)
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Sept 29, 2013 20:52:42 GMT 1
Maybe putting a Y in the user INPUT box will accept it as if you typed it from the keyboard. This is the purpose of that box. (user input during program execution)
|
|
|
Post by bigbass on Sept 29, 2013 21:09:51 GMT 1
Hey John on the top left there are two click buttons one to generate GNU C and the other to generate compile compile& and this button cuts off text they both upon clicking should delete all tmp files automatically so you start fresh no need to pass an option for this even if it were possible =========================================================== I went back and used the default example and added -m32 for compiling options and it works and the resulting binary works file I got a bit jumpy trying to compile 32 bit with gtk2 and gtk3 with PROTO PRAGMA options but since I see that it will compile 32 bit I will figure it out sooner or later to add gtk2 as an option the same way I added manually -m32 ? working on it Joe
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Sept 29, 2013 21:29:13 GMT 1
Too cool! I'm glad you're having as much fun as I'm having with trying all the different languages the site offers.
|
|
|
Post by bigbass on Sept 29, 2013 22:28:25 GMT 1
Hey John when trying to compile with gtk using the -m32 option I get this error Generating BASIC to GNU C code.... $bacon -c gcc -p -m32 main.bac 2>&1 Converting: main.bac Converting 'main.bac'... done.[0J Applying indentation... done. Compiling 'main.bac'... Compiler error: sh: /bin/cat: Permission deniedlooks like a permissions change needed there this compiles 64 bit can you try it please (wont compile 32 bit yet) for the above error basic-converter.proboards.com/post/5034Joe
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Sept 29, 2013 23:00:51 GMT 1
Could be there is no 32 bit Gtk libraries on the server. (guess)
cat is disabled for a reason. TOO DANGEROUS. It's how you copy files on Android Linux. (non-rooted)
FYI
You have multiple shells to look around the server.
I would look at /usr/local to get you acclimated.
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Sept 29, 2013 23:28:04 GMT 1
jrs@laptop:~/sb/compileonline/joe_test$ ls -l total 196 -rw-r--r-- 1 jrs jrs 126 Sep 29 15:23 input.txt -rwxr-xr-x 1 jrs jrs 57550 Sep 29 15:23 main -rw-r--r-- 1 jrs jrs 3352 Sep 29 15:23 main.bac -rw-r--r-- 1 jrs jrs 5503 Sep 29 15:23 main.bac.c -rw-r--r-- 1 jrs jrs 40 Sep 29 15:23 main.bac.float.h -rw-r--r-- 1 jrs jrs 58775 Sep 29 15:23 main.bac.h -rw-r--r-- 1 jrs jrs 0 Sep 29 15:23 main.bac.log -rw-r--r-- 1 jrs jrs 39 Sep 29 15:23 main.bac.string.h -rw-r--r-- 1 jrs jrs 1011 Sep 29 15:23 main.copy_clicked.h -rw-r--r-- 1 jrs jrs 656 Sep 29 15:23 main.cut_clicked.h -rw-r--r-- 1 jrs jrs 397 Sep 29 15:23 main.exit_prog.h -rw-r--r-- 1 jrs jrs 607 Sep 29 15:23 main.paste_clicked.h -rw------- 1 jrs jrs 33240 Sep 29 15:23 project.tar.gz jrs@laptop:~/sb/compileonline/joe_test$ ./main
(main:19958): Gtk-CRITICAL **: IA__gtk_window_new: assertion `type >= GTK_WINDOW_TOPLEVEL && type <= GTK_WINDOW_POPUP' failed
(main:19958): Gtk-CRITICAL **: IA__gtk_window_set_title: assertion `GTK_IS_WINDOW (window)' failed
(main:19958): Gtk-CRITICAL **: IA__gtk_container_set_border_width: assertion `GTK_IS_CONTAINER (container)' failed
(main:19958): GLib-GObject-WARNING **: invalid (NULL) pointer instance
(main:19958): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed Segmentation fault (core dumped) jrs@laptop:~/sb/compileonline/joe_test$
Could be a CentOS vs Ubuntu (Debian) issue.
|
|
|
Post by bigbass on Sept 29, 2013 23:42:15 GMT 1
Hey John
"Could be a CentOS vs Ubuntu (Debian) issue." mismatch glibc gtk toolchain etc...
but it compiles thats a good sign you even got the run time errors Thanks!
note that we could embed gtk without HUG
as a side note will that same code compile and run on your box without going virtual online ?
just to compare
this is a big plus if we get gtk to work
I would imagine HUG would be a bit heavy virtual but then again maybe not with a fast 64 box/server
Joe
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Sept 29, 2013 23:49:24 GMT 1
Interesting! I'm getting the same errors compiling native.
jrs@laptop:~/BaCon/V222$ ./bacon main.bac WARNING: temporary files found! Do you want to delete them (y/n)? y Temporary files were deleted. Converting: main.bac Converting 'main.bac'... done. Compiling 'main.bac'... done. Program 'main' ready. jrs@laptop:~/BaCon/V222$ ./main
(main:20211): Gtk-CRITICAL **: IA__gtk_window_new: assertion `type >= GTK_WINDOW_TOPLEVEL && type <= GTK_WINDOW_POPUP' failed
(main:20211): Gtk-CRITICAL **: IA__gtk_window_set_title: assertion `GTK_IS_WINDOW (window)' failed
(main:20211): Gtk-CRITICAL **: IA__gtk_container_set_border_width: assertion `GTK_IS_CONTAINER (container)' failed
(main:20211): GLib-GObject-WARNING **: invalid (NULL) pointer instance
(main:20211): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed Segmentation fault (core dumped) jrs@laptop:~/BaCon/V222$
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Sept 30, 2013 0:14:56 GMT 1
I have asked that the 32 bit dependencies be installed based on Joe's progress with -m32.
I'll let you know what Mohtashim has to say.
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Sept 30, 2013 4:15:39 GMT 1
This is a trick I use to get data I need for the program to process with the online version of ScriptBasic.
|
|