Oxygen Basic
Information => Open Forum => Topic started by: JRS on June 07, 2011, 08:45:46 PM
-
Hi Charles,
Are you on holiday or locked in your room and can't get out? ???
A simple ping would make me feel better knowing you're okay.
John
-
Hi John,
I have been beavering away. Alpha35 coming up :)
Charles
-
(http://www.freesmileys.org/smileys/smiley-forum/stirthepot.gif)
Anything for SB in the mix?
-
John,
I have one major task before we procede and that is to reconcile Oxygen's string management system with multithreading. I think it is not practical to make it re-entrant so I envisage using thread locks for every expression/line using heap memory.
Charles
-
Thanks for the update Charles.
You may want to take a look at Peter Verhas's MyAlloc before doing this from scratch.
-
John,
Allocating and releasing strings is fairly easy. But the entire string management system includes a concatenation buffer which has to maintain its state across potentially any number of procedures, as a string is being constructed, before it is assigned to a variable.
I understand thread granularity is fairly coarse (say 1 to 10mS) so it makes sense to ensure that a thread has exclusive access for each statement involving a string operation.
I think this needs to be entirely controlled by the programmer rather than attempting to do it automatically in the compiler.
Charles
-
Many thanks for restoring the forum John.
Have you any idea what caused it to collapse when all I did was to uninstall the highlighter package? I did not anticipate such a result!
Would it be possible to install the highlighter to theme1 rather than the default theme?
Charles
-
Don't blame yourself, it might have been a poor job on the mod authors part not testing the removal part.
Let me know when you feel comfortable with the new messages after the 6th and I'll do another backup before trying again with the syntax highlighter.
-
I had to restore one web page but all the Oxygen zips were intact. I bit of scrambling on recent forum posts is no problem.
Charles
-
Thanks John for efforts. Currently I am unable to see the highlighting... I checked for my theme setting but couldn't find it. I did see a setting that mentioned default scheme for the date format.
Sorry to hear the forum was down because of adding and trying this feature. I have not set up a forum before, other than just trying them and quickly removing them. I saw how much work it is to make a really cool forum, so the work you guys do is really appreciated!
-
I think it's safe to go ahead with the highlighter John. I have downloaded copies of all the sources and themes. If it won't work with theme1 then we can go with the default theme and I will modify that.
Charles
-
I think the next step is to get your OxygenBasic .js file built. The highlighter is rather useless without it. If you run into any issues or have questions building this file, I'm sure Eros would help as he has already been down this road building it for the vBulletin forum. The most important backup is the forum MySQL database. I'll do another site backup before I try this again.
It's approaching the end of my day and I'll get the highlighter installed tomorrow.
-
I will clone it from the java or C++.
Charles
-
The SyntaxHighlighter mod has been installed but under the default theme. (never given an option to chose a different theme) I guess you are going to have to copy your mods to the default.
Goodnight.
-
Good Morning John,
My solution is to copy the style sheet of theme1 to default theme.
I have made progress with the highlighter, - hijacking the shBrushJava.js. It was not interested in an O2 file. So these must be held as a fixed list somewhere.
It answers to the following:
[ code] as before.
Any of these will respond to O2 syntax
[ code=o2]
[ code=o2h]
[ code=oxy]
[ code=[oxygen]
[ code=o2bas]
This is a rough draft. I have not covered all the keywords yet.
Charles