Is there any language similar to javascript but which can compile to binary?
Name:
Anonymous2008-12-24 16:48
>>40
Indeed. And you can make effective use of both of them so long as you're not typing obscure garbage.
Name:
Anonymous2008-12-24 16:52
>>41
I can hold shift/ctrl/alt with one and type with both.
This is what you use to type your post isn't?
Or do you type "control words" which get auto-capitalized to literal Uppercase characters prefixing words?
Name:
Anonymous2008-12-24 16:55
This is how you type sentences the Lua way:
cap this is how you type sentences the cap lua way:
Name:
Anonymous2008-12-24 16:57
>>43
OPTIMIZED
do cap this is how type sentences the cap lua way end
Name:
Anonymous2008-12-24 17:01
>>44
FURTHER OPTIMIZED:
do cap this
is how you
type sentences
end
cap lua
end
end
Name:
Anonymous2008-12-24 17:05
>>45
Emergency Patch from Microsoft:
do cap this
is how you
type sentences
end
if patchlevel> 2
cap lua +new "way"
else cap lua
end
end
Name:
Anonymous2008-12-24 20:07
Smaller set of fast and easily pipelinable operations considered superior to richer set of more complex and expressive operations, even at the cost of needing slightly more instructions to accomplish any given task.
Name:
Anonymous2008-12-25 2:44
Fcuk this bullshit i'm learnign C++ and writing my own language.
Name:
Anonymous2008-12-25 4:07
>>48
Why would you learn Sepples when you'll soon have your own language?
Name:
Anonymous2008-12-25 4:14
>>49
because you can't write new languages in Scheme or Javascript.
Languages like scheme and ml's are actually quite suitable for compiler creation.
Name:
Anonymous2008-12-25 6:11
1. JavaScript is a pretty cool guy.
2. Write a JavaScript I/O library and compiler.
3. ???
4. Profit
Name:
Anonymous2008-12-25 6:38
>>53
Yes,i can generate even raw binary files using plain javascript.
That doesn't mean it a great compiler generator.Its fucking slow.
Name:
Anonymous2008-12-25 6:46
Wikipedia:
The ideal compiler compiler takes a description of a programming language and a target instruction set architecture, and automatically generates a usable compiler from them. In practice, the state of the art has yet to reach this degree of sophistication and most compiler generators are not capable of handling semantic or target architecture information.
Just as i thought...
Name:
Anonymous2008-12-25 6:58
<JavaScript-like language><--Compiler for this(compile to .exe,not VM/runtime/interpreter) <--Compiler for compiler(must be already a compiled program,not intrepreter)
Name:
Anonymous2008-12-25 7:35
i'll probably need to interface it(the interpreter version of the Jcompiler) with Firefox.But this is insignificant compared to writing compiler.
Name:
Anonymous2008-12-25 8:57
>>55
I think i have a better idea,i juts need to test how fast JavaScript handles regex calls.
>>60
I tested this yesterday and apparently its quite fast for interpreted language.Using array.push() to build compiled strings and simple regex would allow easily to parse even 100Kb programs(this would take awhile,but i never wrote things larger then 5KB).
i think arrays+regex are more powerful then BNF grammars.
The compiler-compiler builds parse trees,introduce multiple meanings comprehension and other object-oriented crap.
Here a compiler in 3 lines:
regexarray=[];regexarray['compiledword']=/sometriggercode/gi;
codestring=codestring.replace(/\n/gi,";").split(";");
for(i in codestring){for(m in regexarray){codestring[i]=codestring.replace(regexarray[m],m)}}
Name:
Anonymous2008-12-26 3:49
Nothing but niggers.
First off, you don't need another language, you can use fucking JavaScript. So there is not "but which can compiler". JavaScript can already.
JavaScript has nothing to do with Java. It was only so named because of a lame and failed marketing deal.
However some fag decided to make a tool that compiles JavaScript to Java Bytecode. It sucks like all of Java.
What you want to do is compiler your JavaScript to a native binary using the .Net DLR.
The rest of you niggers, learn your shit.
Name:
Anonymous2008-12-26 3:55
>>62
It would not compile my IMPROVED version of javascript which
first needs to be compiled into .Net compatible JavaScript.(it more concise to write it my way).(and my regex converter would easily make assembly or C code blocks with some changes);
I will try .Net though.
Compilers are basically regex parsers
You are talking about the parser, which is the most simple part of a compiler.
Name:
Anonymous2008-12-26 5:00
>>65
wikipedia:
A compiler is a computer program (or set of programs) that translates text written in a computer language (the source language) into another computer language (the target language). The original sequence is usually called the source code and the output called object code. Commonly the output has a form suitable for processing by other programs (e.g., a linker), but it may be a human-readable text file.
http://en.wikipedia.org/wiki/Linker
In computer science, a linker or link editor is a program that takes one or more objects generated by a compiler and combines them into a single executable program.
>>67 http://en.wikipedia.org/wiki/Compiler#Compiled_versus_interpreted_languages
In a sense, all languages are interpreted, with "execution" being merely a special case of interpretation performed by transistors switching on a CPU. Modern trends toward just-in-time compilation and bytecode interpretation also blur the traditional categorizations.
Name:
Anonymous2008-12-26 5:15
"This article is about the computing term. For the anime, see Compiler (anime)." ...oh my.
Compiler (as in a computer compiler) is an anime based on the manga by Kia Asamiya which features two girls, Compiler and Assembler, who arrived on earth from 2-D cyberspace to play a "game" in which they will delete the real world and reform it. However, they move in with two young men called Toshi and Nachi and lose interest in the game. After Toshi is injured and the game is cancelled, two beings called Plasma and Compiler 2 are sent in to erase the girls. The opening theme is called, "I Was Born to fall in Love" and the end theme is called, "Full Up Mind", both by Masami Okui. As well as the soundtrack, a single of the opening theme and three image albums - Compiler, Assembler and Interpreter - were released.
O
ne day, two women, named Compiler and Assembler, drop down in front of brothers Toshi and Nachi. These two women have come from a cyberspace in order to play a game of destruction and creation. They begin their game, which consists of destroying the 3D world (The Earth) and reshaping it, but Toshi who they designated as their stand-alone (spectator), gets injured. Because they broke a rule stipulating that they aren't allowed to injure spectators, the game is canceled. Having failed at their mission, the ruling council of the cyberspace sends two beings to eliminate the two. However, the two girls have since moved in with Toshi and Nachi; as a result, they have lost their desire to continue the game. The animated version of the popular comic by Kia Asamiya. The OVA series consists of two distinctly different chapters, Yin and Yang.
One evening, Compiler is wandering the streets alone when she unexpectedly comes across Nachi together with a girl. Compiler exchanges pleasantries as she always does and leaves, but for some reason her mood is different today. She never used to care... What is this feeling? From that night,
Assembler and Toshi start to be concerned about Compiler, who has become depressed. After Assembler and Toshi leave, Compiler goes out again and once again spies Nachi trying to pick up a girl. Nachi sees Compiler and promptly invites her to go drinking with him. While drinking, Nachi flirts playfully with Compiler. However, Compiler, offended, slaps Nachi, gets up and leaves.
Nachi, however, is unflustered, and gets up and boldly joins a group of girls who have witnessed the scene and again begins making smooth talk. The next day Compiler is still wearing a long face. Asked what's wrong by Assembler, she replies that Nachi made advances on her, but can't come up with an answer for why she is in such a gloomy mood. Just then, a girl comes to visit Nachi. It's the girl he was making passes at the night before.
Main Staff
Original Concept : Kia Asamiya
Director / Script / Storyboards : Yasushi Murayama (Yin chapter), Takao Kato (Yang chapter)
Character Design : Yuji Moriyama
Animation Direction : Yasuhiro Oshima (Yin chapter), Toru Yoshida (Yang chapter)
Animation Production : animate film, Studio Fantasia
Name:
Anonymous2008-12-26 6:13
>>69-71
Damnit, this one is going to be hard to find...
But it'll probably be the "so bad it's good" type of anime. Sort of like SICP.
Name:
Anonymous2009-03-06 8:24
with Zope at a sixliner in Haskell and come back Excuse the lack of capitalization of?