Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
chlorion
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
32 ms
·
361.
▲
by
chlorion
4y ago
It wouldn't extend to your table, but if you used that table to generate a book of your own, it's very possible a serious person would claim the author's copyright extends to the generated book.
362.
▲
by
chlorion
4y ago
Do we have any evidence to support these claims? If Google actually wanted to cripple adblockers, why wouldn't just ban them outright and remove addons used for adblocking purposes from the Chrome extension store, or completely remove
363.
▲
by
chlorion
4y ago
The amount of misinformation in these comments is absolutely wild. For some reason people are just itching to spread FUD about this topic and Google in general. I don't understand where it comes from or why it happens but it's rea
364.
▲
by
chlorion
4y ago
I do realize people have been using tagged unions for a long time. Having some library helpers goes a long way in making them more usable and more expressive. Having them built into the language as a first class feature is even better yet,
365.
▲
by
chlorion
4y ago
I'm not sure if you are asking how to export your public key or how to distribute it, so I guess I can mention both. You can export your public key using the --export flag, by default it exports all public keys in the keyring, so you c
366.
▲
by
chlorion
4y ago
It's really not so bad. You use --genkey to generate a key, --import to import a key, --encrypt and --decrypt do what they say on the tin, --sign to sign messages, --recv-key can download a key from a keyserver and --verify to verify s
367.
▲
by
chlorion
4y ago
Variants are meant to introduce a tagged union like data structure into C++. You can do this without variants by manually defining your own unions and managing the tag yourself, but this is very not type safe and requires extra boilerplate
368.
▲
by
chlorion
4y ago
Yeah! That's what I meant when I said arenas solve a different problem! I don't think I mentioned using unique_ptr with the arena and I didn't mean to suggest that if I did. My point was that arenas are not a replacement for
369.
▲
by
chlorion
4y ago
I think arenas are more of an alternative to shared_ptr than to unique_ptr. A std::string is an example we can use, it acts fairly similar to unique_ptr. Sometimes you just need to heap allocate something, work with it and/or store it
370.
▲
by
chlorion
4y ago
According to the docs this is actually emulating move semantics on the compilers that don't support it. I guess this means that you don't have to have it at the language level to support unique_ptr, but you do need some form of mo
371.
▲
by
chlorion
4y ago
I'm not sure that any IDEs support cppfront yet!
372.
▲
by
chlorion
4y ago
>They don't need a move constructor because they've been already clever enough to solve a prolbem from a different angle. How would you implement something like unique_ptr without move semantics? Can you give an example of angl
373.
▲
by
chlorion
4y ago
Magit also functions as a proper git GUI with the Emacs GTK interface. Just wanted to mention this in case anyone was under the impression that Magit was TUI only!
374.
▲
by
chlorion
4y ago
You can't write software without training wheels either, you just think you can. I know enough about C to know that I can't write it safely 100% of the time, especially when you introduce things like parsing untrusted input and th
375.
▲
by
chlorion
4y ago
They aren't :) The main thing I guess is dealing with C APIs in C++. You do have to use C APIs in Rust as well though, but maybe dealing directly with plain C APIs is less common because of how annoying it is. The only way to avoid tha
376.
▲
by
chlorion
4y ago
The "interpreter" in the youtube-dl source is probably safe from a security standpoint. yt-dlp seems to support running javascript in a full javascript interpreter/headless browser called phantomjs though. Running javascript
377.
▲
by
chlorion
4y ago
It's not one of those that you listed, but the @dataclass decorator uses type hints to auto-generate classes and class constructors (__init__ method) for you. An example: @dataclass class HackerNewsPost: title: str
378.
▲
by
chlorion
4y ago
It may be unpopular but it's correct! Every language tries to re-implement the package manager, but it ends up breaking down as soon as you need to interact with anything outside of that specific language's ecosystem. The only sol
379.
▲
by
chlorion
4y ago
lsp-mode or eglot and company combined with clangd works very well. I also just use the built in "c++-mode" for the major mode. None of these packages are built into Emacs, but eglot and company are on elpa which means they are a
380.
▲
by
chlorion
4y ago
I'm not really sure how to reply to this. The first thing that's worth mentioning is that Emacs isn't simply in "maintenance" mode. There is a nice steady flow of new features, significant features too such as Elisp
381.
▲
by
chlorion
4y ago
This is an interesting question. I would say at the very least it offers an extra layer of authentication over ssh, so it would require a wireguard bug and ssh bug to cause damage. That alone provides extra security! Another helpful thing,
382.
▲
by
chlorion
4y ago
Thanks for bringing this up. I don't understand why people seem to automatically trust things just because they advertise as being more "private" than the alternatives. I guess none of us are immune to advertising tactics, bu
383.
▲
by
chlorion
4y ago
If you are targeting a GNU/Linux system and possibly other Unix like systems you can use pkg-config for this. All of the mainstream Linux distros support and use pkg-config, but I'm less sure about the BSD systems and MacOS since
384.
▲
by
chlorion
4y ago
On a somewhat related note, Wireguard acts somewhat similar to Mosh in that it can handle poor connections and moving across networks without reconnecting anything. I use SSH over Wireguard on the home DSL which sometimes has significant pa
385.
▲
by
chlorion
4y ago
Are they actually? Have you spent any time in the Gentoo community or talked to actual Gentoo users? I see people parrot this around a lot but from my experience the insufferable thing is the constant complaining and sweeping accusations ag
386.
▲
by
chlorion
4y ago
>Maybe consider that you or other authors you’re working with are bad at writing software. You are making the classic mistake of thinking you aren't also just as bad as everyone else. Chances are you are just as bad or worse. Taking
387.
▲
by
chlorion
4y ago
People that don't like it generally have used macros that are more sophisticated than just blindly copy pasting text into your source files and have became aware of how absurd that is.
388.
▲
by
chlorion
4y ago
Emacs is not a command line editor (but it can run in a terminal if needed). It has a proper GTK interface and even runs natively on Wayland today. The GTK GUI interface isn't just a niche fork or addon that nobody uses, it's real
389.
▲
by
chlorion
4y ago
There is nothing broken in this example, it's functioning exactly as it's intended to. What makes you think the borrow checker is broken here? It appears like you don't really understand the rule about mutable and immutable r
390.
▲
by
chlorion
4y ago
Thanks. I'm going to install guile and tinker around with it! So far it looks pretty good.
More ›