HN user

hmmdar

70 karma
Posts0
Comments17
View on HN
No posts found.

I don't think discord is a valid replacement. One of the best parts of reddit was the easily browsable/searchable Forum like threading. Where there are communities for a given theme, and threads branching off of that group. Discord is great for realtime chat, but a significant pain for async conversations. In general for information access I personally don't like to search through chats because the threading is too shallow, and conversations are had at the root, aka group level.

I found this a good review of the physical and chemical impact quitting marijuana. https://youtu.be/7u_cm5b1s7Y

I'd argue that the chemical withdrawal effects of marijuana, are nothing compared to habitual smoking, alcohol or other "hard" drug use. But there are still some chemical withdrawal effects.

Personally I've had Minor irritability after not having an edible for a few days if I've been consistently having them nearly daily for few days. But I've also realized this, and moderate use more to only once or twice a week, and only 5-10mg at a time. I've grown to like the feel of 5mg in the evening overall. Accounting for the blah feeling the next morning/day.

I recently had a similar experience. I purchased a bag of citric acid, and it was boldly labeled as non-GMO and "approved for use with organic food".

The only time `IsSet` would be false is when `NewOption` was not used to initialize the value.

e.g.

  var o Option[int32]
or could have `None` helper
  func None[T any]() Option[T] { return Option[T]{} }

  o := None[int32]()

Another way to do `Option` without pointers could be similar to the following with a struct with two members.

  type Option[T any] struct {
      v T
      isSet bool
  }
  
  func NewOption[T any](v T) Option[T] {
      return Option[T]{
          v: v,
          isSet: true,
      }
  }
  
  func (o Option[T]) Get() (v T) {
      if !o.isSet {
          return v
      }
      return o.v
  }
  
  func (o Option[T]) IsSet() bool { return o.isSet }

With this pattern you're able to use `Option` as a value without pointers.
  var o Option[int32]
  
  o = NewOption(int32(1))
  
  fmt.Println("value:", o.Get())
  fmt.Println("is set:", o.IsSet())
Alternative separate `Get` and `IsSet` methods, is to combine them into one, similar to map look up pattern.
  func (o Option[T]) Get() (v T, isSet bool) {
      if !o.isSet {
          return v, false
      }
      return o.v, true
  }
  
  var o Options[int32]
  v, ok := o.Get() // zero, false
  
  o = NewOption(int32(1))
  v, ok = o.Get() // 1, true

Have you considered enabling parallel tests for that package? It let's test functions run in parallel with each other. Might address some of the issue with the performance.

Na that's a bunch of BS Amazon came up with to validate their position. There is nothing stopping Amazon from putting Chromecast app support other than Amazon. The only thing I can guess is Amazon wanted chromecast to enable support for their player format and chromecast didnt'.

I've been at Amazon for a bit over 5 years with 12 years total. Joined with about 7 years of prior experience. From the other post I see I did a very poor job of negotiating when I first joined with my experience. I've always saved the stock and considered it more retirement savings than spending cash.

Hired: 2011

- Level: SDE I (4)

- Location: San Francisco

- Salary: $96k base, $20k bonus, relocation, ~160 stock over 4 years.

- Average yearly total comp: ~ $150k

Promoted: 2013

- Level: SDE II (5)

- Location: San Francisco

- Salary: $110k base, 168 stock

- Average yearly total comp: ~ $170k

Relocated: 2015

- Level: SDE II (5)

- Location: Seattle

- Salary: $125 base, ~160 stock, relocation

- Average yearly total comp: ~ $190k

Not sure what input I provided wrong, or if its just the services Google is partnering with, but all the quotes provided are 2-3 times more than what I pay now.

http://www.amazon.com/dp/0393317552 Guns, Germs, and Steel by Jared M. Diamond does a great job of explaining this in detail, and not just in the North Americas, but examples throughout the world.

It boils down to a few basic ideas

1: Native american's had no real concept of quarantine. If someone was sick, the extended family would take care of them. In turn the extend family would become infected, and infect the rest of the village/tribe as they travelled.

2: Europeans lived in cities with much greater population densities. Their immune systems were much more accustomed to dealing with a large variety of infectious agents. Whereas the native americans live is small homogenous villages. With very little exposure to outside influences, other than other tribes/villages.

Looks like this issue is pervasive in other languages as well. Out of curiosity ran the same test in Javascript and received the same result.

  s = "We went to eat at multiple cafe\u0301"
  "We went to eat at multiple café"
  s.replace('cafe', 'cafes');
  "We went to eat at multiple cafeś"
Interesting thing is when the text is copy-pasted backspacing first deletes the accent. At least in chrome.