Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
vnorilo
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
30 ms
·
271.
▲
by
vnorilo
6y ago
I agree that this is in part why nosql became popular. I'm quite experienced with systems programming but databases were never central to my interests. So when I needed one for my personal stuff, I went with CouchDB, because it's
272.
▲
by
vnorilo
7y ago
I guess signed indvars would be a prime example. Compilers famously ignore overflow of signed integers when computing loop trip counts. Would it be better to only ever use unsigned integers for indvars and loop limits? Maybe. But that would
273.
▲
by
vnorilo
7y ago
Warning when optimization passes take advantage of UB is a reasonable desire. The compilers are getting increasingly good at this, but I believe it would be far too noisy to blanket enable all of that.
274.
▲
by
vnorilo
7y ago
Sometimes making mistakes is a good way to learn, provided that you get feedback to help you identify them. You can compensate for C's lack of compile time protections with run-time tools like valgrind [1] and the various sanitizers in
275.
▲
by
vnorilo
7y ago
Why is it strange? Think of languages like Lisp, Smalltalk, Haskell. You may not find them on top of TIOBE, but their innovations do trickle down to mainstream, indicating that the designers of mainstream languages find them worthwhile. A
276.
▲
by
vnorilo
7y ago
Masses love javascript. Just saying. More seriously, core language quality is not the primary driver of language choice. Otherwise we'd all be using something with S-expressions, Hindley-Milner, dependent and linear types. ducks
277.
▲
by
vnorilo
7y ago
Having used C++ for 25+ years, I know it better than I wish I did. I have also used Clojure professionally for 5 years now, and I find it much more readable, as in there's much less cognitive load when figuring out what something does.
278.
▲
by
vnorilo
7y ago
At least here in Finland, I associate iZettle with artisans, coffee stands, small farmers and ad hoc store fronts. Cheap and cheerful. Not that I mind it as a customer, but could be an image thing.
279.
▲
by
vnorilo
7y ago
This type of response from a teacher baffles me. Why would you not just: "You see, the problem then becomes how do we (overcome the problem in the approach known to me)" Or, if I don't know why it would not work, suggest the
280.
▲
by
vnorilo
7y ago
We'd need to increase the price of materials compared to labor. Correct taxation of negative externalities would work towards this. I (like everyone else in my neighborhood) have super cheap, barely servicable tools in my shed that I h
281.
▲
by
vnorilo
7y ago
I would not call 1 metaprogramming. Meta means something like "outside of". Metaprogramming usually means higher order programming (programs that produce programs, such as source generation, lisp macros or templates).
282.
▲
by
vnorilo
7y ago
You only need to go back ~1200 years: https://en.m.wikipedia.org/wiki/Umayyad_conquest_of_Hispania
283.
▲
by
vnorilo
7y ago
I found a single origin espresso that I really like. One time I bought a bag of beans it occurred to me that requiring coffee beans from a specific farm in Rhuanda sounds like something a king might do. Even my bog standard middle class l
284.
▲
by
vnorilo
7y ago
Websites make gazillion requests and run a bunch of javascript that is in their (not necessarily your) interest. Download size is not the only driver for slowness.
285.
▲
by
vnorilo
7y ago
Your book looks like a potentially great resource for teaching electronics to music tech students. I will follow your progress! Thank you for sharing.
286.
▲
by
vnorilo
7y ago
Your sources indicate an interest in reverse engineering, but another motivator for low level machine programming is performance. For me, a great way of learning the latter is to pick a task with some instant gratification (audio dsp, softw
287.
▲
by
vnorilo
7y ago
I think "amount of work done" is a problematic metric. True greatness in programming is architecture that makes problems and edge cases disappear and nips the proliferation of complexity at the bud. The machine and the human both
288.
▲
by
vnorilo
7y ago
Except vim does not take over your process and data, and is happy to sit there and wait out your tryst with nano, sublime, vs code or frigging notepad. It's fine to have an inscrutable, beginner-hostile power tool as an option.
289.
▲
by
vnorilo
7y ago
They do help library writers, and therefore turn large and complex programs into shorter programs.
290.
▲
by
vnorilo
7y ago
Midori's really interesting. I'll just leave the link to Joe Duffy's blog on the Midori error model: http://joeduffyblog.com/2016/02/07/the-error-model/
291.
▲
by
vnorilo
7y ago
You are probably looking for continuations. For many languages exceptions are the nearest approximation. Personally I have no problem with your approach on the semantic level, but most compiler/interpreter developers consider all excep
292.
▲
by
vnorilo
7y ago
In isolation, yes. Predictor resources are not infinite. Predictable is better than dynamic, but no branch is optimal. Consider the implications to inlining: the size getter is a prime candidate, but suddenly it gets less predictor-friendly
293.
▲
by
vnorilo
7y ago
You would be trading 4 bytes for an extra branch on getting the size. Since the instance needs 8-byte alignment, those 4 bytes would be lost in padding or allocation overhead anyway.
294.
▲
by
vnorilo
7y ago
In Helsinki, most good lunches are more than the 10.80€ maximum. Everyone is paying the overage of 0.5-1€ with their card. For people unfamiliar with the system, the lunch coupons you use are deducted from your salary pre-tax, so it's
295.
▲
by
vnorilo
7y ago
One FOSS project I follow, LLVM, has quite a few folks from Apple actively and constructively participating.
296.
▲
by
vnorilo
7y ago
Indeed. I came from C++, but I quite like homoiconic syntax by now. There have been alternative syntaxes [1] but their lack of popularity seems to align with your hypothesis. 1: https://dwheeler.com/readable/
297.
▲
by
vnorilo
7y ago
I did not for the first 10 years :) These days I feel completely disadvantaged without an interactive debugger (such as gdb, msvc or a good repl)
298.
▲
by
vnorilo
7y ago
Seems to me that MIR operates on a (much) lower level, basically abstract away the physical machine and its finite register set. As such, it would replace LLVM (or GCC) middle and back end. The goal is much faster compilation without sacrif
299.
▲
by
vnorilo
7y ago
Carbon tax is a great idea, and I would support a proposal such as yours. However, I am afraid it is not a question of implementation, but of dealing with vested interests.
300.
▲
by
vnorilo
7y ago
Sure this is neat stuff, but I don't think any of it is novel. Bochs is a good source for some bytecode vm performance wizardry [1], even if the bytecode in question is the x86 ISA. Regardless, kudos to the authors and nice to see a fa
More ›