Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
vnorilo
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
39 ms
·
391.
▲
by
vnorilo
7y ago
And more writable, since your editor can take advantage of the consistent structure via paredit et al. FWIW, I split my time 2:1 between C++ and Clojure these days, and the context switch to s-exprs is always easier, even though I spend les
392.
▲
by
vnorilo
7y ago
For me, there's nothing macho about it, more like weary resignation when said tools cannot do what needs to be done. I have never used delphi though.
393.
▲
by
vnorilo
7y ago
Similarly to many MS technologies from that era, WPF/XAML is not half bad at the core, but so verbose . Probably intended to be primarily generated by tooling.
394.
▲
by
vnorilo
7y ago
Microsoft and others have MVVM frameworks, such as WPF, which have reactive data binding. Qt Quick also, but I haven't tried it myself. That said, it is not that similar to React or Vue because the "DOM"s are so different.
395.
▲
by
vnorilo
7y ago
This is what I do! I disagree on 'garbage', though, I would say that you sound like you estimate very well, and that factor of 2.5 uncertainty is reasonable given all the unknowns in this line of work.
396.
▲
by
vnorilo
7y ago
To nitpick a little, Clojure maps are hash array mapped tries and vectors are trees with a highish radix and some push/shift optimization. As you said, they are collections with value semantics which is pretty great.
397.
▲
by
vnorilo
7y ago
Having written C++ for 25 years, I found it very enjoyable to write small toy client-side web apps with clojurescript, figwheel and reagent. Reagent's Hiccup-like syntax for html is lightweight and gets you interactive stuff on screen
398.
▲
by
vnorilo
7y ago
Presumably the people who siphon media out from a walled garden on a large scale wouldn't do it on mobile, but given your timeframe of 30 years, who knows if we even have general purpose computers then.
399.
▲
by
vnorilo
7y ago
You may not like MS products, but I think their capability to seek rent is much, much lower than the antitrust days. The story looks like the competition did it instead of regulation, but who knows if an undeterred, ruthless Microsoft would
400.
▲
by
vnorilo
7y ago
There's also the analog loopback, which for audio, has way less signal degradation than the compression consumers readily accept. For video, they already tried to restrict any analog outputs with DRM, but for audio, that would hurt muc
401.
▲
by
vnorilo
7y ago
The first paragraph should probably have had a /sarcasm tag. To rephrase with less snark, I don't believe anyone can become an expert without trusting prior experts.
402.
▲
by
vnorilo
7y ago
Perhaps I have some meta-expertise on judging the correlation between credentials and credibility. Exclusive first-hand observation is a cripplingly restrictive epistemology. Even much of our own first-hand expertise is based on us learning
403.
▲
by
vnorilo
7y ago
Some institutions may have significant expertise on a subject where you don't, making such credentials occasionally very useful.
404.
▲
by
vnorilo
7y ago
thanks for clarification! you’re of course right about the calling convention.
405.
▲
by
vnorilo
7y ago
If you use a calling convention that mandates the use of stack, you would see that push, or at least have a byte reserved. AFAICT the C++ standard itself does not specify the particulars of calling convention, which is a function of the pla
406.
▲
by
vnorilo
7y ago
1. Implement rsync + ftp 2. Take venture capital 3. Gotta jump that shark
407.
▲
by
vnorilo
7y ago
It's less trivial if you make the copy/move constructors private. https://repl.it/repls/HatefulMadeupMicrostation Of course, type systems are orthogonal to any real security, at least in most languages, and c
408.
▲
by
vnorilo
7y ago
Because Badge is a template, this will produce a linker error (duplicate symbols). Of course you can get around if you really, really want to. But I think this subthread is starting to split hairs.
409.
▲
by
vnorilo
7y ago
The example also shows a call to a different translation unit. There's no code for passing the empty struct. There's also none for handling it, as you can see from the assembly output. The one byte rule does nothing here, because
410.
▲
by
vnorilo
7y ago
Badge could prevent this by making the copy and move constructors private.
411.
▲
by
vnorilo
7y ago
In this case, it should absolutely do it. Take a look: https://godbolt.org/z/DmeYL-
412.
▲
by
vnorilo
7y ago
There is no performance penalty in any modern compiler that I am aware of (effectively no code will be emitted). You can have a look here: https://godbolt.org/z/DmeYL-
413.
▲
by
vnorilo
7y ago
Wow - thank you once more for the answer and the links! I tried a simple JiT once that did code threading by jmp/ret - seems like that would not be any better today :D tldr; prefer trampolines over weird stack tricks.
414.
▲
by
vnorilo
7y ago
Thank you for this - bookmarked for the future. My uarch knowledge is a bit out of date; would you happen to know if the following can still cause performance problems in modern Intel/AMD? - call/return address mismatch - mixing i
415.
▲
by
vnorilo
7y ago
It is not so much that the IR is specific, apart from platform intrinsics. It is that almost any optimization pass will encode architectural details, like packing and alignment.
416.
▲
by
vnorilo
7y ago
MIDI is like HTTP, while GM is like, maybe, the named CSS colors. edit: TCP -> HTTP.
417.
▲
by
vnorilo
7y ago
MIDI is just a control protocol. You are thinking of General MIDI [1], which defined a vague set of sounds associated with a program number, that allowed playing a sequence on different engines with horribly mixed results as you said. MIDI
418.
▲
by
vnorilo
7y ago
Libraries like this are an argument for dynamic types. In Clojure, all libraries work with associative or sequential collections, which is why you can compose supdate with literally anything. We do lose the embedded proofs that statically t
419.
▲
by
vnorilo
7y ago
Exposure to several different ways of solving similar problem sets could help you think outside of the box (or in many boxes at once, at least). Clojure is a great choice for one box. Maybe look into what Haskell or ML do with type systems,
420.
▲
by
vnorilo
7y ago
"Zero cost" is a pet peeve of mine. While I concede that the concept is useful, there is always a cost somewhere . A very concrete example of this was a C++ unit test suite where templates were used to generate several combinatio
More ›