Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
s-macke
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
19 ms
·
211.
▲
by
s-macke
6y ago
Are we comparing single precision vs. double precision?
212.
▲
by
s-macke
6y ago
Two-phase fluid flow with surface tension in the web. Fantastic! I tried it myself, but my simulations most of the time exploded .... I mean diverged. Keep up the good work! Presenting the research is a must and thanks to cross compilers an
213.
▲
by
s-macke
6y ago
In the gaming industry. The game Starflight was written in Forth. https://en.wikipedia.org/wiki/Starflight Ok, this is an ancient example. But still :-) The source code is partially available. Here one example. https:
214.
▲
by
s-macke
6y ago
I don't think much of such fingerprint visualisations because it doesn't really help to remember the hash. I think for humans, something like https://robohash.org/ would be much better. An ASCII-style port for the
215.
▲
by
s-macke
6y ago
Then you might be interested in https://github.com/s-macke/FSHistory There you can play the Flight Simulators 1-4 in the browser. It is even playable on your mobile.
216.
▲
by
s-macke
6y ago
In the step # Setup model I get an error in the function call 'prepare_model' UnpicklingError: invalid load key, '<'.
217.
▲
by
s-macke
6y ago
On this site you can fly Microsoft Flight Simulator 1-4 directly in the browser. Have fun. https://github.com/s-macke/FSHistory
218.
▲
by
s-macke
6y ago
The game PixelJunk Shooter [1] is a game that that takes advantage of fluid dynamics. They use a technique called "Smoothed particle hydrodynamics". Particle based techniques might be better suited for real time fluid dynamics. [1
219.
▲
by
s-macke
6y ago
I wrote a game based on Jos Stam's Fluid Dynamics approach 2 years ago [1]. But without any GPU acceleration. It was also discussed on Hacker News [2]. There you can also find links of other computer games which uses fluid dynamics. [1
220.
▲
by
s-macke
6y ago
The simulator uses almost all keys of an IBM keyboard, including the scroll lock key. I guess there is no chance on your iPad to have a pleasant experience. At least you can press the given keys on the right side. Enough to play around.
221.
▲
Show HN: Play online Microsoft Flight Simulator 1 to 4
(github.com)
27 points
by
s-macke
6y ago
|
5 comments
222.
▲
The Cobra Effect
(en.wikipedia.org)
4 points
by
s-macke
7y ago
|
0 comments
223.
▲
by
s-macke
7y ago
Cool, that works!
224.
▲
by
s-macke
7y ago
A render routine with exchanged for loops looks like this. https://www.pastiebin.com/5e10d48ac6595 Just exchange the Render() method in my VoxelSpace.html file with the pastie.
225.
▲
by
s-macke
7y ago
In the pseudo code in the readme just calculate the (square) distance between pleft and p and don't draw the line if the distance is larger than a given threshold. But this is not very efficient. When you switch the loops this will be
226.
▲
by
s-macke
7y ago
Indeed, switching the loops is valid and might or might not give you an additional speedup. I had hoped, that someone figures this out :-). However I think in order to understand the basic algorithm the way in the readme is the better one.
227.
▲
by
s-macke
7y ago
The rotation artifacts you see are a result of the very simple algorithm and the property of the viewing triangle. It renders objects that are farther away when they are near the border of the viewing screen.
228.
▲
by
s-macke
7y ago
mars.exe has only a size of 5.6kB. When you disassemble the code you realize that most of the code consists of just massive loop unrolling. It would have fitted in 2kB easily.
229.
▲
by
s-macke
7y ago
Ever since I played Comanche, I've been asking myself the same thing. I guess they had some real elevation maps and pictures as a base and then made manual changes to add periodicity and color. A half-manual and half-algorithmic approa
230.
▲
by
s-macke
7y ago
Indeed, look up / down is very simple implemented. Just alter the horizon line position. This works for the human eye for small deviations such as ±20°, but will lead to perspective distortions for higher angles.
231.
▲
by
s-macke
7y ago
The 20 lines mentioned in the headline refer to the render algorithm itself, not including all the code for map loading, input handling, line drawing and html/css. Basically the lines 51 to 71 in your code.
232.
▲
by
s-macke
7y ago
You are free to try it. I think it is possible. The shell has enough built in functions such as echo. One decade ago I read some blog article describing a possible way. First step is to set an alias 'alias ls="echo *"'.
233.
▲
by
s-macke
7y ago
For this emulator the filesystem is a RAM filesystem and fully managed in Javascript (virtio/9p filesystem as a device). No chance to recover.
234.
▲
by
s-macke
7y ago
This emulator was optimized for Firefox and its JIT compiler. One or two years ago it was at least three times faster on Firefox than on Chrome. What unfortunately always happens with extreme optimization is that every small change in hardw
235.
▲
by
s-macke
7y ago
It works for me. Maybe you didn't receive IP address from the dhcp server in time. Just refresh the page and try again.
236.
▲
by
s-macke
7y ago
WebAssembly does not work on this low level. You cannot choose the switch/case implementation. Also it doesn't support goto. The reason is security and speed. The wasm-binary should be checked in O(n) and not in O(n^2). But I am c
237.
▲
by
s-macke
7y ago
In this emulator the kernel is not stored in the filesystem. It is downloaded separately and put into memory. But usually the kernel is at a fixed location in physical memory. So you might be able to receive the kernel image from /dev&
238.
▲
by
s-macke
7y ago
Actually it was much faster some time ago. At least on Firefox. This emulator is basically a microbenchmark of the switch/case implementation of the browser. Firefox used a computed goto, which is perfect in this case. Now for some rea
239.
▲
by
s-macke
7y ago
Actually, this is not the end. Try "echo *" to simulate a "ls" command and "cd" to change the directories. Also the busybox executable is still in memory , so you might be able to extract the binary from /
240.
▲
Winning Entries of the International Obfuscated C Code Contest 2019
(ioccc.org)
1 points
by
s-macke
7y ago
|
0 comments
More ›