Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ptx
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
63 ms
·
961.
▲
by
ptx
5y ago
Interestingly, FreeBSD and Linux both started with the same audio stack (OSS) and both rewrote it twice[1], but FreeBSD has kept the original OSS API while adding essentially the same features, it seems. The big selling-point of ALSA, from
962.
▲
by
ptx
5y ago
The usefulness of this approach depends, I think, on whether the apps are actively working against the user's interests and need to be treated as hostile entities. Putting "ls" in a sandbox would make it much less useful and
963.
▲
by
ptx
5y ago
Have you tried Free Pascal with Lazarus[1]? How does it stack up compared to Delphi? [1] https://www.lazarus-ide.org/
964.
▲
New Kotlin/Native Memory Manager Development Preview
(blog.jetbrains.com)
2 points
by
ptx
5y ago
|
0 comments
965.
▲
by
ptx
5y ago
Why did you bother to post this message then? Shouldn't it be censored?
966.
▲
by
ptx
5y ago
A native app running under your account can do anything you can do, so it can determine which browser you use by any number of methods, for example by checking the timestamps on the files in your various browser profiles (and of course read
967.
▲
by
ptx
5y ago
Yes, Nim being the library in this case. These names are not defined by the application but are part of the code that the Nim compiler generates for any application. If you wanted to integrate some Nim code in an existing JS application and
968.
▲
by
ptx
5y ago
Hmm, I'm not so sure that Tkinter example really solves the problem of performing background work without blocking the UI. Sure, the UI thread doesn't block, but instead the UI state (as the user continues interacting with it) can
969.
▲
by
ptx
5y ago
Having all those globals in the code generated by the Nim compiler seems less than ideal, though. Especially since some of them have very generic names like "raiseException" and "addInt", which could conceivably conflict
970.
▲
by
ptx
5y ago
Native apps have access to all your local data, unlike web apps. Web apps can't gather telemetry on things they can't access.
971.
▲
by
ptx
5y ago
A surprisingly large amount. Many gigs. I'm not on my Windows machine right now, so I can't give you any figures, but it's enormous.
972.
▲
by
ptx
5y ago
That's not open source. The term "open source" (in the context of computer software) refers to a specific set of criteria (with some disagreement on philosophy and minor details[1][2][3]) that include the right to modify, red
973.
▲
by
ptx
5y ago
Didn't Mac OS X do this years ago? Edit: Since 2007: http://hints.macworld.com/article.php?story=2007102708084461...
974.
▲
by
ptx
5y ago
But is it a good thing for companies that are rich enough to be able to force changes in regulations by overwhelming the government's ability to punish them?
975.
▲
by
ptx
5y ago
No, this is an untagged template literal[1], which just generates a string. The other ones are tagged, which means that the template string and the parameters are (separately) passed to the $ function. [1] https://developer.moz
976.
▲
by
ptx
5y ago
There's always WSH if you're on Windows and will settle for ECMAScript 3. No external dependencies or runtime needed.
977.
▲
by
ptx
5y ago
Zx seems[1] to take advantage of the way template literals work in JS to do proper shell escaping of the parameters to prevent command injection. Is that handled by the Ruby and Perl backtick syntax as well? [1] https://github.co
978.
▲
by
ptx
5y ago
How recently? If you installed IntelliJ during 2020 it didn't have native ARM support yet[1], and had to be reinstalled to get it, so it would have been running in emulation. [1] https://blog.jetbrains.com/idea/202
979.
▲
by
ptx
5y ago
Kotlin has a lot of features aimed at mitigating the pain of working with Java APIs, such as extension functions. So you can sort of fix the API in a library or in your own code. (But it doesn't help with the lifecycle or reducing the
980.
▲
by
ptx
5y ago
I don't know much about Tcl, but I thought everything was a string, not a float? It appears to work with integers just fine: $ echo 'puts [expr 2 ** 128 + 1]' | tclsh 340282366920938463463374607431768211457 $ python3
981.
▲
by
ptx
5y ago
It definitely isn't[1]. Python has both floats and integers. He's sort of right though that it doesn't have "true integers ... which ... improve performance" since Python's numeric types are boxed and not exact
982.
▲
by
ptx
5y ago
They are similar but slightly different. "single" checks that there is exactly one matching element: >>> listOf(1, 2, 3).single { it > 2 } res0: kotlin.Int = 3 >>> listOf(1, 2, 3).single { it > 1 }
983.
▲
by
ptx
5y ago
"single" might be a better name. The Kotlin standard library uses that name for a variant of the "filter" method (on collections) that returns a single matching element or throws an exception if there are more or fewer.
984.
▲
by
ptx
5y ago
This isn't a problem in any of the languages the article mentions (Python, Ruby, JavaScript, Java) so that might be why the author didn't bring it up. Callbacks in these languages are objects that can carry along their own data.
985.
▲
by
ptx
5y ago
An example of this would be a pull parser for XML, right? A callback-based API can be built on top of the pull-based one if desired, but not the other way around, as far as I can tell, without using a separate thread. So the pull-based appr
986.
▲
by
ptx
5y ago
I feel the same way (and mostly use unittest instead) but maybe this technique makes sense as long as its use is limited to test functions? Test functions are never called explicitly and would otherwise (like unittest TestCase methods) neve
987.
▲
by
ptx
5y ago
Are all these different k s implicitly in US dollars, UK pounds or euros? I'm very confused.
988.
▲
by
ptx
5y ago
Imagine an email program that isn't built with web technology. It could actually display all the items in your mailbox, with a normal and usable scroll bar, without "infinite scroll". I distinctly remember applications being
989.
▲
by
ptx
5y ago
What are the advantages of a permissioned blockchain over the same collection of entities without the blockchain? If you have a set of trusted entitites that sign and publish the data, why do they need the blockchain part?
990.
▲
by
ptx
5y ago
One advantage is that there's a schema describing service that can be used to automatically generate the client code. However, getting data in and out of the auto-generated objects doesn't seem any easier than getting it in and ou
More ›