"Resource use (compiler and other tools) determined by server"
This means if the program is hosted by RPi, that can determine what gets used. No one that I know of is interested in converting GCC tools to Javascript.
What about gesture-based edits on a tablet? Will onkeypress catch edits like tapping on a word to select it, cut it, paste it elsewhere? Those gestures change the content. Are there other events that will catch those edits?
dgately
I was able to use onkeyup for the FlowBlocks program for text field editing.
To my mind if you need a 40 dollar dongle to program the prop then that dongle could as well be a Raspberry Pi or similar. In which case the compiler could as well run on that.
Could "the dongle" be based on the Spinneret 2 (new quickstart with ethernet david is working on)?
Because after loading the "slave prop" (target) there are likely to be a few spare cogs (and several spare io pins) in the "dongle prop" that could be optionally put to good use. Plus whatever code we develop is prop-centric rather than an arm or other processor
Could "the dongle" be based on the Spinneret 2 (new quickstart with ethernet david is working on)?
Because after loading the "slave prop" (target) there are likely to be a few spare cogs (and several spare io pins) in the "dongle prop" that could be optionally put to good use. Plus whatever code we develop is prop-centric rather than an arm or other processor
That is certainly possible and I think Steve already mentioned the Spinneret as an option. The main problem is that you don't get a wireless connection. That means you need a Wi-Fi router to communicate with the tablet since it can't connect through Ethernet.
What's this supposed to do? Does it compile the program and load it into an attached Propeller?
I believe it compiles the simple spin example into byte codes that eventually will be downloaded to a Prop once it's figured out how to do so. I think elsewhere in this thread it was mentioned he broke the code for this example. It worked yesterday but seems broken now.
...have you had any luck getting this to work again?
Not yet. I started again from scratch. This time I'm writing instructions and notes as I go along. I had to do a lot of experimenting to get that thing built. the emscripten documentation is not always clear or complete. Hopefully I can post the instructions up somewhere so that others can play.
The good news is that the boss declared a holiday all this week so I'll have some time to do something. A demo next week should be possible.
Any idea what broke it? Can you just run the translation over again?
Yes, me !
Thing is the build system generates a big JS file and an HTML page to run it in which contains a pile of JS to configure the thing and provide support functions.
As was only experimenting I was hacking away on that HTML/JS.
Then I had to regenerate everything, at which point I discovered my backed up versions had been accidentally clobbered. Finger trouble.
Not yet. I started again from scratch. This time I'm writing instructions and notes as I go along. I had to do a lot of experimenting to get that thing built. the emscripten documentation is not always clear or complete. Hopefully I can post the instructions up somewhere so that others can play.
The good news is that the boss declared a holiday all this week so I'll have some time to do something. A demo next week should be possible.
Lucky you! I'm working every day except Wednesday although almost no one else at ST is so I'm pretty much on my own.
OK. openspin.js has been a bit sidetracked by the idea of documenting the process. Sounds simple right?
Well not if you decide to do the documenting in a blog. I thought I would try out the new Ghost blogging set up https://ghost.org/.
Ghost is small a very simple, compared to wordpress for example. It enables you to write everything in Markdown with a sort of WYSIWYG web based editor.
Ghost is written entirely in Javascript so it fits in with the theme of the work here. No ugly PHP or MySQL data bases to mess with.
Of course I got sidtracked by figuring out how to tweak Ghost and add things like code syntax highlighting to blog posts etc.
Anyway, can anyone out there see the result? This is all running on my local LAN. The odd thing is that it works internally on localhost but I can't see it at it's domain name "a.linuxsecured.net".
OK. openspin.js has been a bit sidetracked by the idea of documenting the process. Sounds simple right?
Well not if you decide to do the documenting in a blog. I thought I would try out the new Ghost blogging set up https://ghost.org/.
Ghost is small a very simple, compared to wordpress for example. It enables you to write everything in Markdown with a sort of WYSIWYG web based editor.
Ghost is written entirely in Javascript so it fits in with the theme of the work here. No ugly PHP or MySQL data bases to mess with.
Of course I got sidtracked by figuring out how to tweak Ghost and add things like code syntax highlighting to blog posts etc.
Anyway, can anyone out there see the result? This is all running on my local LAN. The odd thing is that it works internally on localhost but I can't see it at it's domain name "a.linuxsecured.net".
I'd hate to taint your Blog but do you want a Windows7 set of instructions if I can get it to work on Win7?
EDIT: UM, nevermind. Google tells me Clang on Windows appears or be either an experiemental effort or only available as older releases. I'm not up for the pain and suffering when I have Linux and OSx readily availble. Sorry all you Windows users!
Fortinet says it's a malicious website..
"URL: a.linuxsecured.net/
Category: Malicious Websites"
But they (Fortinet) are almost always wrong. It means that I can't currently access it though.
Strangely enough a.linuxsecured.net used to point to my Raspi here. I redirected it to my PC so people could see the openspin.html. Perhaps I'll move it back some time.
Anyway, the instructions now get as far as producing a JS openspin that runs under node.
Just curious. I'm getting a RaspPi soon and am wondering what to do with it other than trying to talk to a Propeller from some of its GPIO pins.
Strangely enough a.linuxsecured.net used to point to my Raspi here. I redirected it to my PC so people could see the openspin.html. Perhaps I'll move it back some time.
Anyway, the instructions now get as far as producing a JS openspin that runs under node.
Does it have decent performance? Somehow I can't imagine translating GCC to JavaScript. Can node.js really handle a program that large? Also, GCC is just a shell that invokes lots of other programs under the hood. Is that support available with this translator? In other words, can the program do fork/exec?
Who on Earth are Fortinet and why can't you turn them off?
Firewall company.. sell 'Fortigate' stuff. Our corporate firewall (well, one of them), it transparently filters URLs by looking up Fortinet's very very inaccurate database. Apparently they start out by putting every URL in the 'malicious' category and then relies on people to ask them to change the category. I've done it more times than I can count, and they always fix it - eventually - but it's a bit tiresome, I have to re-direct through the tor onion network to see the page and so on.
Comments
"Resource use (compiler and other tools) determined by server"
This means if the program is hosted by RPi, that can determine what gets used. No one that I know of is interested in converting GCC tools to Javascript.
Could "the dongle" be based on the Spinneret 2 (new quickstart with ethernet david is working on)?
Because after loading the "slave prop" (target) there are likely to be a few spare cogs (and several spare io pins) in the "dongle prop" that could be optionally put to good use. Plus whatever code we develop is prop-centric rather than an arm or other processor
http://a.linuxsecured.net/openspin.html
I'm hoping to have a demo ready early next week.
I believe it compiles the simple spin example into byte codes that eventually will be downloaded to a Prop once it's figured out how to do so. I think elsewhere in this thread it was mentioned he broke the code for this example. It worked yesterday but seems broken now.
What it is supposed to be is openspin translated to Javascript that compiles Spin in your browser.
When it worked that was all it did, The resulting binary never left your browser unless you copied the displayed hex dump.
Not yet. I started again from scratch. This time I'm writing instructions and notes as I go along. I had to do a lot of experimenting to get that thing built. the emscripten documentation is not always clear or complete. Hopefully I can post the instructions up somewhere so that others can play.
The good news is that the boss declared a holiday all this week so I'll have some time to do something. A demo next week should be possible.
Thing is the build system generates a big JS file and an HTML page to run it in which contains a pile of JS to configure the thing and provide support functions.
As was only experimenting I was hacking away on that HTML/JS.
Then I had to regenerate everything, at which point I discovered my backed up versions had been accidentally clobbered. Finger trouble.
Lucky you! I'm self-employed and have to work Wednesday. My boss is an absolute ogre!
-Phil
Well not if you decide to do the documenting in a blog. I thought I would try out the new Ghost blogging set up https://ghost.org/.
Ghost is small a very simple, compared to wordpress for example. It enables you to write everything in Markdown with a sort of WYSIWYG web based editor.
Ghost is written entirely in Javascript so it fits in with the theme of the work here. No ugly PHP or MySQL data bases to mess with.
Of course I got sidtracked by figuring out how to tweak Ghost and add things like code syntax highlighting to blog posts etc.
Anyway, can anyone out there see the result? This is all running on my local LAN. The odd thing is that it works internally on localhost but I can't see it at it's domain name "a.linuxsecured.net".
Can you see this : http://a.linuxsecured.net/ ?
There is a start on the openspin to JS compilation instructions there.
Are you here?
That's great. What happens when you hit the title of the posts?
I'd hate to taint your Blog but do you want a Windows7 set of instructions if I can get it to work on Win7?
EDIT: UM, nevermind. Google tells me Clang on Windows appears or be either an experiemental effort or only available as older releases. I'm not up for the pain and suffering when I have Linux and OSx readily availble. Sorry all you Windows users!
"URL: a.linuxsecured.net/
Category: Malicious Websites"
But they (Fortinet) are almost always wrong. It means that I can't currently access it though.
-Tor
Strangely enough a.linuxsecured.net used to point to my Raspi here. I redirected it to my PC so people could see the openspin.html. Perhaps I'll move it back some time.
Anyway, the instructions now get as far as producing a JS openspin that runs under node.
"malicious web site"
Might be
Who on Earth are Fortinet and why can't you turn them off?
Seems to be a lot of that going around.
I'm in the office working and got an email with some updated code from what is turning out to be a very dedicated vendor.
At least the government gives us that money tree when we become self-employed.
C.W.
Yeah, it seems like everyone thinks you're somehow magically rich when you are self employed.
I'm hoping they are correct and I just haven't found my money tree yet...
C.W.
-Tor