Better HN
topnewbestaskshowjobs
Log inSign up

GrumpySloth

4,901 karma · joined Sep 13, 2020 (6y ago) · 1,641 submissions

Submissions

comment 5y ago · link · parent

> "Breaking" is undefinable. I remember reading about some user complaining that a small bugfix broke their work setup because it fixed a bug that used to make the CPU go 100% when the spacebar was held. The user would hold it with a weight and get the CPU to make heat that way. The small fix broke his experience.

You confused XKCD with reality: <https://xkcd.com/1172/>

comment 5y ago · link · parent

Why would knowing Haskell be an advantage in the task of ensuring safety in Rust? It's for sure worthwhile to know many languages, but I don't know why knowing Haskell is considered a badge of honour. It's just another language. For ensuring safety of Rust, knowledge of type theory and Rust sounds like should be enough.

Tangentially, Haskell itself is unsound. It's also a messy kitchen-sink language in practice, giving me C++ vibes (yes, a bit ironic in the context of Rust, but still true).

As for productivity, the number of widely-used programs written in Haskell does not convince me. Unless we're talking about languages whose purpose is implementing compilers.

comment 5y ago · link · parent

The position of "Head of Catholic Church" has been vacant for centuries, it seems.

Also, the domain of Mary Magdalene's mail was seized by FBI (that or it's a prank).

comment 5y ago · link · parent

My bad.

comment 5y ago · link · parent

I'm using GUI Emacs. There is one thing I use the mouse for: resizing windows. Apart from that, GUI is more visually pleasing, it doesn't try to emulate graphics by fitting characters into the grid. When it wants to paint a line, it paints a line, not a column of "|" characters; same with arrows and whatever. Another advantage is that it gets the key presses directly instead of through the terminal. In the terminal it can't distinguish between e.g. "C-/" and some other keys (I don't remember which).

However, I'm looking for a better editor anyway. Emacs is too unresponsive at times. I'll probably either switch to a GUI version of neovim when one of them gets good enough[1], or write myself a new editor, because I haven't really seen anything promising outside of neovim.

[1]: I think neovim folks might have abandoned this idea, so I'm not holding my breath.

1236.

A fork() in the road (2019) [pdf](microsoft.com ↗)

3 points · by yakubin · 5y ago · discuss

comment 5y ago · link · parent

The editorialized title is inaccurate. It's not a "New GUI for the Web". It's "A new way of creating GUI in the web". There is an important difference.

comment 5y ago · link · parent

- "Iterating over all of 32-bit space will take forever"

- "Applications run on top of operating systems, i.e. their code is executed by operating systems"

- "Text is a good API"

comment 5y ago · link · parent

Thanks for the links.

comment 5y ago · link · parent

Git - yes, GitHub (issue tracker + CI) - no. That's one of my favourite parts of Git actually - how much you can do offline.

In the companies I've worked for so far, issue tracker and CI have been self-hosted along with the rest of company infra. One fewer point of failure.

comment 5y ago · link · parent

> The aggressive free() also exposed use-after-free bugs never before seen

What do you mean by that? Is there an overview somewhere about "aggressive free()" that I can read?

comment 5y ago · link · parent

A while ago there was a post on HN about pkgsrc[1][2][3], which works on Mac, among other platforms. I haven't tried it, but it may be worth a shot.

[1]: <https://rubenerd.com/using-netbsds-pkgsrc-everywhere-i-can/>

[2]: <https://news.ycombinator.com/item?id=27293108>

[3]: <http://www.pkgsrc.org/>

comment 5y ago · link · parent

One of my pet-peeves is how common it is for applications these days to assume you always have a reliable Internet connection. The shift to webapps makes the whole system really fragile. All it takes for an app to become unusable for everyone is a failure in just a couple nodes in the system.

I don't use GitHub for work, but it's always amusing to see the cries of people who do, when it does down from time to time. The ability of many companies around the world to continue operating depends on just one company continuously making the right calls.

In the future, when Ubisoft's servers go down, I won't be able to play Assassin's Creed games anymore, even though the servers don't really provide any value to me as a player.

On Spotify I keep downloading the same songs over and over again. Poisoning the environment more than if I got a CD. These days I try to buy songs to download once and then play in my favourite offline music player.

And of course SSH, the "secure shell", application which doesn't really optimize for shells. Responsiveness of typing things in the shell prompt relies on the quality of the Internet connection and the CPU load on the server machine - a process during which the server doesn't really have anything interesting to say.

I'm working on the side on creating a company and those opinions lead me to choose the harder path of desktop applications which don't need Internet connection for anything that doesn't require it by definition. They're more resilient and comfortable to use. I'll probably fail, but I really can't make any other choice at the moment, I need to at least try and see for myself.

1244.

Consume Less, Create More(blog.tjcx.me ↗)

3 points · by yakubin · 5y ago · 1 comment

comment 5y ago · link · parent

It is a built-in in zsh. Thanks to that, it will recognize when something is a built-in, an alias, a function or a command and report accurately what will be executed when you type it in without the "which".

comment 5y ago · link · parent

What do you base that on? Just because someone chooses other languages whenever they can, doesn't mean they're not forced to use C++ at work.

comment 5y ago · link · parent

I regularly read source code of the Rust standard library. With C++ I don't even bother, it's futile.

comment 5y ago · link · parent

In my experience, people waste performance and manhours at the same time. Many abstractions create more code instead of reducing it, at the same time making the code slower, harder to read and maintain. Would you rather maintain a couple hundred lines of straightforward code or thousands of lines of class hierarchies with delegates and whatnot?

See John Carmack on Inlined Code: <http://number-none.com/blow/blog/programming/2014/09/26/carm...>

comment 5y ago · link · parent

That's a good one. Brought a smile on my face.

From "What We Do In The Shadows": <https://youtu.be/yy4CN9DVPII?t=85>

comment 5y ago · link · parent

I feel the pain of a lack of REPL. I frequently want to check a snippet of code, but need to go through the cycle of creating a test case, copying code, modifying it so that it works standalone without its context, running it and then deleting it. It's tiresome.

As for compilation, yes, it's slow in general, but once you compile a project initially, later incremental builds are usually quick.

Overall, I think in the future I'll see if I can use SML more and see how it goes.

comment 5y ago · link · parent

> I can see the frustration coming from Lisp, but it's just business as usual in compiled, strongly typed system languages.

Not really. SML and OCaml let you evaluate selected code snippets in REPL just fine, and their compilation is fast. I'm not sure about Haskell, but I'd guess it's similar with ghci.

"Strongly-typed" is in the eye of the beholder, but the phrase "compiled, strongly-typed programming languages" generally doesn't bring to my mind C++ and Java of which this statement would be more accurate.

comment 5y ago · link · parent

This is true. But switching jobs this fast a lot doesn't look that good on resume.

comment 5y ago · link · parent

A ~month ago I complained in the presence of my tech lead that the raises we got this year were below inflation. Last week I got a raise above inflation.

That and the fact that I don't want to go work in blockchain/smart bulbs contribute to my decision to stay where I am for now.

comment 5y ago · link · parent

I like making friends outside of work. To me emulating friendship in corporate environment feels cringeworthy and I literally see people forcing themselves into it. I also like to get out of the programmer environment as much as possible. I just don't like it, even though I'm a programmer myself.

comment 5y ago · link · parent

https://magit.vc/manual/magit/How-to-pronounce-Magit_003f.ht...

comment 5y ago · link · parent

Italian, not Latin. Italian is the language of music. Italy used to be the capital of European music. That's where it comes from. I also wouldn't classify it as mere "theory". It's basic notation that appears in notes. Calling it "theory" is like calling control flow constructs in Pascal (the language) "theory".

comment 5y ago · link · parent

I've read in one of previous threads about it that it's for the purpose of comparing different teas accurately. It's not supposed to result in the best possible tea. Instead it's supposed to make the tea's aroma and taste as clear as possible and it's supposed to be used uniformly across different varieties of tea, so that they can be compared accurately without much error margin introduced by the preparation itself. This may be entirely wrong though. After all, it's just something someone wrote on the Internet...

comment 5y ago · link · parent

Thanks for the clarification. I just went by what's specified in the sidebar on GitHub in the "Milestone" section.

comment 5y ago · link · parent

I'm eagerly awaiting the Cargo feature "named profiles"[1]. It's already merged, but not yet announced to be planned for any specific Cargo version. It will allow users to create custom profiles with different build parameters from the standard ones, so you can e.g. create a "profiling" profile which is based on the "release" profile, so that it has all the nice optimizations, but with debug information included, so that it works well with cargo-flamegraph:

  [profile.profiling]
  inherits = "release"
  debug = true
[1]: <https://github.com/rust-lang/cargo/pull/9943>

And then there's the less fireworky, but still appreciated, Iterator::map_while[2], which is going to be in Rust 1.57.

[2]: <https://github.com/rust-lang/rust/pull/89086>

comment 5y ago · link · parent

It may be faster to generate them on the fly. Iterating over ranges of integers is a lot faster than reading files from disk.
1
414243
55