Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mwkaufma
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
34 ms
·
481.
▲
by
mwkaufma
9y ago
See also: syntax-baked reified arrays, slices, maps, and channels in go (but "no generics" right?)
482.
▲
by
mwkaufma
9y ago
Erlang is pure, but it's not lazy, so it's not an issue like in Haskell.
483.
▲
by
mwkaufma
9y ago
.net already has in-place allocated types (e.g. 'structs') which are dropped on the stack or inside the allocation of their owner (in the case of members fields), which explicitly covers most cases that escape analysis tries to ha
484.
▲
by
mwkaufma
9y ago
Xamarin is Microsoft :)
485.
▲
by
mwkaufma
9y ago
This! This! This! This is the workflow in the 3D modelling/animating program Maya -- every UI action is backed by a MEL (Maya Embedded Language) command, and is logged (it reads like a shell script). It's very easy to perform a ta
486.
▲
by
mwkaufma
9y ago
There's a collection of c-exposed values called the api stack (not to be confused with the function stack). The stack keeps them from being collected, so there's no need for ref counting. OP writes about this. OP doesn't writ
487.
▲
by
mwkaufma
9y ago
>> But how does it lead to better feedback? Because you can use static_asset (only accepts constexprs) and in C++17 static-if (a first class cousin to #if)
488.
▲
by
mwkaufma
9y ago
It's like 'const' itself -- it's a tool for producing better error messages, not better final executables.
489.
▲
by
mwkaufma
9y ago
Like "const", it's so the compiler can produce better feedback for the programmer, not better executables. constexpr will raise an error if a function _can't_ be evaluated at compile-time, just as const functions will ra
490.
▲
by
mwkaufma
9y ago
Although ordinary functions can be evaluated at compile time without the constexpr annotation, only constexpr functions will raise an error if it _can't_ be evaluated at compile time (irrespective of if the compile thinks it should be)
491.
▲
by
mwkaufma
9y ago
Shameless pedant kneejerk: 'inline' has semantics in additional to the optimization-hint. e.g. inlined functions won't trigger multiple-definition link-errors, even if they're left as ordinary functions in the executable
492.
▲
by
mwkaufma
9y ago
GBA ran at 59.97fps with input applied next-frame. That's 16.6ms latency - much less than what OP "measured"
493.
▲
by
mwkaufma
9y ago
80ms latency on a Gameboy? That's 10fps. I call shenanigans.
494.
▲
by
mwkaufma
9y ago
>> Even when you’re merely at the edge of this trap, your defect rates will be dominated by issues like double-free errors and malloc leaks. This is commonly the case in C/C++ programs of even low greenspunity. Citation needed.
495.
▲
by
mwkaufma
9y ago
#define var auto
496.
▲
by
mwkaufma
9y ago
Also, why give adtech yet another fingerprinting parameter?
497.
▲
by
mwkaufma
9y ago
Time to write a chrome plugin to monkeypatch RAM queries to always return the minimum result. If the webapps can run in under 100mb, it should, regardless of the host's total capacity.
498.
▲
by
mwkaufma
9y ago
You beat me to the same comment. It's pseudoscience. I guess they're measuring the anxiety at HN that people's sunk-costs in stringly-typed runtimes won't keep guarenteeing obscene salaries.
499.
▲
by
mwkaufma
9y ago
Vigil comes from Munificent, the principle developer of wren, an unironic language that fills lua's niche (portable c, embeddable, no dependencies), with a nicer syntax: https://github.com/munificent/wren
500.
▲
by
mwkaufma
9y ago
I guess I have an axe to grind because, as a colorblind person, I often feel like "designers" just wish I didn't exist, like user needs are an inconvenience and not _the whole point_. /Rant
501.
▲
by
mwkaufma
9y ago
Tips mosyly priviledge prettiness over usability. E.g. advice like "mix background hue into grey text" is why we have so much unreadable, non-contrasting text.
502.
▲
by
mwkaufma
9y ago
Geometric algebra is "easier" to understand than plain-old imaginary numbers? Pourquoi?
503.
▲
by
mwkaufma
9y ago
Oh wow! Hey Miguel! Thanks for the info. Parenthetically: you're a pretty hep cat. Thanks for all your hard work on these projects :)
504.
▲
by
mwkaufma
9y ago
C# has been in the gamedev toolkit since XNA, over a decade ago.
505.
▲
by
mwkaufma
9y ago
Unity 5.x only uses Mono for the editor. On non-Windows platforms they use their own AoT .Net implementation, IL2CPP.
506.
▲
by
mwkaufma
9y ago
Yes, developers are more important than users.
507.
▲
by
mwkaufma
9y ago
"Anything that you can't do on mobile/tablet and can do on a PC is something that 90%+ of people couldn't actually do on a PC either." To extend the instrument comparison, that's like saying consuming the game
508.
▲
by
mwkaufma
9y ago
The author doesn't acknowledge expertise. By their logic, since most people can't play the trumpet, it isn't really a musical instrument.
509.
▲
by
mwkaufma
9y ago
Well, in C memory is explicitly laid out, so it's not on the optimizer's menu, and in a dynamic language the runtime flexibility rules out most data-layout optimizations beyond occasionally coalescing a dictionary into a memory-of
510.
▲
by
mwkaufma
9y ago
AAA dev here. The performance gains mostly come from designing data, not code. Factoring an array of structures into a structure of arrays and accessing linearly, e.g., makes better use of the processor cache and saturates throughput. Code
More ›