Hacker Newsnew | past | comments | ask | show | jobs | submit | a_w's commentslogin

I do this often:

```ruby

if (user = User.find_by(email: 'abc@example.com'))

  user.update(status: 'active')
end

```

Is it better to do this instead?

```ruby

user = User.find_by(email: 'abc@example.com')

user.update(status: 'active') if user.present?

```


Morality aside, I was hopping to see a discussion on the legal side of this issue.

1. Doesn't Title VI apply here?

2. Could a company legally fire an employee for practicing their religion/tradition on the weekends, outside of the office grounds?


"No person in the United States shall, on the ground of race, color, or national origin, be excluded from participation in, be denied the benefits of, or be subjected to discrimination under any program or activity receiving federal financial assistance."

Key words: receiving federal financial assistance. It's a private religious school, meaning it is barred from receiving government funding.

If you meant Title VII, that is generally prohibited, but not in the case of religious organizations. Case law has found that they are free to discriminate in their hiring practices (https://constitution.findlaw.com/amendment1/annotation08.htm...). It also doesn't stop a non-religious company from doing so but not disclosing their reason to the terminated employee, which they have no obligation to do in right-to-work jurisdictions.

Furthermore, reservations sit in a gray legal zone where they are considered semi-autonomous sovereign nations. In practice this exempts them from state law, but they are generally subject to federal law.

Observe this comment from the Equal Employment Opportunity Commission website (https://www.eeoc.gov/frequently-asked-questions-about-indian...):

"The EEOC does not have jurisdiction over charges of employment discrimination against federally recognized Tribes if the alleged discrimination is based on race, national origin, sex, color, or religion (under Title VII), disability (under the ADA), or genetic information (under GINA)."


Unfortunately, it doesn't look like Starlink is an option.

https://news.ycombinator.com/item?id=40246021


I have been thinking about that, but I haven't gotten around to researching its availability in the country yet.

I will do some research over the weekend. Thanks for mentioning it!


Thanks for the suggestion! I will look into this.


Thanks!

I will try to download it and send it to him.


I believe he has a laptop with an Intel i5 with integrated graphics.


That is a great suggestion, thank you!

I think he wants to tinker, and learn more about how they work. What I neglected to mention is that he's already learned to program (developing Android apps, and he's also learned Python). He is a very bright and curious kid.


Have him check out:

LLM training in simple, raw C/CUDA

----------------------------------

https://github.com/karpathy/llm.c

It is only 1,000 lines of easy to read C code. There is also Python reference code.


Btw, I support some Kenyan high school students and am looking at supplying a few schools with llamafile+models on flash drives for their computer science curricula.


That's interesting. Could you expand on this a bit more? Which models, and I am curious about how the CS teachers/students will be using this?


I'm reviewing models, at the moment. Model selection will depend greatly on the hardware capabilities at each school. Phi-3 could be a good starting point.

The project is an idea at the moment. My contact in Kenya has direct access to the Principals of the schools that our supported students attend.

My thought is that the teachers would not have to do much. Many of the students already know python and could do self-learning individually or in groups.

A flash drive with llamafile+models and documentation might be all that it would take to get them started - even offline.

Bonus: Using llamafile, the same binary distribution works on MacOS, Linux, and Windows.


Thanks for the detailed response.

I wasn't aware of Phi-3 - I will look into it.


Hmm... Unfortunately the site is infested with spam links - visible with ad blockers turned on.


FYI your ISP might be inserting those spam links since this is unencrypted http. I’m not seeing anything even with blockers turned off.


Replying to sibling comments: The links are there, but are hidden by Javascript. Since I'm on my phone, I didn't look into how.


What's a spam link? I don't see anything unusual. Can you post a screenshot (using imgur or something)?


(replying to myself since I can't edit) In retrospect, I wonder if [the person I'm replying to] was referring to a different link in this thread, such as the rimstar one, which is pretty bad.


Absolutely no spam links visible here. Tried Safari and Brave without ad blockers.


> How can it iterate? How does it test?

Honest/dumb question - does it need to test? In nature mutations don't test - the 'useful' mutations win.

Couldn't a 'super intelligent AI' do the same?


> the 'useful' mutations win.

Thats testing.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: