Better HN
topnewbestaskshowjobs
Log inSign up

GrumpySloth

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

Submissions

comment 4y ago · link · parent

Performance. I mean really long lines, not merely lines which exceed window width. Vim is a bit better at that than Emacs, but it still slows to a crawl on some large lines. Sublime Text e.g. never has any problems with long lines on the other hand, no matter how long.

comment 4y ago · link · parent

It's still a TUI. I would like Vim to be able to e.g. draw a normal line instead of changing the background of a column of characters, when cc is set. Also not needing to patch fonts to get things like powerline. That and other things of this nature.

comment 4y ago · link · parent

It's just a terminal really, still a TUI. I would like Vim to be able to e.g. draw a normal line instead of changing the background of a column of characters, when cc is set. Also not needing to patch fonts to get things like powerline. That and other things of this nature.

comment 4y ago · link · parent

If Vim was a GUI application (and could smoothly handle long lines), it would the perfect editor for me. Alas, the best I've seen so far is Neovim's discontinued GUI frontends.

comment 4y ago · link · parent

I couldn't find Maxwell, which is weird since Maxwell is present in the source CSV. He should be placed somewhere in Edinburgh.

Fantastic site nonetheless.

comment 4y ago · link · parent

I'm not against stand-ups per se, just against daily stand-ups. Currently I'm in a team which does three a week. That's at least tolerable, but if it was up to me, I'd opt for once a week. Daily made me feel that I had no agency over my work, that everything to the tiniest detail needed to be negotiated with someone, most often the manager. Less agency means lower engagement in work. At least for me. I do know that there is plenty of other people who are different.

comment 4y ago · link · parent

Don't you need to know when all borrows end? E.g. here:

  fn main() {
      let x = [1, 2, 3];
      println!("{:?}", x);
      let y = x.map(|x| x % 2 == 0);
      println!("{:?}", y);
  }
x is borrowed by println (or rather by code that println expands to) and then it is moved by array::map. The compiler needs to know that before x.map(), x is not borrowed anymore. Otherwise it could be that println actually stored a reference to x somewhere and now you have a dangling reference possibly breaking type-safety (referring to an array of bools through a reference to array of ints, if the map is implemented as an in-place operation).

comment 4y ago · link · parent

C type declaration syntax isn't easy to read for humans, as demonstrated by demand for projects such as <https://cdecl.org/>.

comment 4y ago · link · parent

> In Rust, moves are destructive (which simplifies implementions - you don't need an "empty" state) and always bitwise (which is usually fine, so long as they're destructive); and copies are always explicit so you don't have the above problem. I personally think that is all more useful than the borrow checker.

Without the borrow checker, this "move-by-default, move is memcpy" semantics would break all hell loose. Dangling pointers/references would be everywhere. I like this part of Rust, but I'm not sure if it can work in a non-GC, no-borrow-checker language.

comment 4y ago · link · parent

> Having to report every day during the daily stand up felt like micromanagement to me. But that's just me. Many people do like having this kind of daily routine so mileage may vary obviously.

Same here. I used to be in a team with daily stand-ups, reporting to the manager what work I did the day before, and they killed my will to work, consequently causing me to work ~3 times slower, which presumably is the opposite of the intended effect.

comment 4y ago · link · parent

The original title is 2 characters over the HN title length limit. I suspect they dropped "Go" first, because it's the language which has a 2-letter name, and they they editorialised it further to hint that there are more languages.

comment 4y ago · link · parent

I like the OCaml version. It's both very easy to read and comes out really well in the benchmark.

I also looked at the "simple" Zig version, which came out really well in the benchmark, and to me it didn't look simple at all. It seems you need to make a lot of low level details explicit.

But IMHO AWK takes the crown here. :)

comment 4y ago · link · parent

> That's what I meant that we don't have to worry about in C since you can't even have two different functions with the same name

But you can have a macro foo which expands to a generic selection: <https://docs.microsoft.com/en-us/cpp/c-language/generic-sele...>

comment 4y ago · link · parent

Wow. That's competing with some C++ projects.

comment 4y ago · link · parent

> you would implement it as a new type of token

That's a good point. I consider myself debunked.

comment 4y ago · link · parent

For me non-drinking month is a normal month, without any personal rule. I've heard about people drinking everyday, but that's hard to imagine for me.

Recently, after a party where I drank alcohol, I concluded that I actually don't like the state alcohol puts me in. The slower reaction time, slower thinking, the need for preparation regarding eating and then after the fact drinking water before sleeping etc. Luckily I don't spill any secrets I shouldn't spill when I'm drunk, as some people do. I'm also the sort of person who gets annoyed at hot weather mainly due to its detrimental effect to the speed of my mind. It's just very unpleasant to me. So even though I don't have the slightest problem with alcohol (for a typical year I can count the number of times I drink alcohol on the fingers of a single hand, and no substance ever even began to take a hold over me), I've decided to quit it entirely, because I prefer to drink something as peasant as lemonade or tea, which doesn't inhibit my mind.

comment 4y ago · link · parent

Lemonade/tea is great for the social aspect. Relaxation - I just go shooting photos. Activity is better than "relaxation substance" (soma).

comment 4y ago · link · parent

How would that work? It would need to depend on the grammar of surrounding C code. This directive isn't limited to variable initialisers. You can use it anywhere. So e.g. you can use it inside structure declaration, or between "int main()" and "{". etc. etc. Those will generate errors in subsequent phases, but during preprocessing the compiler doesn't know about it. Then there is also just that:

  int main () {
      return
  #embed "file.bin"
      ;
  }
There are plenty of cases, where it will all behave differently. And if you're going to pretend even more that the preprocessor understands C syntax, then why not just give this job to compiler proper, which actually understands it?

comment 4y ago · link · parent

That's putting it mildly: <https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3017.htm#i...>

comment 4y ago · link · parent

> told me this form was non-ideal and it was worth voting against (and that they’d want the pure, beautiful C++ version only[1])

I heard about #embed, but I didn't hear about std::embed before. After looking at the proposal, to me it does look a lot better than #embed, because reading binary data and converting it to text, only to then convert it to binary again seems needlessly complex and wasteful. I also don't like that it extends the preprocessor, when IMHO the preprocessor should at worst be left as is, and at best be slowly deprecated in favour of features which compose well with C proper.

Going beyond the gut reaction and moving on to hard data, as you can expect from this design, std::embed of course is faster during compilation than #embed for bigger files (comparable for moderately-sized files, and a bit slower for tiny files).

I'm not a huge fan of C++, but the fact that C++ removed trigraphs in C++17 and that it's generally adding features replacing the preprocessor scores a point with me.

[1]: <https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2020/p10...>

comment 4y ago · link · parent

Almost no voter has the expertise to accurately allocate resources in a country. Why would a popular vote, where expertise means nothing, result in anything better than we already have? There are plenty of issues people don't even know exist, but are nonetheless essential. People also in general do not know how much is necessary to maintain infrastructure of a whole variety of things. I'd expect a catastrophe.

comment 4y ago · link · parent

With the difference that it's not a markup language, and it doesn't have those pesky namespaces.

comment 4y ago · link · parent

Am I understanding it right that those plots are only generated in HTML form? I.e. I can't use it to generate an EPS file to be included in a LaTeX document?

924.

Tell HN: You can't create a top folder named “Calendar” in Office365 Outlook

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

comment 4y ago · link · parent

I don't think the fact that you keep discovering features is a bad sign for a tool like git. It would be a bad sign if you kept discovering new footguns in the features you use (there is a fair bit of software like that).

I'm 25 and a couple weeks ago I discovered a new way to use a knife to prepare a fish, even though I've been doing that all my life. I don't think knives or fish have bad UX, even though I keep discovering new ways to use knives on fish. What's important is that I don't keep discovering new ways to hurt myself with knives.

comment 4y ago · link · parent

It doesn't change compared to DoT, but it does compared to raw DNS, since raw DNS is trivial for ISP to intercept, regardless of IPs involved.

comment 4y ago · link · parent

In most countries, grandparents probably didn't even have an opportunity to get near a computer when they were young. They didn't have the opportunity to ruin anything, because there was nothing around to ruin. But they will still repeat this trope of "kids these days are so good with computers".
1
303132
55