HNHacker News
TopNewBestAskShowJobs

PyComfy

91 karma · joined June 25, 2013

submissionscomments
PyComfy··on Jeff Bezos' 127M sailing yacht has completed construction
From the same website:

Iconic yachts: On board Steve Jobs's Feadship superyacht Venus

https://www.boatinternational.com/yachts/editorial-features/...

Jobs died before it was finished.

PyComfy··on How to play FPS games if you’re over 30
34yo here, got called a cheater constantly, even by "top" players. Despite using a slow sensitivity myself, i would say that slow/fast sensitivity or wrist/arm aiming doesn't matter; I have seen plenty of people being very efficient with each technique. Just use what you are the most comfortable with. Something specific that tremendously helped me is putting fingers on each side of the mouse to lift it a little, the mouse is no more touching the mousepad, only your fingers, that way i can stop moving much more precisely. You no more think about aiming with the mouse but with your hand. When i need a slower sensitivity, i just lift the mouse higher. In the past i was playing with a CRT monitor at 160hz, now i am playing with a IPS monitor at 144hz (LG 27gl850-b); i have seen no difference in performing at KovaaK aim trainer[1]. Something that actually made a difference is where the sensor is located under the mouse. More the sensor was toward the back of the mouse (toward the wrist), more my aim was degrading. I also once tried a vertical mouse (Trust GXT 144) and did my best score ever in tracking, it was like holding a pen.

[1] https://store.steampowered.com/app/824270/KovaaKs/

PyComfy··on Urn: A Lisp implementation for Lua
http://www.buildyourownlisp.com/
PyComfy··on Intel Fights for Its Future
Intel shall definitively be worried

https://blog.cloudflare.com/arm-takes-wing/

PyComfy··on Ask HN: How to self-learn math?
for linear algebra, may i add http://immersivemath.com/ila/index.html
PyComfy··on A Tiny Wolfenstein-Like Software Engine
http://lodev.org/cgtutor/raycasting.html

~200 LOC

PyComfy··on What Made Lisp Different (2002)
Is it really? If we go back to the roots, lisp is made of what John McCarthy calls the Primary S-Functions which are atom, cons, car, cdr, and eq (a.k.a =). Of these five, clojure only has two (atom and eq)
PyComfy··on Graal: How to use the new JVM JIT compiler in real life [video]
Does Graal support tail call optimization? It has been announced for hotspot +10 years ago but still not implemented as today.

edit: https://blogs.oracle.com/jrose/tail-calls-in-the-vm

PyComfy··on Python’s Weak Performance Matters
ah sorry. i did

    import dis
    dis.dis("a = foo.bar(b)")
which gave

    1           0 LOAD_NAME                0 (foo)
                2 LOAD_ATTR                1 (bar)
                4 LOAD_NAME                2 (b)
                6 CALL_FUNCTION            1
                8 STORE_NAME               3 (a)
               10 LOAD_CONST               0 (None)
               12 RETURN_VALUE
PyComfy··on Python’s Weak Performance Matters
Naive interpretation of the bytecode (not even pre-decoded, just a switch statement). And almost everything is resolved in the dynamic environment. for example,

    a = foo.bar(b)
is actually

    ldict = locals()

    ldict['a'] = ldict['foo'].__getattribute__('bar')(ldict['b'])
PyComfy··on The Eve programming language project is winding down
Interesting experiences beyond the command line are game development tools; Each iteration try to make the barrier between artists/content creators and programmers thinner.

https://www.youtube.com/watch?v=hXSKGYQvZsI

PyComfy··on Sudden savant syndrome, in which exceptional abilities emerge after brain injury
My dad knew someone who had a reinforcing steel bar stuck into the middle of his head; The bar entered is mouth and exited in the middle of the top of his skill. After that, the guy was noticeably smarter but also more irascible. My dad theory was that the healing of the brain raised the number of synapses and ridges[1] in the damaged part of the brain (which in this case was right between the two cerebral hemispheres). Albert Einstein's brain had four ridges instead of three.

[1] https://en.wikipedia.org/wiki/Gyrus

[2] https://en.wikipedia.org/wiki/Albert_Einstein%27s_brain#Newl...

PyComfy··on Cloud companies consider Intel rivals after security flaws found
Qualcomm Falkor (ARMv8 AArch64) vs Intel Broadwell and Skylake

https://blog.cloudflare.com/arm-takes-wing/

Multicore AVX512 lowers the frequency

The Qualcomm CPU only has the 128-bit wide NEON SIMD, while Broadwell has 256-bit wide AVX2, and Skylake has 512-bit wide AVX-512. This explains the huge lead Skylake has over both in single core performance. In the all-cores benchmark the Skylake lead lessens, because it has to lower the clock speed when executing AVX-512 workloads. When executing AVX-512 on all cores, the base frequency goes down to just 1.4GHz---keep that in mind if you are mixing AVX-512 and other code.

PyComfy··on Linux-insides: Linux kernel load address randomization
https://thehackernews.com/2017/02/bypass-aslr-browser-javasc...

http://www.cs.vu.nl/~herbertb/download/papers/anc_ndss17.pdf

XI. CONCLUSIONS

In this paper, we described how ASLR is fundamentally insecure on modern architectures. Our attack relies on the interplay between the MMU and the caches during virtual to physical address translation—core hardware behavior that is central to efficient code execution on modern CPUs. The underlying problem is that the complex nature of modern microarchitectures allows attackers with knowledge of the architecture to craft a carefully chosen series of memory accesses which manifest timing differences that disclose what memory is accessed where and to infer all the bits that make up the address. Unfortunately, these timing differences are fundamental and reflect the way caches optimize accesses in the memory hierarchy. The conclusion is that such caching behavior and strong address space randomization are mutually exclusive. Because of the importance of the caching hierarchy for the overall system performance, all fixes are likely to be too costly to be practical. Moreover, even if mitigations are possible in hardware, such as separate cache for page tables, the problems may well resurface in software. We hence recommend ASLR to no longer be trusted as a first line of defense against memory error attacks and for future defenses not to rely on it as a pivotal building block.

PyComfy··on TeaVM – Ahead-of-time transpiler of Java bytecode to JavaScript or WebAssembly
I always understood it as this

Transpilation: text to text (eg: Scheme to C)

Compilation: anything to anything but usually it implies text to binary code

transpilation is compilation but compilation is not necessary transpilation (the all squares are rectangles but all rectangles ...)

PyComfy··on Microprocessor Design (2017)
haven't played it but there is MHRD on steam which is a game about designing a CPU.

http://store.steampowered.com/app/576030/MHRD/

PyComfy··on The mysterious case of the Linux Page Table Isolation patches
The source code of the kernel of Windows server 2003 and Windows XP Pro x64 was available to universities for education purposes. Someone leaked the code on internet years ago which is now everywhere on github (search WRK-v1.2). The code doesn't include the ntfs module.

https://web.archive.org/web/20120412091908/http://www.facult...

PyComfy··on Not only is it possible to beat Google, it could happen sooner than we think
I have ditched google in favor of Searx, a metasearch engine that anyone can host

https://asciimoo.github.io/searx/

https://searx.me/

https://github.com/asciimoo/searx/wiki/Searx-instances

PyComfy··on The Origin of CAR and CDR in Lisp (2005)
i don't like first/rest; car and cdr are about pairs, not about lists which is an implicit type (like strings in C).
PyComfy··on Web Assembly now supported across all browsers
https://mbebenita.github.io/WasmExplorer/

The popcnt example is nice.

PyComfy··on Mastodon – an open source alternative to Twitter
also https://news.ycombinator.com/item?id=15053064
PyComfy··on A history of branch prediction
Maybe the author is referring to the apparition of the homo erectus
PyComfy··on A history of branch prediction
Have a look at the Chromium/Chrome's extension Just Read

before / after https://i.imgur.com/Ihy5wQh.png

PyComfy··on Exagear: Run x86 Applications on Raspberry Pi
How long before Intel sues them?
PyComfy··on High End CPUs – Intel vs. AMD
He sure seems to be very talented but Ryzen also gained from a few important patents being finally expired (the one about SMT, for example)

https://scalibq.wordpress.com/2012/02/14/the-myth-of-cmt-clu...

http://www.anandtech.com/show/11170/the-amd-zen-and-ryzen-7-...

PyComfy··on On managing outrage in Silicon Valley
Programming is one of the most difficult branches of applied mathematics; the poorer mathematicians had better remain pure mathematicians. Edsger W.Dijkstra, EWD498
PyComfy··on How JavaScript closures work under the hood
A closure is a procedure that captures its free variables where those free variables are resolved in the lexical context.

A lambda procedure is just an anonymous procedure.

A lambda is not necessary a closure and a closure is not necessary a lambda.

PyComfy··on How JetBrains Lost Years of Customer Loyalty in Just a Few Hours
You can integrate eclipse into emacs.

http://eclim.org/

http://www.skybert.net/emacs/java/

PyComfy··on Go enjoy Python3
http://nuitka.net/pages/overview.html