Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
setopt
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
26 ms
·
421.
▲
by
setopt
2y ago
On medium-DPI screens, I find that subpixel antialiasing make fonts significantly less blurry than grayscale antialiasing without causing obvious color fringing. On actual low-DPI screens, bitmap fonts are IMO the only really usable option.
422.
▲
by
setopt
2y ago
> great code evaluating features (sending expressions to the REPL and such) It’s definitely not as advanced as Elpy, but it’s worth noting that the built-in Python-mode also has basic support for this: C-c C-p to start an interpreter (ca
423.
▲
by
setopt
2y ago
There are plenty of non-hiDPI screens from other vendors on the market, especially “large” screens that are “medium” in price. In an office you’re not always free to order a screen from any vendor you want (due to their framework agreements
424.
▲
by
setopt
2y ago
That’s because MacOS got rid of subpixel antialiasing sometime after launching Retina screens, which makes non-hiDPI screens have quite awful font rendering. I sometimes switch to a bitmap font like Fixedsys Excelsior or GNU Unifont when us
425.
▲
by
setopt
2y ago
Aha, I see. The alternative I was thinking of was this Python-mode: https://wiki.python.org/moin/EmacsPythonMode It seems that one is on MELPA under the name “python-mode”. It’s a third-party project that replaces the
426.
▲
by
setopt
2y ago
Keep in mind that there are, unfortunately, at least two packages called “python-mode”. There’s one that is shipped with Emacs, which is maintained by the Emacs maintainers. That’s the one I use and I agree with you that it works very well.
427.
▲
by
setopt
2y ago
> They even work in most native text editing fields in macOS and iOS. Some of them work, e.g. C-a/C-e, which is nice. However, after hearing about that "Readline keybindings work everywhere in MacOS", I was quite disappoin
428.
▲
by
setopt
2y ago
Just keep in mind that when you do this, most plots will by default reuse the existing frame without clearing it. So you need to manually call plt.figure() more often (which in my opinion is more logical than plt.show). There’s also a chang
429.
▲
by
setopt
2y ago
Don’t get me wrong either – I personally prefer Gnuplot by quite a margin, Matplotlib is indeed too verbose. These days I use Matplotlib more mainly because I use Python more. I’m just saying that it doesn’t take too much configuration to m
430.
▲
by
setopt
2y ago
Matplotlib is very easy to customize via “style sheets”, so you can make it match any style you want. Note that you can even turn on the “usetex” option and provide a preamble to compile all text/equations via TeX.
431.
▲
by
setopt
2y ago
I love Emacs, but I think it would be challenging to teach an intro programming course using it these days. (We landed on VSCode for teaching Python.)
432.
▲
by
setopt
2y ago
In quantum mechanics, you use a “Hamiltonian matrix” H to encode, in some sense, “everything that a particle in your system is allowed to do” along with some energy associated with that. For instance, an electron in a metallic crystal is al
433.
▲
by
setopt
2y ago
The largest speedup I have seen was for a quantum mechanics simulation where I needed to repeatedly calculate all eigenvalues of Hermitian matrices (but not necessarily their eigenvectors). This was basically the code needed: import s
434.
▲
by
setopt
2y ago
Interesting. Any links to examples or docs on how to use PyTorch as a general linear algebra library for this purpose? Like a “SciPy to PyTorch” transition guide if I want to do the same?
435.
▲
by
setopt
2y ago
I’ve been using CuPy a bit and found it to be excellent. It’s very easy to replace some slow NumPy/SciPy calls with appropriate CuPy calls, with sometimes literally a 1000x performance boost from like 10min work. It’s also easy to writ
436.
▲
by
setopt
2y ago
I guess we’re stretching the analogy a bit far… But we’re mostly flying using jet engines, which is a distant descendant of a combustion engine that was developed over a century later than the car engine. If we want to see the AI analogue o
437.
▲
by
setopt
2y ago
Fair enough, but I feel that the same can be said for e.g. the combustion engine… The only thing cars did was to save time and resources doing things humans were already capable of doing. Now, such engines are used for life saving things li
438.
▲
by
setopt
2y ago
> writing code? Any tangible proof on that one? Personal experience? Not just me, but e.g. all the comments on HN on ChatGPT, Copilot, et al.? I’ve been using it for about two years now to draft new code, after having programmed for two
439.
▲
by
setopt
2y ago
According to Reddit [1], you can use the existing rg.el package, and just point it to the rga binary instead of the rg binary, and it is supposed to just work. [1]: https://www.reddit.com/r/emacs/comments/1egh
440.
▲
by
setopt
2y ago
I only feel dumb if I don’t know how to start looking at a problem, in some cases because I don’t understand the description of the problem either. But as long as I understand to some degree what we want to achieve, and have some vague id
441.
▲
by
setopt
2y ago
If it worked like that in other Mac apps, I wouldn’t mind. Then you would just adjust to “this is how MacOS does cut-and-paste” and after an initial adjustment it would make complete sense. But in every other Mac app, even in TextEdit, you
442.
▲
by
setopt
2y ago
I don’t mind most of them, but the cut/move is IMO unusable.
443.
▲
by
setopt
2y ago
The benefit is if you often have to work on remote servers where only Bash is available. Then, using the same interactive syntax locally and remotely is simply less jarring, since switching between e.g. the Fish and Bash for-loop syntax e
444.
▲
by
setopt
2y ago
> You said that “-3” = “0-3”. No, I didn’t.
445.
▲
by
setopt
2y ago
I personally found Goyo very buggy, bordering on unusable, last I tried it. Vim Pencil is however great. An alternative, if you want more control over how things look, is to customize linebreak, breakindent, breakindentopt, etc. yourself pe
446.
▲
by
setopt
2y ago
This is a good way to think of it. It would be very confusing if “0 - 3^2” and “0 + (-3^2)” should mean different things.
447.
▲
by
setopt
2y ago
Isn’t that distinction more philosophical than not? Like the Feynman diagram is in any case that a photon is transmitted between two charged objects, whether that photon is “real” or “virtual”. I know there are physicists who interpret this
448.
▲
by
setopt
2y ago
I didn’t play with this myself, but I’ve heard good things about writing parsers in Haskell (e.g. the Parsec library and friends). Hell, even Pandoc is written in Haskell and that’s arguably the king of document parsers. So that could be on
449.
▲
by
setopt
2y ago
Simple yet customizable? My thoughts go to Sublime Text if you want a GUI editor and closed-source is OK, or Micro if you want a TUI editor that is open source: https://micro-editor.github.io/ Like OpenBox, most casual user
450.
▲
by
setopt
2y ago
I think it does, actually. Python also has many of Haskell's features (list comprehensions, map/filter/reduce, itertools, functools, etc.). But I only started reaching for those features after learning about them in Haskell.
More ›