Better HN
topnewbestaskshowjobs
Log inSign up

coder543

6,698 karma · joined Jul 18, 2012 (14y ago) · 1,967 submissions

My email is at gmail using my username.

Backend-focused full-stack engineer with 8+ years of experience, mostly focused on Go, Rust, and TypeScript, but open to other options.

Resume: https://drive.google.com/file/d/1VNC272B3n7ZEfppMHkm2wGgaINwYl4Av/view

Submissions

comment 8y ago · link · parent

Yeah, take a look at this: https://www.anandtech.com/show/11544/intel-skylake-ep-vs-amd...

> On average, both Xeons pick up about 20% due to SMT (Hyperthreading). The EPYC 7601 improved by even more: it gets a 28% boost on average.

These results are the same as I've seen everywhere except the quote you pulled out. Zen's SMT is more effective than Intel's HT.

comment 8y ago · link · parent

I agree, I definitely meant to refer only to the Surface Pro.

I wish the Surface Laptop had USB-C, and I'm not a fan of how expensive the Surface Book is, but I recognize the Surface Book might be awesome for certain people.

comment 8y ago · link · parent

Windows trackpads in mid-range or better laptops have been every bit as good as their Mac equivalent for several years now, in my opinion. Unless you think Force Touch is something desirable on a trackpad, in which case you'll be disappointed.

Surface is a weird hybrid of laptop and tablet, and I haven't been impressed by its floppy keyboard or tiny trackpad. A Lenovo X1 Carbon, on the other hand, is just incredible.

comment 8y ago · link · parent

It's definitely possible to configure this... it's just not a default on any distro I'm aware of. Linux Full Disk Encryption definitely stops very early and asks for the FDE password before being able to continue booting. After that, you would just have to have your user set to "automatically log in" for it to just go all the way in.

In fact, I think you could choose to set it up this way from the Ubuntu installer directly. By default, it just encourages you to sign in manually in addition to setting up FDE.

comment 8y ago · link · parent

From my experiences working with beginners, I think the keyword "end" would be more clear to them. It would be great to have it as a synonym for ".", if nothing else. I think we can all agree that what constitutes "line noise" is pretty subjective.

comment 8y ago · link · parent

also, same color scheme? I've seen some studies that show it's harder for people with certain vision issues to focus on text that's white text on a black background than it is for them to focus on black text on a white background, so.. if they're trying to read on a dark theme on their phone, that could be noticeably different from using their E-Ink screen, which is almost certainly using a light theme.

comment 8y ago · link · parent

What kind of SaaS business?

comment 8y ago · link · parent

It's all relative. I don't own a single flashlight that can be set dimmer (or anywhere close to as dim) as my iPhone XS Max is at minimum brightness on a white page. If the XS Max is showing mostly-dark content, the amount of light emitted is really tiny at minimum brightness because of that OLED display.

On the various Android devices I've owned, I've used a useful app called Screen Filter that adds a translucent layer on top of all apps to dim the screen beyond the artificial manufacturer-imposed minimum brightness, which worked especially well on OLED Android phones, but also LCDs worked fine too.

comment 8y ago · link · parent

It isn't possible to make light that is faster or slower than other light, so does it matter that some other property is derived from this constant* ? A property derived from one variable and a constant property is perfectly logical to refer to as intrinsic, since it's always exactly linked to one intrinsic property. Splitting hairs there doesn't make sense.

Which things can a light source vary, besides wavelength and intensity? It's easy to define intensity in this context as the photons being emitted per period of time. This isn't like trying to define the intensity of sound as an intrinsic property, when it really depends on a number of actually intrinsic variables.

*within a given medium, which is external to the light... which means it won't change based on reflected vs LCD.

comment 8y ago · link · parent

Yet you fail to point out the inaccuracies... I'm not moving the goal posts, I'm just clarifying where they were to begin with. You pushed them as far as you could within the wording of my original message, instead of taking the "strongest plausible interpretation" of my original message.

comment 8y ago · link · parent

The argument is that since the light is the same, it can't have different effects. Reflected light cannot be inherently healthier than light from an LCD.

comment 8y ago · link · parent

Is it not sensible, though? People are trying to argue that light from a backlight is inherently more dangerous than reflected light. The easiest way to dispel this notion is to establish that the light from a backlight is just light like any other, which it is. At most, it varies in spectrum and intensity. Polarization is affected by filters outside of the light source. The phase that's hitting your retina varies entirely based on irrelevant things like when the light source was turned on and how far away it is.

Starting by pointing out that intensity and wavelength are the only intrinsic properties is a great starting place.

You still haven't pointed out any additional properties that have any bearing on how your retina is affected. I was wrong the say that there were no other properties, since we can endlessly discuss the quantum nature of light or how it experiences no flow of time since it travels at the speed of light or all sorts of other properties...

but none of these things change based on the light source. Light is light, except for the intensity and wavelength. Unless we're willing to consider things which could affect reflected light just as much as they could affect emitted light, since they're the same thing. Light.

comment 8y ago · link · parent

Lasers are just a method of creating light of a single wavelength. The light itself from the laser is still defined by its wavelength and intensity.

Polarization is just related to the orientation of the electromagnetic waves, and it is a property I didn't mention, you're correct. I don't think it really matters here, though. It's kind of like which direction you shine a light, except whether the waves are all oriented the same way or not. I would almost argue that it's an extrinsic property since uniform polarization is almost exclusively the realm of external things like filters, not the light source itself.

Your "etc." is a little vague.

comment 8y ago · link · parent

I have used both LCD and OLED smartphone displays at incredibly low brightness in pitch black rooms for a long time, and I have to completely disagree.

On the other hand, E-Ink is amazing in sunlight, where smartphone displays can't get sufficiently bright.

comment 8y ago · link · parent

why does it have to be dimmer than ambient?

comment 8y ago · link · parent

That's just a function of monitor brightness, it has no connection to whether the light was reflected or not.

If a monitor has bad contrast and you turn up the brightness, that's not the fault of the light source. That monitor still won't even come close to the amount of blue light that a blue sky emits, even at maximum brightness.

Personally, I think all monitors made in the last 10 years should be as legible at low brightness as a piece of paper is in an equally poorly lit room.

comment 8y ago · link · parent

does light have any other intrinsic properties besides spectrum/wavelengths and intensity (EDIT: properties that vary based on the light source alone)? It doesn't matter if it came from a backlight or reflection, the electromagnetic waves are still electromagnetic waves. If the color spectrum is unpleasant, it's possible to use Night Shift or other features to shift the spectrum. If the intensity is unpleasant, just turn down the brightness.

comment 8y ago · link · parent

> It turns out that staring at back-lit computer monitors for 40+ hours a week might not be the best thing for you.

Source? Light is still hitting your retinas, whether it comes from reflection or from a backlight.

I really enjoy E-Ink displays, but not because of perceived health benefits from reflected light. I enjoy how readable they are under sunlight, how they consume zero energy to show a static image, and how this enables them to always show content even if the device has no power.

It's simply not necessary to use unsourced health claims to justify a great technology like E-Ink.

comment 8y ago · link · parent

Sounds about right. Even if we imagine that developers adopt this technology for some reason, what's to stop them from also keeping copies of any data they are granted access to? or just using it for auth and giving you no direct access to your data? It all seems too idealistic, since developers derive little benefit from the added complexity.

comment 8y ago · link · parent

At a certain point, bookmarks are just better. I also think at 60 open tabs, I'm not convinced the content was that interesting if you're never getting around to reading it.

Regardless, I have been mostly Firefox for a couple of years, with a little Safari thrown in, and I've been happy.

comment 8y ago · link · parent

> I'd expect this code to at least run

It still compiles the code to JavaScript even with the error, and you can still run it, which makes this more of a warning than anything else.

That warning based on type inference seems like a positive feature... because there's no situation in which that code is right. You can add `: any` to the function declaration and it will stop complaining, but I wouldn't contend that the language is not dynamic because it encourages you not to make a mistake.

comment 8y ago · link · parent

If you don't specify types at all, is that really opting out? This is valid TypeScript code:

  function foo(a, b) {
      if (a != 3) {
          return a + b
      } else {
          return "hello"
      }
  }
  
  console.log(foo(2, 5)); //prints 7
  
  console.log(foo(3, 5)); //prints "hello"
You can compile it and run it on the typescript playground: https://www.typescriptlang.org/play/

This is not like C#, where would be required to specify that every type is "dynamic". Here, you can optionally choose to specify that the types are "Any", but it's still gradual typing.

EDIT: you said "implicit opt-out"... which sounds like a synonym for "opt-in". I don't think "implicit opt-out" is a term.

comment 8y ago · link · parent

From what I understand, everywhere that you would need to write a type, TypeScript allows you to either not declare a type at all, or put "Any" and avoid declaring a specific type. I think you can even go so far as to rename a ".js" file as ".ts", and it's fine, which is a great example of "gradual typing", and I think this all makes TypeScript a dynamic language.

comment 8y ago · link · parent

TypeScript and Python 3 support gradual typing, so code can be optionally annotated with types. This makes refactoring easier, while still benefitting from how you can quickly sketch out new code dynamically and only annotate it once things start to solidify.

Personally, I'm a fan of very strong, static type systems, so I would prefer to annotate all the things, but I understand other people have different views.

comment 8y ago · link · parent

for the new neural engine?

comment 8y ago · link · parent

The XR has the same CPU/GPU/NE as the XS, and it's advertised as such from what I recall. It definitely should be there.

comment 8y ago · link · parent

Are there any apps I can use that would let me see the difference in performance? Or even just use the Neural Engine for anything outside of the built-in camera app and the Measure app.

EDIT: I see that Heartbeat is mentioned in the article, but I'm also still wondering what else is out there.

comment 8y ago · link · parent

pgFormatter formats

  SELECT 1, 2
as

  SELECT
      1,
      2
which is one of the core complaints the article addresses.
1
6263646566