Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
s-macke
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
29 ms
·
301.
▲
by
s-macke
9y ago
I would say, that I know about this special dialect more than most of the other Forthers. I have not written more than a few lines of Forth myself. But I have read a lot of Forth code.
302.
▲
by
s-macke
9y ago
Yes, that's me. I decompiled it. And it is the most fun reverse engineering project you can imagine. Expect the unexpected. There is a Forth interpreter hidden in the code and some of word names are still in the code. So you can produc
303.
▲
by
s-macke
9y ago
I wonder if Forth is still used today for some applications of if anyone has stumbled over some production Forth code lately. For me, Forth is a language in which you can easily shoot yourself in the foot. One element more or less on the st
304.
▲
by
s-macke
9y ago
To calculate a simple xor (color=x ^ y) to produce a texture for walls was a common hack in the early days of computer graphics. I used it frequently under DOS. It is still useful for these kind of hacks :-)
305.
▲
by
s-macke
9y ago
I forgot the fluid simulator in 4kB.
306.
▲
by
s-macke
9y ago
In principle, such a list exists. It is called Obfuscated C Code Contest https://www.ioccc.org/ Granted, the code is not really readable. But you can see the awesomeness. Boot Windows 3.0 and DOS with a 4kB emulator. C com
307.
▲
by
s-macke
9y ago
Very similar technique (raycasting), but for different type of data. https://github.com/s-macke/VoxelSpace The text in the README describes the technique very well. The JavaScript code is a little bit more complicated
308.
▲
by
s-macke
9y ago
Thanks to web emulators you can play the game online. Try it. https://classicreload.com/wing-commander-ii-vengeance-of-the...
309.
▲
by
s-macke
9y ago
This is a follow-up work of StackGAN [1] and StackGAN-v2 [2]. [1] https://github.com/hanzhanggit/StackGAN [2] https://github.com/hanzhanggit/StackGAN-v2
310.
▲
Microsoft researchers build a bot that draws what you tell it to
(blogs.microsoft.com)
3 points
by
s-macke
9y ago
|
1 comments
311.
▲
by
s-macke
9y ago
This looks like a normal postfix to infix notation converter. It transforms "abc++" to "a+b+c". You can call it a decompiler for a very simple stack machine. But it neither accounts for branches nor loops.
312.
▲
by
s-macke
9y ago
As far as I know every function call in and out of WebAssembly or asm.js must run through a foreign function interface (FFI)to translate between different binary interfaces. This can be very costly. Mapping and copying of data is necessary.
313.
▲
by
s-macke
9y ago
Nope ;-)
314.
▲
by
s-macke
9y ago
The research on artifical neural networks started already in the 50ths. Take a look at this video. https://www.youtube.com/watch?v=cNxadbrN_aI
315.
▲
by
s-macke
9y ago
Take a look at following news and search for the thread started by guicho271828. https://news.ycombinator.com/item?id=15593305
316.
▲
Perceptions of Code Quality
(qaware.blogspot.com)
44 points
by
s-macke
9y ago
|
10 comments
317.
▲
by
s-macke
9y ago
Thanks for the game. I am playing through the levels and it is a lot of fun. But so far I have not found an effect that cannot be calculated with the classical Maxwell equations in matter.
318.
▲
by
s-macke
9y ago
I have looked at obsfucated JavaScript code as well as webassembly disassembly. I don't see much difference. What might obfuscate is the fact, that it comes without any libraries. You have to program like in C without any library suppo
319.
▲
by
s-macke
9y ago
This repository compiles asm.js into webassembly [1]. Otherwise, you will have a hard time to convert your Javascript code. You have to implement a JIT compiler and GC too. Webassembly was never designed to be a replacement for JavaScript.
320.
▲
by
s-macke
9y ago
I have tried to explain to you why your message might have been down voted. Nothing else. If I interpret your message that way, others will do the same.
321.
▲
by
s-macke
9y ago
Even though I see no reason to vote you down, there are a lot of reasons not to vote you up. The message from WD is very good news for RISC-V. But to make the claim that it overthrows all other architectures from the throne is not only a b
322.
▲
by
s-macke
9y ago
The 20 lines refer to the pure rendering algorithm. Please read the description of the algorithm. The repo contains also the scripts, to generate the GIF animations on the start page and the tools to extract the maps from the Comanche compu
323.
▲
by
s-macke
9y ago
Indeed, Outcast used the same technique. However, not as simple as this algorithm. They included interpolation for the terrain and polygon rendering for the parts, which are not terrain.
324.
▲
by
s-macke
9y ago
The project is originally a fan page about the game Comanche and the Voxel Space engine. The web demo is just one part and contains mainly JavaScript. The tools directory contain the code which was used to generate the gif animations and th
325.
▲
by
s-macke
9y ago
What you look at, is the whole engine and not just the rendering part. This contains, HTML, CSS, loading and initialization of the maps, clear and flip screen code and especially input device logic. The rendering part in the JavaScript is s
326.
▲
by
s-macke
9y ago
You can't look up and down using this technique. However, you can move the horizon line up and down. You don't recognize the difference for small angles.
327.
▲
by
s-macke
9y ago
This was also my first attempt. But I was too lazy to extract all maps that way.
328.
▲
by
s-macke
9y ago
I removed the map in the dropdown menu.
329.
▲
by
s-macke
9y ago
Sorry, this in an error. The Comanche 3 map is not part of the Github archive. Try the outdated website if you want to see how a Comanche 3 map looks: http://simulationcorner.net/index.php?page=comanche
330.
▲
by
s-macke
9y ago
The simplest techniques for 3D rendering without relying on a GPU and WebGL are indeed (2.5D) raycasting engines (such as this Voxel Space engine). A short google search reveals for example: http://www.playfuljs.com/a-first-
More ›