Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
maleldil
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
50 ms
·
871.
▲
by
maleldil
3y ago
> If you're going to add a dependency you may as well just use a "real" language at that point. Not necessarily. It's still easier to manipulate shell programs in fish[0] than it is in Python since fish was made expli
872.
▲
by
maleldil
3y ago
Did you read the entire comment? The core idea of functional programming is pure functions (given the same outputs, the output is always the same). Nix applies that to building systems.
873.
▲
by
maleldil
3y ago
> > Don't panic > Good idea in general, but panicking is a great tool when the program is in a state that was not predicted by the programmer or cannot be recovered from. "In general, avoid panicking" would be better
874.
▲
by
maleldil
3y ago
> I imagine its too hard to have an optional flag at the start of each program that can let the user decide? Adding nogil would mean deep changes to the interpreter. I imagine maintaining both versions would be almost like forking the pr
875.
▲
by
maleldil
3y ago
You could have specialised intelligence and be clueless about everything else, including evaluating your ability. Intelligence doesn't beget humility. Nobel disease is a thing[0]; Linus Pauling is possibly the most famous example and t
876.
▲
by
maleldil
3y ago
My original post includes "there doesn't seem to be a compelling reason for ignoring it". I'm not arguing for tradition for tradition's sake. I don't think using = instead of define/defun/defn has a c
877.
▲
by
maleldil
3y ago
> Who cares Potential users care. It's off-putting to use something familiar but different in strange ways. Using head/tail versus car/cdr would be a deviation I could understand. This = mess isn't.
878.
▲
by
maleldil
3y ago
Unless you have the data on the client side already, which isn't the case for Htmx.
879.
▲
by
maleldil
3y ago
> Vivaldi is playing a dangerous cat and mouse game with Microsoft This is just user agent spoofing. You could already do that with the "Bing Chat for All Browsers" extension.
880.
▲
by
maleldil
3y ago
Are you sure you don't an extension spoofing the Edge user agent? When I access bing.com/chat from Chrome, I get a screen saying "Unlock conversational search on Microsoft Edge". You can avoid that by using Bing Chat for
881.
▲
by
maleldil
3y ago
Does this mean that every time the user types something, they have to wait a roundtrip from the server for completion? Wouldn't this make this useless for average-to-fast typers? Htmx sounds like a lovely idea, but doesn't it intr
882.
▲
by
maleldil
3y ago
> Less than C++ That depends. Rust requires less learning than C++ for writing safe code. There are plenty of C++ developers that feel like they know the language but produce unsafe code. Rust won't let you do that, so these develop
883.
▲
by
maleldil
3y ago
Because it's a 50-year old convention, and there doesn't seem to be a compelling reason for ignoring it. The language then uses `is` for equality, including numbers. It's just weird, especially given they're using old-fa
884.
▲
by
maleldil
3y ago
I think you misunderstood your parent's comment. Blizzard _today_ takes to maintain World of Warcraft's macOS build. The same Blizzard is releasing all new titles as Windows-only. This difference between WoW and there rest is what
885.
▲
by
maleldil
3y ago
NHS data[0] agrees that young people are drinking less. I'm surprised about how much more 55+ years old drink. [0] https://digital.nhs.uk/data-and-information/publications/sta...
886.
▲
by
maleldil
3y ago
> all things blizzard Recent Blizzard games (Diablo 2 Ressurected, Diablo 4) require DirectX 12 and aren't natively available for macOS.
887.
▲
by
maleldil
3y ago
Ruff is amazing. I recommend turning on the [I]import rules as a replacement of isort and running `ruff check --fix`. Run it with black for best results. It also has a very good LSP that complements pyright in my neovim setup. There's
888.
▲
by
maleldil
3y ago
Framing it as addiction was a mistake, but the intention is accurate: S-expressions are weird when you're used to C-like languages until they're not. You have to push yourself long enough to get used to them, and most people don&#
889.
▲
by
maleldil
3y ago
I'm not talking about delusion. I mean the simplest case where you acquired some information, have no reason to believe that it is untrue, and convey that to someone else. There's no intention to deceive or any possibility for you
890.
▲
by
maleldil
3y ago
If you say something untrue that you believe is true, are you lying?
891.
▲
by
maleldil
3y ago
Is the difference from PowerToys FancyZones[0] enough to justify updating? [0] https://learn.microsoft.com/en-us/windows/powertoys/fancyzon...
892.
▲
by
maleldil
3y ago
"Work correctly" is strong. They're different philosophies, and not everyone agrees that window-oriented switching is better than application-oriented. Your sibling comment prefers macOS's behaviour, and so do I. It took
893.
▲
by
maleldil
3y ago
IME, 1440p at 27" looks really bad if you're used to 4K at 150% (effectively 1440p). I had to buy a new monitor and went with a 1440p to save money, but returned it and got the 4K. It's significantly better.
894.
▲
by
maleldil
3y ago
What's the difference between using Alfred to search vs using the hotkey to open a Dash window in search mode?
895.
▲
by
maleldil
3y ago
> slow There's quite a good chance that even the most complicated Neovim setup is faster than Emacs. Emacs lisp is notoriously slow, while Neovim uses LuaJIT, which is _very_ fast.
896.
▲
by
maleldil
3y ago
See Clojure maps, Fennel tables and Janet structs/tables. https://clojure.org/guides/learn/hashed_colls#_maps https://fennel-lang.org/tutorial#tables https://janet-lang.org/do
897.
▲
by
maleldil
3y ago
> Python's list comprehensions are merely syntactic sugar for filter + map, but they make functional code so much more readable. More readable than filter/map/reduce _in Python_, because Guido dislikes them and wanted them
898.
▲
by
maleldil
3y ago
Nushell is amazing. I tried using it instead of fish for my projects' scripts, and I really like the language. I still prefer fish for interactive usage (mature ecosystem), but Nushell is an excellent scripting language. My favourite f
899.
▲
by
maleldil
3y ago
Am I correct in understanding that this can only manipulate (get or set values) from a JSON path? That is, is it not a replacement for jq? For example, I frequently use jq for queries like this: jq '.data | map(select(.age <=
900.
▲
by
maleldil
3y ago
Rust restricts what you can do when it can't reason about your code. Some developers don't like those restrictions and feel like they're "fighting the borrow checker". Others don't think it's worth it and
More ›