Better HN
topnewbestaskshowjobs
Log inSign up

gray_-_wolf

805 karma · joined Oct 7, 2017 (9y ago) · 317 submissions

Submissions

comment 4y ago · link · parent

Yes, it does. Thank you for thoughtful response. I think I understand you reasoning.

comment 4y ago · link · parent

Out of curiosity, did you consider good old paper mail? That is what I switched to with my relatives, we just exchange letters once or twice a month. Sharing photos is easy, just put it into the envelope. Seems to work fine even with my grandparents (they seems to prefer it honestly, feels more personal they say).

I'm honestly curious if you considered this and why did you rule it out?

comment 4y ago · link · parent

In my country most people do not really use thousands separator, so here it would be either 3141,592 or 3 141,592.

comment 4y ago · link · parent

Could someone comment on the down votes? The legislation is happening already, so I'm not sure why this is so controversial.

comment 4y ago · link · parent

The DEI people seem to me like they have a tendency to try to enforce their view via legislation. So I'm skeptical about the "market will decide" part.

comment 4y ago · link · parent

I do not see how diversity is a relevant factor. You can have a very diverse, shitty company and great non-diverse company. Anecdotal evidence: Company where I work at is likely not diverse according to woke standards, but it is a great place to work at.

comment 4y ago · link · parent

> The attack is not applicable to LUKS1 format, but the attacker can update metadata in place to LUKS2 format as an additional step.

First time I'm glad grub cannot boot LUKS2.

comment 4y ago · link · parent

As non-native speaker, I always have to google how to spell `engineering`. And you can't really auto-correct domain name.

comment 5y ago · link · parent

To be honest I'm amazed by the times. Mine (reasonably written C) is 4ms, so 0.025ms is quite amazing. Any idea what magic does rust do inside to achieve this speed?

comment 5y ago · link · parent

Github.com does not work properly (borderline on "at all") in a browser, and I cannot download a release of one project via curl. This sucks. And is definitely not just "degraded performance for GitHub Actions".

comment 5y ago · link · parent

As far as I know there is no standard for INI. There is a TOML that looks close enough I guess?

comment 5y ago · link · parent

It's possible to have document start and end markers in yaml:

    ---
    foo: 1
    ...
Your application can mandate usage of these. But yeah, not ideal.

comment 5y ago · link · parent

And trailing commas. And unquoted keys.

comment 5y ago · link · parent

I maintain portable fork of the project: https://git.sr.ht/~graywolf/acme-client-portable

comment 5y ago · link · parent

Oh, that is cool. Sounds like a nice mix actually. Local vim, browsers, known system. And container with mount-bind to actually compile and run stuff in.

comment 5y ago · link · parent

> The question is, how much time do you spend on dev environment issues per year?

Definitely not little. But at the same time, I usually learn a lot about how stuff works during that. Which I like to think makes me better at helping other people debug weird shit.

comment 5y ago · link · parent

It's not just that. There is also the matter of laptop getting broken (we all have proper backups, right? right?), stolen, ...

So I do see the appeal in thin client. My only issue is that the experience his closely tied to latency, so sometimes working over ssh is... irritating. Especially on mobile connection.

comment 5y ago · link · parent

We are using tanka [0] and are failry happy with it. The jsonnet language allows nice layer of abstraction while still allowing to directly generate kubernetes resources when necessary. We wrote in-house library to map (very) simplified .jsonnet file to kuberenetes deployment; after all, 90% deployements are mostly same and differs in minor details only. Seems to work reasonably well.

0: https://github.com/grafana/tanka

comment 5y ago · link · parent

> Users may also choose to abandon a transaction simply because there are additional steps to complete, giving them more time to contemplate their purchase.

Why is it a bad thing that people have more time to think about things?

comment 5y ago · link · parent

> This is already possible.

How? I did not find it possible to turn off pull requests when I last looked. Is that something they've added recently?

comment 5y ago · link · parent

Both gmail and outlook (web version) can be configured to send text/plain, I have it set in such a way.

comment 5y ago · link · parent

I've run into few issues:

1. Performance: lot of reflection and allocations, so not the fastest thing ever.

2. Case insensitivity: https://play.golang.org/p/LtwChO_tp0 this can be pretty unpleasant when it bites you

3. Unicode: It replaces invalid utf8 with unicode questions marks (dunno how exactly is the replacement character called) but does not provide any API to detect that it happened. So that can lead to silent corruption of the data.

comment 5y ago · link · parent

> I always wonder if this is the flip side of the fast compilation?

Go is cheating a bit on this one by heavily caching everything. Building in fresh container is quite slow (ok, maybe not c++ slow but still much slower then C).

Always having to build anything due to static linking does not help either.

comment 5y ago · link · parent

encoding/json sucks anyway, so using something 3rd party would likely be better option anyway

comment 5y ago · link · parent

> Curious what you think the main differences are.

From my experience (2 days/week WFH before pandemic):

1. People with kids have to babysit (I do not have children, but people who have are noticeably impacted by this)

2. Everything is closed, so casual outing to coffee shop or just grabbing a lunch with colleagues not possible. Some goes for just going to gym for a bit.

3. Before the pandemic, sometimes we did morning in the office filled with debate/design work, then lunch and then go home to bunker down and code. Again, not possible now.

4. Two adults in one room makes meetings annoying (well, basically openspace but without the free food).

5. Team beer is remote now, which I mean, kinda works. I get drunk anyway. But still, suck a bit.

comment 5y ago · link · parent

> When I was a junior engineer, one of our demos to a client failed because we had a group of 20 people try to use a server that had a highish latency connection to a database, and using synchronous IO meant that a 50ms db round trip for each executed query, with each request running maybe 5 or 10 queries, on a VM with 2 cores and one Rails process per core, would queue up incoming requests until they hit the 20 second mark and started timing out.

I'm fairly sure GIL is released when waiting for external I/O, at least all the decent C database libraries do so. So in your case threads would have help quite a bit.

In general yes, the GIL is imho a problem and I do not like it, but at the same time there are ways to configure applications so that they do not mind that much.

For non-thread safe things (are there still any?) there is always the goold old way of just running multiple processes (with preloading the memory usage of even 10, 15 puma workers is often acceptable).

comment 5y ago · link · parent

> Sorry! The URL you requested was not found on our server.

The link seems to be dead :/

comment 5y ago · link · parent

Seems to be at least partially compilation of other lists, but without giving them fair credit. [0] does make some pretty convincing claims.

0: https://gitlab.com/The_Quantum_Alpha/the-quantum-ad-list/-/i...

comment 5y ago · link · parent

Actual caveat is that the -e does not work in if statements. Compare:

  +$ cat x
  #!/bin/sh
  set -eu
  
  foo() {
          echo 1
          false
          echo 2
  }
  
  foo
  +$ ./x
  1
  +$ cat x
  #!/bin/sh
  set -eu
  
  foo() {
          echo 1
          false
          echo 2
  }
  
  foo ||:
  +$ ./x
  1
  2

comment 5y ago · link · parent

Well the idea is that thread creation itself is not really cheap. For most software I would say it is not really a problem, but if the "work" to be done is short enough, that creation of thread becomes the most costly factor. True, that can be solved by thread pool usually.

So I guess as with most things in software engineering, if there is something wrong with threads or not depends on your use case.

1
678
11