Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
zvrba
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
31.
▲
by
zvrba
3y ago
> In my experience it's much less error prone to unify memory and external resource management. Until threads and async enter the scene.
32.
▲
by
zvrba
3y ago
Wait until you discover PowerQuery in Excel.
33.
▲
by
zvrba
3y ago
Same here. Even though the "new" Dune has a lot of good VFX, I found it boring to watch, and that was only Part I. Before watching "new", I watched Lynch's to have something to compare to. I vastly prefer Lynch'
34.
▲
by
zvrba
3y ago
Wow. Thanks for this. I'm usually indifferent to art, but these paintings are something else.
35.
▲
by
zvrba
3y ago
You don't just shut it down, but discontinue further sales instead so that existing contracts die gracefully.
36.
▲
by
zvrba
3y ago
> if people have an alternative to Google Search (very unlikely) I started using Bing ~2 years ago. At the start, I used Google to get alternate results for about 1/4 of searches. Today? I drop to Google a couple of times a month, a
37.
▲
by
zvrba
4y ago
Program termination is _the_ _perfect_ resource cleanup </s> (at least when running on a decent OS.)
38.
▲
by
zvrba
4y ago
So what to do about stuff such as lazy creation of objects? - Option 1: nullable reference and if the program crashes, you have a bug. (That should be caught during testing.) - Option 2: Maybe<T>, making the rest of the code unreadabl
39.
▲
by
zvrba
4y ago
> Null pointers take something that should be strictly consistent (references) and make it fuzzy. I'd disagree; this is still strict consistency, at least in managed languages like Java or C#. (Coming from someone who has fully embr
40.
▲
by
zvrba
4y ago
Each time I read one of posts about JVM, I'm impressed by how they manage to deconstruct a "high-level" concept such as value type or reference type to more basic ingredients. Pinnacle of bottom-up design.
41.
▲
by
zvrba
4y ago
Since DAA generates #UB in 64-bit mode, I assume all such "adjust" instructions do (haven't bothered to check). In that case, is the auxiliary flag (AF) in the flags register used for anything at all in 64-bit mode?
42.
▲
by
zvrba
4y ago
In SQLServer you can define external tables that access data on another server, or even parses a file.
43.
▲
by
zvrba
4y ago
> Beyond being untestable, it's also hard to version control and roll back if there's a problem. Recently, I've learned that SQLServer supports synonyms. So you version functions / procedures (like MySP_1, MySP_2, et
44.
▲
by
zvrba
4y ago
> I don’t want to give other teams direct access to a DB [...] You don't have to. Package up necessary queries into views and/or stored procedures and grant permissions only on those. Views can also shield from schema changes.
45.
▲
by
zvrba
4y ago
So, lazy developers using loopback device instead of platform-specific named pipes on windows.
46.
▲
by
zvrba
4y ago
I don't get the hate on Edge. I use it daily and am very happy. Not the least, it includes some cool security features, i.e., sandboxing at the OS-level https://learn.microsoft.com/en-us/windows/security/
47.
▲
by
zvrba
4y ago
> he showed that not even two teams of horses straining to rip apart the watermelon-size ball could overcome the suction of nothing. Um. It's not "suction of nothing", it's the pressure of the atmosphere. If the vacuu
48.
▲
by
zvrba
4y ago
> Retrying is relevant for a specific small segment of callsites dealing with unreliable network or hardware interactions. This fact and knowledge of it should inherently be obvious at the callsite. Yes. However, libraries, at least in .
49.
▲
by
zvrba
4y ago
So empirical evidence on sample size of N=2 (Rust and C++) shows that when you take out exceptions from a PL [1] you get a number of mutually incompatible libraries for communicating errors. (Exceptions are controversial in C++ and many pro
50.
▲
by
zvrba
4y ago
Perhaps linoleum ( https://en.wikipedia.org/wiki/Linoleum ) or some newer material with similar properties? I've used older showers with linoleum floor and it was not slippery at all. Dunno, not an expert in this ar
51.
▲
by
zvrba
4y ago
Slippery surface exists because of stupid architects / builders / customers ordering buildings. </s> In Norway, there are a bunch of grocery (and other) stores that put those signs out when it's raining or snowing
52.
▲
by
zvrba
4y ago
Yes, ANSI syntax is surely composable or dynamic: EXTRACT(YEAR FROM DATE '1998-03-07')
53.
▲
by
zvrba
4y ago
I love the data model of RDBMS / SQL. I hate SQL _the language_. Verbose, irregular, attempting to mimic English and thus making it unintuitive and next to impossible to remember. 80% of my lookups into reference documentation is about
54.
▲
by
zvrba
4y ago
You can delete the name/directory entry, but the file remains allocated and in use as long as any program holds it open. So how useful the POSIX behavior is, is debatable.
55.
▲
by
zvrba
4y ago
No. That's why it's called _shared_ memory segment. Between processes. It's like an in-memory file.
56.
▲
by
zvrba
4y ago
> You can do it, but it takes some work. It's easy: create DLL/.so A with statically linked sqlite. create DLL/.so B with statically linked sqlite. Make a program using both DLLs.
57.
▲
by
zvrba
4y ago
Depends on what you're defending against. Sequential ids are easy to guess, and that's why we have ASLR for memory management.
58.
▲
by
zvrba
4y ago
> Windows does not allocate handles sequentially Indeed it does not, but it's not "random" either, i.e., they do get reused, probably rather quickly, so it does not solve the problem. Mark Russinovich or Raymond Chen (I th
59.
▲
by
zvrba
4y ago
> Java should be immune to that, but no. I can't comment on Choco, but no garbage collector is immune against programmer's mistakes. For example, it's easy to create leaks with observable pattern (short-lived observers not
60.
▲
by
zvrba
4y ago
Yeah, I agree.
More ›