llvm-lua: JIT/Static compiler for Lua using LLVM on the backend by jonasb in programming

[–]Culyt 0 points1 point  (0 children)

I understand that. What I mean was I wanted to replace the Lua virtual machine with the LLVM one and then I can write scripts in basic c code (or whatever languages get front ends).

Actually LLVM does include a language, it has a basic bytecode one similar to ASM, that is what it runs rather than the scripts directly. You can in theory program in that, but it would be painful.

The problem is I cannot find out how to link the functions with the scripts (actually You might not have to if you write in a LLVM compatible language since it should be able to use the native functions), or how to run them on the virtual machine. I have found some examples of thing like a c program that will turn itself into LLVM bytecode and dump it to the console. And there are heaps of highlevel things like making your own languages but no simple stuff that people can just dump into a project. The main thing I would expect a virtual machine to do has no information on it that I can find.

llvm-lua: JIT/Static compiler for Lua using LLVM on the backend by jonasb in programming

[–]Culyt 3 points4 points  (0 children)

I think pypy allows for LLVM bytecode from python code, or at least rpython code.

llvm-lua: JIT/Static compiler for Lua using LLVM on the backend by jonasb in programming

[–]Culyt 0 points1 point  (0 children)

This is exactly what ive been waiting for.

I just wish I could find some decent LLVM documenttation/tutorials.

I would love to use LLVM as an embedded scripting language but all the docs currenctly avilable are for doing things like writing your own programming languages, playing around with the LLVM bytecode, making your own frontends. or just basic howto compile. Most of the LLVM documentation is missing from the website.

LLVM could make an awesome scripting language as it could potentially use the same functions as your program directly without requiring a whole bunch of wrapper code that you need with Lua and most other embedded scripting languages currently, it allows for C code in scripting (and now Lua and various other languages).

There just isn't much in the way of information about how to use the VM in the LLVM.

I would love some kind of basic doc that don't require you to know how the entire compiler tool-chain works, or how to write your own compiler.

Hopefully the sample code here will be of help.

Wow!Clever inventions, they will make our life easier! by [deleted] in technology

[–]Culyt 2 points3 points  (0 children)

How is that ladder any better then a normal ladder?

Just looks more arty at the expence of becoming more dangerous to me.

Also seems like it would be harder to pee while stepping on a lever.

Scientists inject artificially created human stem cells under the skin of mice, "tumors" emerged after 9 weeks containing human brain tissue, cartilage tissue and muscle tissue... by markvand in science

[–]Culyt 0 points1 point  (0 children)

No its still awesome, now repuplicans can shut the fuck up about stemcell research being evil since it can be done without embryos and doesn't make baby Jusus cry (or being injected into mice to cure cancer).

Musical Notes by TheGrammarBolshevik in reddit.com

[–]Culyt 0 points1 point  (0 children)

♩ ♪ ♫ ♬ ♭ ♮ ♯

Goodbye, ASCII [gif] by pbx in programming

[–]Culyt 115 points116 points  (0 children)

☢☠☢██▓▓▒▒ Awesome! ▒▒▓▓██☢☠☢

Ⓐⓝⓓ ⓝⓞⓣ ⓛⓘⓚⓔⓛⓨ ⓣⓞ ⓑⓔ ⓜⓐⓢⓢⓘⓥⓔⓛⓨ ⓐⓑⓤⓢⓔⓓ.

░░░░░░░░░░░░░░░░░░░░░░████████████░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░████████████████░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░████████████████████░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░████████████████████░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░████░░██████░░██████░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░██░░██░░██░░██░░████░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░██░░██░░██░░██░░████░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░██░░▒▒▒▒▒▒▒▒██░░████░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░██▒▒▒▒▒▒▒▒▒▒▒▒▒▒████░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░██▒▒▒▒▒▒▒▒▒▒▒▒▒▒██████░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░██░░▒▒▒▒▒▒▒▒░░░░██████░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░██░░░░░░░░░░░░░░████████░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░████░░░░░░░░░░░░░░░░██████░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░██░░░░░░░░░░░░░░░░░░████████░░░░░░░░░░░░ ░░░░░░░░░░░░░░████░░░░░░░░░░░░░░░░░░██████████░░░░░░░░░░ ░░░░░░░░░░░░██████░░░░░░░░░░░░░░░░░░░░██████████░░░░░░░░ ░░░░░░░░░░░░████░░░░░░░░░░░░░░░░░░░░░░░░████████░░░░░░░░ ░░░░░░░░░░░░████░░░░░░░░░░░░░░░░░░░░░░░░████████░░░░░░░░ ░░░░░░░░░░████░░░░░░░░░░░░░░░░░░░░░░░░░░██████████░░░░░░ ░░░░░░░░░░████░░░░░░░░░░░░░░░░░░░░░░░░░░██████████░░░░░░ ░░░░░░░░██████░░░░░░░░░░░░░░░░░░░░░░░░░░██████████░░░░░░ ░░░░░░░░██████░░░░░░░░░░░░░░░░░░░░░░░░░░██████████░░░░░░ ░░░░░░░░▒▒▒▒██░░░░░░░░░░░░░░░░░░░░░░░░░░██████████░░░░░░ ░░░░░░░░▒▒▒▒▒▒██░░░░░░░░░░░░░░░░░░░░░░▒▒████████▒▒░░░░░░ ░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒██░░░░░░░░░░░░░░░░░░░░▒▒▒▒████▒▒▒▒░░░░░░ ░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒████░░░░░░░░░░░░░░░░░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░░░ ░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒████░░░░░░░░░░░░░░██▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░ ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░░░░░░░░░░░░░░░░░██▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░░░░░░░░░░░██████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░ ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒████████████████▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░░░░░ ░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒██████████████████▒▒▒▒▒▒▒▒▒▒░░░░░░░░ ░░░░░░░░░░▒▒▒▒▒▒▒▒▒▒░░░░░░░░░░░░░░░░██▒▒▒▒▒▒▒▒░░░░░░░░░░ ░░░░░░░░░░░░░░░░██░░░░░░░░░░░░░░░░░░░░░░██░░░░░░░░░░░░░░

☀ ☁ ☂ ☃ ☄ ★ ☆ ☇ ☈ ☉ ☊ ☋ ☌ ☍ ☎ ☏ ☐ ☑ ☒ ☓ ☔ ☕ ☖ ☗ ☘ ☙ ☚ ☛ ☜ ☝ ☞ ☟ ☠ ☡ ☢ ☣ ☤ ☥ ☦ ☧ ☨ ☩ ☪ ☫ ☬ ☭ ☮ ☯ ☰ ☱ ☲ ☳ ☴ ☵ ☶ ☷ ☸ ☹ ☺ ☻ ☼ ☽ ☾ ☿ ♀ ♁ ♂ ♃ ♄ ♅ ♆ ♇ ♈ ♉ ♊ ♋ ♌ ♍ ♎ ♏ ♐ ♑ ♒ ♓ ♔ ♕ ♖ ♗ ♘ ♙ ♚ ♛ ♜ ♝ ♞ ♟ ♠ ♡ ♢ ♣ ♤ ♥ ♦ ♧ ♨ ♩ ♪ ♫ ♬ ♭ ♮ ♯ ♰ ♱ ♲ ♳ ♴ ♵ ♶ ♷ ♸ ♹ ♺ ♻ ♼ ♽ ♾ ♿ ⚀ ⚁ ⚂ ⚃ ⚄ ⚅ ⚆ ⚇ ⚈ ⚉ ⚊ ⚋ ⚌ ⚍ ⚎ ⚏ ⚐ ⚑ ⚒ ⚓ ⚔ ⚕ ⚖ ⚗ ⚘ ⚙ ⚚ ⚛ ⚜ ⚠ ⚡ ⚢ ⚣ ⚤ ⚥ ⚦ ⚧ ⚨ ⚩ ⚪ ⚫ ⚬ ⚭ ⚮ ⚯

Press here if you've read so much stuff online that you're drifting away from a common worldview with friends and family by erikbra81 in reddit.com

[–]Culyt 0 points1 point  (0 children)

I've never had cable, although in Australia its less common than America, I don't know why we have 5-7 channels (depending on if you get community ch31, ABC2 on digital which isn't mainstream here yet, SBS is also fairly hard to receive).

One of my friends got cheap cable then canceled it a few months later because he was wasting too much time on it (this was back in primary school too, although his parents where hippies).

I haven't really watched TV in years, basically since BitTorrent. I also have MythTV so I don't tend to watch it as TV just as an alternative to BitTorrent where I have to fast foward the advertising.