Wait a while. It might just take a long time the first time you press the "compile" button.
I did wait a while as I figured that may be the case but still no go. I tried it on my Samsung Galaxy S3 phone using Chrome browser and it works quickly.
That is probably a fault at my end if you are accessing that URL.
There is something very strange going on with my old AMD 64 box running Debian that is serving that up.
I have recently been getting huge lags doing anything, it's like something is hogging all the CPU or disc access but I can't see it anywhere (Must be the NSA in my machine right )
Anyway just now I totally stuffed it up by trying to run the memory profiler in Chrome's dev tools. Seems I don't have enough memory to do that !
I checked the settings for Chrome on my tablet to make sure Javascript was enabled. It was. So I tried clearing the browser history and cache and that fixed it. Works fast.
I thought it might be worth mentioning here... I just received the other day an OTG USB cable that can be used on my tablet and phone. I can plug in a memory stick and it spawns a folder with which I can view / transfer files. So what I'm thinking is there may be a way for you to send out the byte codes via USB and thus connect to a Prop board with an FTDI chip on it? Essentially programming the Prop :-)
Could you guys check out openspin_web_demo2 attached on some different browsers?
The issue I'm trying to fix here is that every time you hit the compile button a huge lot of memory was being leaked.
I found a solution that suggested wrapping the entire emscripten generated javascript in a function such that everything it creates in memory is destroyed when the function exits.
Having wrapped the compiler up like that it seems to run without leaks on my FireFox but still has the same problem in Chrome (On Debian).
It's also a bit slower because it recreates and tears down the entire run time of the compiler every time. Perhaps not to bad though.
1. Compiled several PE Kit Lab .spin sources on MacBook Prop (OS: Mavericks 10.9) FireFox, Chrome & Safari, with success. One of which created a 512 byte binary!
2. Tried compiling PhiPi's basic_sio.spin, which contains PASM code. It fails with the following:
preload time: 17 ms
Propeller Spin/PASM Compiler 'OpenSpin' (c)2012-2013 Parallax Inc. DBA Parallax Semiconductor.
Compiled on Jan 3 2014
Compiling...
test.spin
test.spin(160:33) : error : Undefined symbol
Line:
djnz bitcnt,#:bitlp 'Back for next bit.
Offending Item: :bitlp
Binary file =
Guys, I'm dead in the water. That PC I mentioned was behaving oddly has finally revealed it's problem.
It was getting slower and slower and slower.
Turns out the hard drive is having a real hard time reading it's disk. When I put my ear to it I can hear it reading and rereading over and over. I guess it tries hard to get something error free off of there. It just booted up correctly but that took half an hour !
Never seen a machine in this state before.
Looks like I will be installing some new drives and rebuilding my OS the way I like it for a while....
Thanks for the feed back. That leaking is becomming a nice challenge:)
It doesn't run in Internet Explorer
Don't care. I don't work for MS and Windows users can always install something else for free if they want to play along.
Still, I will have a look at that assert, it may have clues for us.
dgately,
I notice errors like that very recently as well. Seems it does not like semi-colons or the quote used for comments.
I suspect this is a char encoding issue somewhere.
Was able to test the .html & .js on my HiSense Sero 7 Pro 7" Android tablet (running Android 4.2.1) as well. As with David's experience, it took a long time (30-60 seconds) for the initial compile, but is now taking 2-4 seconds to complete compiles.
Heater, good luck with your PC thrash... Hope it goes quickly!
It's thrashing like crazy even when it has nothing to do. So when I do actually want to do something it has no time for me and whatever it is can take forever. No errors anywhere though.
Might be a trojan. Last time I heard a drive thrashing endlessly like this was when somewone managed to start using my mail server for SPAMing.
Thing is it takes forever for the thing to get out of the BIOS and into the GRUB boot loader which then takes forever to load a Linux kernel, which then takes forever to start up. That would have to be some funky trojan, like in the drives controller. Which is not to say it's impossible.
I enabled SMART and ran a quick test. Never used it before so I have no idea what I'm looking at. Some of the numbers did not look good.
Oddly, Linux thinks everything is OK. It just takes a long time.
Just now I'm pulling my latest files off it for back up.
Any recomendations for SSDs ? I'm thinking some kind of Samsung 128GB for about a hundred Euros.
Might be a trojan. Last time I heard a drive thrashing endlessly like this was when somewone managed to start using my mail server for SPAMing.
Thing is it takes forever for the thing to get out of the BIOS and into the GRUB boot loader which then takes forever to load a Linux kernel, which then takes forever to start up. That would have to be some funky trojan, like in the drives controller. Which is not to say it's impossible.
I enabled SMART and ran a quick test. Never used it before so I have no idea what I'm looking at. Some of the numbers did not look good.
Oddly, Linux thinks everything is OK. It just takes a long time.
Just now I'm pulling my latest files off it for back up.
Any recomendations for SSDs ? I'm thinking some kind of Samsung 128GB for about a hundred Euros.
I have a Samsung 512GB SSD in my MacBook Pro and it seems to work well.
It's one of those beautiful Cockney London expressions. As such it should be pronounced " 'er in doors "
Funny thing was, Arthur was always having to work around the wishes of "her in doors" in his dodgy black market business machinations, but we never saw his wife.
Somewhere In post #4 @Heater. asked about XMLhttprequests.
So I took PhilPhis EditSpin and modified it to fit my needs for easy use on the spinneret. So for easy deployment and to save precious sockets/requests on the Spinneret I included all css an js files into the html page. Then I moved the existing js start script into a body onload event removed the spin code and added a textbox plus load and save button.
Since it is all included in one htm page you ever can run it from your local file system. But here is the caveat. XHTTPrequest and Cross Origin access.
The rules there are quite simple:
Either the Editor.htm and the file you want to edit are on the same webserver/site, or the webserver hosting the files to edit has to allow cross origin requests.
So if you want to run the editor.htm from one website and edit files on another website then the other website has to allow you to do so.
The Server will need to send one additional header with the file: Access-Control-Allow-Origin: *
The Server MAY need to add one header to the OPTIONS request: Access-Control-Allow-Methods: *
Some Browser will send OPTION requests for the file other do not.
Anyways - the Editor uses GET requests for the load button and PUT requests for the save button. PUT is easier to handle on the spinneret side of things and changing that to POST is simple.
just open the attached txt file (to use rename to htm... can't upload htm) and scroll to the END of the file to see the code for bodyonload, load and save.
I try to get my Spinneret in the DMZ of the router to have it available from outside. If successful I will post the URL later.
If you put the Editor.htm on your own webserver/site you can edit all files on your site. To be able to save you need to allow PUT or write your own POST handler...
There does not seem to be any way to cut/copy and paste in there.
Hmm. Works for me. But I use this other Browser you do not use...
To use Jazzed compiler I MAY need to install another one anyways. Chrome maybe?
PhilPhi found this Editor called CodeMirror. www.codemirror.net He uses Version 2 and now there is a Version 3 out there.
Since JavaScript is not my prime language I opted for the easy way and just took PhilPhi's Source. He added support for SPIN/PASM already and I do not know yet if I can move that to Version3 without breaking it.
I just added the buttons to load and save and put all in one file for easier deployment. This editor can do way more as is used now. There is support for a lot of languages and even for folding the edited source-code.
Supporting PUT requests is usually disabled in webservers, but all of them are able to allow them. Even the Spinneret.
So I bought that SSD. A Samsung 840 EVO, only 120GB.
Good grief does that make a difference. My old AMD 64 4000+ is flying! And it's dead quite now, very spooky.
Oddly it occurs to me this is the first time I have used a computer without rotating storage since about 1983 when we had a Compaq Grid with magnetic bubble memory in the office http://pc-freak.net/blog/tag/bubble-memory/
What worries me now is wearing the thing out. I think I'd like to move my swap partition, log files etc to a regular hard drive. Or do I worry too much?
Having been up the whole night rebuilding my OS and apps the way I like them and restoring backups I'm almost ready to get back to emscriptening.
Problem is I'm going to have to sleep all day and then it's back to work on Monday
heater:
Are there any tools for the SSD to find out how many writes have occurred or other statistics?
I would presume there is some form of algorithm used for wear levelling like on SD cards.
I also presume that the sw is smart enough to not rewrite is no changes have been done.
BTW what did it cist?
Comments
I did wait a while as I figured that may be the case but still no go. I tried it on my Samsung Galaxy S3 phone using Chrome browser and it works quickly.
That is probably a fault at my end if you are accessing that URL.
There is something very strange going on with my old AMD 64 box running Debian that is serving that up.
I have recently been getting huge lags doing anything, it's like something is hogging all the CPU or disc access but I can't see it anywhere (Must be the NSA in my machine right )
Anyway just now I totally stuffed it up by trying to run the memory profiler in Chrome's dev tools. Seems I don't have enough memory to do that !
Everything went stuck.
I'll try and drop the ACE text editor component in today.
It leaks in:
FireFox on Mint16.
Chrome on Windows7.
It doesn't run in Internet Explorer. The openSpinCompile() function results in the assert at line 1028.
1. Compiled several PE Kit Lab .spin sources on MacBook Prop (OS: Mavericks 10.9) FireFox, Chrome & Safari, with success. One of which created a 512 byte binary!
2. Tried compiling PhiPi's basic_sio.spin, which contains PASM code. It fails with the following:
basic_sio.spin
This file compiles in openspin on the command-line...
dgately
It was getting slower and slower and slower.
Turns out the hard drive is having a real hard time reading it's disk. When I put my ear to it I can hear it reading and rereading over and over. I guess it tries hard to get something error free off of there. It just booted up correctly but that took half an hour !
Never seen a machine in this state before.
Looks like I will be installing some new drives and rebuilding my OS the way I like it for a while....
Thanks for the feed back. That leaking is becomming a nice challenge:) Don't care. I don't work for MS and Windows users can always install something else for free if they want to play along.
Still, I will have a look at that assert, it may have clues for us.
dgately,
I notice errors like that very recently as well. Seems it does not like semi-colons or the quote used for comments.
I suspect this is a char encoding issue somewhere.
Sorry your having trouble Heater. Good luck getting the next one up.
I've run all my Linux and other OS in Windows 7 + VirtualBox after having a similar crash 5 years ago. Works rather nicely so far.
Don't worrry Heater, we'll have a solution for Internet Exploder users.
Heater, good luck with your PC thrash... Hope it goes quickly!
dgately
Yep, a virtual box solution is a great idea. Linux on Linux of course!
I already have a solution for Internet Exploder users, it's probably not socially acceptable though:)
I finally have an excuse for "her indoors" for investing in an SSD or perhaps a whole new machine tomorrow:)
Else I have to wait till next week when I can requisition a nice PC from work.
It's thrashing like crazy even when it has nothing to do. So when I do actually want to do something it has no time for me and whatever it is can take forever. No errors anywhere though.
Never seen a drive get like this before.
-Phil
Thing is it takes forever for the thing to get out of the BIOS and into the GRUB boot loader which then takes forever to load a Linux kernel, which then takes forever to start up. That would have to be some funky trojan, like in the drives controller. Which is not to say it's impossible.
I enabled SMART and ran a quick test. Never used it before so I have no idea what I'm looking at. Some of the numbers did not look good.
Oddly, Linux thinks everything is OK. It just takes a long time.
Just now I'm pulling my latest files off it for back up.
Any recomendations for SSDs ? I'm thinking some kind of Samsung 128GB for about a hundred Euros.
Evo are probably a very good trade off. They are blazing fast even with windows...
An expression made famous by the character Arthur Daley in the TV series "Minder".
http://www.urbandictionary.com/define.php?term=her indoors
It's one of those beautiful Cockney London expressions. As such it should be pronounced " 'er in doors "
Funny thing was, Arthur was always having to work around the wishes of "her in doors" in his dodgy black market business machinations, but we never saw his wife.
So I took PhilPhis EditSpin and modified it to fit my needs for easy use on the spinneret. So for easy deployment and to save precious sockets/requests on the Spinneret I included all css an js files into the html page. Then I moved the existing js start script into a body onload event removed the spin code and added a textbox plus load and save button.
Since it is all included in one htm page you ever can run it from your local file system. But here is the caveat. XHTTPrequest and Cross Origin access.
The rules there are quite simple:
Either the Editor.htm and the file you want to edit are on the same webserver/site, or the webserver hosting the files to edit has to allow cross origin requests.
So if you want to run the editor.htm from one website and edit files on another website then the other website has to allow you to do so.
The Server will need to send one additional header with the file: Access-Control-Allow-Origin: *
The Server MAY need to add one header to the OPTIONS request: Access-Control-Allow-Methods: *
Some Browser will send OPTION requests for the file other do not.
Anyways - the Editor uses GET requests for the load button and PUT requests for the save button. PUT is easier to handle on the spinneret side of things and changing that to POST is simple.
just open the attached txt file (to use rename to htm... can't upload htm) and scroll to the END of the file to see the code for bodyonload, load and save.
I try to get my Spinneret in the DMZ of the router to have it available from outside. If successful I will post the URL later.
If you put the Editor.htm on your own webserver/site you can edit all files on your site. To be able to save you need to allow PUT or write your own POST handler...
the basic code looks like this
where filename is a html text box.
It should be possible to send requests to some node server or whatever, this may be @Heaters domain (again...)
But here we have a SPIN/PASM Editor with syntax-highlighting and auto-completion using CodeMirror2. It is possible to add this for C too.
Need to play with this more...
Enjoy!
Mike
Sounds great! Thanks.
Yes, I anticipate starting to use the AJAX calls very soon now that I have some special parts. Looking for a special loader now
Nice editor.
There does not seem to be any way to cut/copy and paste in there.
Jazzed,
...some special parts...?
Do tell.
Hmm. Works for me. But I use this other Browser you do not use...
To use Jazzed compiler I MAY need to install another one anyways. Chrome maybe?
PhilPhi found this Editor called CodeMirror. www.codemirror.net He uses Version 2 and now there is a Version 3 out there.
Since JavaScript is not my prime language I opted for the easy way and just took PhilPhi's Source. He added support for SPIN/PASM already and I do not know yet if I can move that to Version3 without breaking it.
I just added the buttons to load and save and put all in one file for easier deployment. This editor can do way more as is used now. There is support for a lot of languages and even for folding the edited source-code.
Supporting PUT requests is usually disabled in webservers, but all of them are able to allow them. Even the Spinneret.
Enjoy!
Mike
I tried the editor in firefox on a windows XP box. When I hit Ctrl-C it inserted the text "case".
Ctrl-v got me "var", Ctrl-p got me "par".
Now I tried it in IE on XP and it works as expected.
codeMirror looks pretty cool. Someone should submit the Spin mode there so that it is "offical".
Yes, supporting PUT requests can be enabled, one way or another
I wrote a simple python server, and added some code to the editor file you posted.
Next up? Terminal. Then special propeller boot-loader
Good grief does that make a difference. My old AMD 64 4000+ is flying! And it's dead quite now, very spooky.
Oddly it occurs to me this is the first time I have used a computer without rotating storage since about 1983 when we had a Compaq Grid with magnetic bubble memory in the office http://pc-freak.net/blog/tag/bubble-memory/
What worries me now is wearing the thing out. I think I'd like to move my swap partition, log files etc to a regular hard drive. Or do I worry too much?
Having been up the whole night rebuilding my OS and apps the way I like them and restoring backups I'm almost ready to get back to emscriptening.
Problem is I'm going to have to sleep all day and then it's back to work on Monday
Are there any tools for the SSD to find out how many writes have occurred or other statistics?
I would presume there is some form of algorithm used for wear levelling like on SD cards.
I also presume that the sw is smart enough to not rewrite is no changes have been done.
BTW what did it cist?