Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
fritz
Jul 26, 2003

extheat 2 hours ago | root | parent | prev | next [–]

If rand() gives you trouble who knows what else in the C library may give you more trouble. It’s not that hard to copy paste or even write your own implementation for basic parts of the C API, minus the allocation related things. For me I’ve found GitHub Copilot great for filling in basic stubs for C stdlib APIs.
reply

Adbot
ADBOT LOVES YOU

Chris Knight
Jun 5, 2002

me @ ur posts


Fun Shoe

MrQueasy posted:

It’s a fair cop.
tugs at collar slashdottaly

ultrafilter
Aug 23, 2007

It's okay if you have any questions.


fritz posted:

extheat 2 hours ago | root | parent | prev | next [–]

If rand() gives you trouble who knows what else in the C library may give you more trouble. It’s not that hard to copy paste or even write your own implementation for basic parts of the C API, minus the allocation related things. For me I’ve found GitHub Copilot great for filling in basic stubs for C stdlib APIs.
reply

Writing a random number generator is a valuable exercise but writing a random number generator anyone would ever use is a different thing entirely.

BobHoward
Feb 13, 2012

The only thing white people deserve is a bullet to their empty skull

ultrafilter posted:

Writing a random number generator is a valuable exercise but writing a random number generator anyone wouldshould ever use is a different thing entirely.

i regret to inform you that people absolutely will use the worst RNG possible, especially when it is one they wrote

raminasi
Jan 25, 2005

a last drink with no ice

Subjunctive posted:

Warp is a closed-source, commercial project so I don’t think they’re looking to attract contributors. it’s just brand halo poo poo

i got a recruitment pitch from them that was basically just “it’s a terminal! in rust!

mystes
May 31, 2006

It's terminal rust

Plorkyeran
Mar 22, 2007

To Escape The Shackles Of The Old Forums, We Must Reject The Tribal Negativity He Endorsed

BobHoward posted:

i regret to inform you that people absolutely will use the worst RNG possible, especially when it is one they wrote

the good news is that most people are incapable of writing a rng worse than msvc's implementation of rand() so if those are the two options you're not really any worse off

hobbesmaster
Jan 28, 2008

I love that fixing msvc’s rand() would break so many things

Chris Knight
Jun 5, 2002

me @ ur posts


Fun Shoe
rand(paul)

tak
Jan 31, 2003

lol demowned
Grimey Drawer

hobbesmaster posted:

it’s still perfectly reasonable short term right?

If you actually need an anti inflammatory maybe, but for pain relief acetaminophen

Doc Hawkins
Jun 15, 2010

Dashing? But I'm not even moving!


i'm confused how a terminal emulator is a business that can afford a recruitmement budget

4lokos basilisk
Jul 17, 2008


Doc Hawkins posted:

i'm confused how a terminal emulator is a business that can afford a recruitmement budget

it has a keylogger built in that phones home for free tier

alexandriao
Jul 20, 2019


Thats perfectly fine tho because 99% of rand implementations aren't for cryptographic purposes

lobsterminator
Oct 16, 2012




When you program for the Commodore 64 you can use the noise channel in the sound chip to easily grab random values.

ultrafilter
Aug 23, 2007

It's okay if you have any questions.


alexandriao posted:

Thats perfectly fine tho because 99% of rand implementations aren't for cryptographic purposes

There are degrees of quality of random number generators and "not suitable for cryptographic purposes" is far from the worst you can get.

KirbyKhan
Mar 20, 2009



Soiled Meat
I need an RNG for my blackjack game that always gives the dealer a blackjack when the player splits into two hands of 20

e-dt
Sep 16, 2019

quote:

quote:

toomuchtodo 12 hours ago | parent | context | favorite | on: Ask HN: What are the next internet infra problems?

Cheap reliable last mile internet. The core and edge is solved.

Around 37 percent of the world's population (2.9 billion people) have never used the Internet (1 in 3 people), per the UN’s 2021 report on the topic.

https://www.itu.int/en/mediacentre/Pages/PR-2021-11-29-Facts...
adrianwaj 10 hours ago | parent | context | on: Ask HN: What are the next internet infra problems?

That's important for poverty-stricken people (and slaves) to be able to accept crypto donations and payments directly... but what if it becomes a scam?

Even homeless people in the west should be able to get money that way.

So an .eth domain for every person?

Zamujasa
Oct 27, 2010



Bread Liar

KirbyKhan posted:

I need an RNG for my blackjack game that always gives the dealer a blackjack when the player splits into two hands of 20

there was an old online casino that had such a wonderful implementation of blackjack that it violated rules constantly and would often deal multiple aces of diamonds in a row

unfortunately finding it again is nigh impossible and it doesn't help that at least one website that would ordinarily have lists of hosed up online casinos has a bunch of broken links that go to the wrong pages

fritz
Jul 26, 2003

hans1729 2 hours ago | parent | next [–]

>I would like to say that we can teach kids to have a healthy relationship with the internet and social media but sites like TicTok are engineered to be as addictive as possible so that would be naďve of me to say.
I don't think so. Don't underestimate the intelligence of kids. If your kid actually understands the way dopamine works (on a sufficient level), they will cultivate their own way of attention-management. That's perfectly doable, kids just soak up knowledge. They have to learn it anyway, so the later you start, the worse the consequences of both social isolation and bad usage-culture will be.
/edit:
to add to my original point, when your kids decide for themselves that they want something, and they feel that you are unfairly restricting their access to it, the consequence will be that they demonize you. Where that leads, for them, for their relationship with you, for the other points you're trying to get across, is never a good place. Be very careful about it.
reply

Analytic Engine
May 18, 2009

not the analytical engine

fritz posted:

hans1729 2 hours ago | parent | next [–]

>I would like to say that we can teach kids to have a healthy relationship with the internet and social media but sites like TicTok are engineered to be as addictive as possible so that would be naďve of me to say.
I don't think so. Don't underestimate the intelligence of kids. If your kid actually understands the way dopamine works (on a sufficient level), they will cultivate their own way of attention-management. That's perfectly doable, kids just soak up knowledge. They have to learn it anyway, so the later you start, the worse the consequences of both social isolation and bad usage-culture will be.
/edit:
to add to my original point, when your kids decide for themselves that they want something, and they feel that you are unfairly restricting their access to it, the consequence will be that they demonize you. Where that leads, for them, for their relationship with you, for the other points you're trying to get across, is never a good place. Be very careful about it.
reply

"I am an only child with parents that didn't use the phoneline"

mystes
May 31, 2006

fritz posted:

hans1729 2 hours ago | parent | next [–]

>I would like to say that we can teach kids to have a healthy relationship with the internet and social media but sites like TicTok are engineered to be as addictive as possible so that would be naïve of me to say.
I don't think so. Don't underestimate the intelligence of kids. If your kid actually understands the way dopamine works (on a sufficient level), they will cultivate their own way of attention-management. That's perfectly doable, kids just soak up knowledge. They have to learn it anyway, so the later you start, the worse the consequences of both social isolation and bad usage-culture will be.
/edit:
to add to my original point, when your kids decide for themselves that they want something, and they feel that you are unfairly restricting their access to it, the consequence will be that they demonize you. Where that leads, for them, for their relationship with you, for the other points you're trying to get across, is never a good place. Be very careful about it.
reply
Lol

MrQueasy
Nov 15, 2005

Probiot-ICK
chrismeller 3 hours ago | parent | context | favorite | on: Are film critics losing sync with audiences?

So the main takeaway here for me is that more low budget (“indie” or “film festival”, my terms) movies are getting to theaters and being loved by critics, but people hate them.

My wife and I have a rule in our household. Anything that was awarded at a film festival (Sundance in particular) I will not watch with her. This analysis backs up the feelings I’ve had that lead to that agreement…

Any movie that does well with critics or at a film festival has “a strong message” or “teaches us something”. That’s all well and good, but I don’t need these expensive (€20/ticket) modern fables. I’m paying to be entertained, not to be lectured to.



chrismeller 32 minutes ago | prev | next [–]

To cover the comments, particularly the guy whose comment is dead, yes, raunchy comedies. Also 90% of the Blockbuster movies.

Perhaps I’d have done better if I said I don’t like being preached at.

For an example, Juno: Yes, I get it, unwed mothers are bad. Should I watch a Lifetime special about it just so I can cry about how horrible things are?

fritz
Jul 26, 2003


same dude:

chrismeller 3 days ago | parent | context | prev | next [–] | on: New pill bottles for shaky hands will help people ...

While I absolutely approve of this, I’m constantly amazed at how far we’re (and mainly the US) is willing to go for ridiculously small percentages of the population. Parkinson’s is estimated to be about 1% of the US, but now every pharmacy in the country needs to buy and stock these bottles?
Every time I’ve been to a pharmacy in the US in the last 20 years, they’ve had an option for “arthritis” bottles - something that isn’t child-proof, has a big top, etc. That is not going to help you dispense the medication, but it seems obvious it would help someone with Parkinson’s open it.
In Europe everything (literally everything) comes in a box in blister packs. I can’t imagine trying to open those with Parkinson’s.
reply



chrismeller 77 days ago | parent | context | prev | next [–] | on: Ask HN: Who has moved from the U.S. to Europe?

- Estonia
- Pay and all the amenities of home, particularly in regard to food (both fast and cooking at home varieties)
- Well, a wife, but everything else is in the negative
Very short version of a long story: Am American. Company got bought, I was laid off. Travelled for a while. Friend eventually got me to move to Estonia to work. Hated it immediately. Made plans to move back, met a girl, stayed for said girl because US immigration is excruciating.
Now you may be asking what I disliked about it. I’ll try to highlight the top points in roughly descending order:
1- Pay in Europe sucks by comparison with the US, and I’m not talking net pay after you pay for your free healthcare, I’m talking gross… it just sucks. I would say take what you made in the US and halve it, at least. In Estonia a Senior Dev salary is about what a teacher makes in the US somewhere in the south (not a high income area). Living expenses are not necessarily commiserate with the pay, especially with my €850 power bill last month.
2- The weather is abysmal. No one on either continent seems to realize how far north Europe is vs. the US (thanks Mercator!). In Estonia the sun doesn’t actually set in the summer, and in winter you get sun from about 9am to 3:30pm. Both HUGELY messed with me (and still do 4.5 years later).
3- There is a huge language barrier. Even in Tallinn, and places you would kind of expect to be better about it, like a big pharmacy chain, you’ll routinely (read: daily) have issues if you don’t speak Estonian or Russian. I’ve also had people just get annoyed and throw up their hands and stop helping me if I speak English. They calm down and come back… most of the time. I’ve even considered moving to Helsinki (80km north) just to live in a society that doesn’t glare when you say “hello”.
4- The free public healthcare is worthless if you don’t speak Estonian or Russian. There is one GP that every expat I know goes to in Tallinn because he speaks English very well, but if you need anything else you’re screwed and will probably just pay out of pocket to see a private specialist. Private health insurance is a growing trend for this reason, but if your company is largely Estonian (or Estonian run) no one will ever think it’s worth spending money on. Even the Minister of Health recently said they’re working on the issue but that the “ultimate solution is to learn Estonian”.
5- People aren’t friendly. It’s (somewhat) true that Estonians “warm up” once they get to know you, but neither friends nor strangers will ever come close to what you’d be familiar with in any of the English speaking world. I even actively avoid making eye contact with people now - just walk with your head down. At a bar you never talk to the drunk stranger next to you.
6- There is a definite racism and xenophobia issue here. If the US had been conquered as many times and by as many different groups as Estonia I’m sure we’d have the same problem, but I honestly expected better for an EU country. Even if you’re as pasty white as they are, as soon as you challenge or complain about something, out comes the “Estonia is perfect, leave already” attitude. As with many places in the world, you also run the risk of paying the “foreigner tax” - knowing that you’re a foreigner they’ll just assume you don’t know how much something costs and will just blindly pay whatever they say. Complaining will likely get you a string of Estonian or Russian you don’t understand and potentially the person to just leave.
7- Service in general is awful. I don’t know if it’s because they don’t work for tips or because employment laws make it almost impossible to fire someone or what, but I hope your food comes out right the first time and you don’t finish your drink because chances are good you won’t see your server again until they want to be paid.
8- Kind of related to that, and something I have trouble explaining that should really be higher on this list… no one seems to care about their jobs in the same way they would in the US. I don’t mean as far as keeping the job, I mean doing it. Kind of an “I’ll do my job, but I’m not going to work my rear end off or do anything more than absolutely required” kind of apathy. It doesn’t matter if the company is trying to win a new client or is afraid they’re going to lose one, none of the employees seem to care either way, like they don’t realize or care if their jobs might disappear as a result.
9- For some reason every employer wants to give you a stupid cheap backpack. I’ve already got an expensive one, how about just giving me a bonus of whatever you’d have spent on it instead?

Mr.Radar
Nov 5, 2005

You guys aren't going to believe this, but that guy is our games teacher.
ls15 48 minutes ago | parent | context | flag | favorite | on: Wikipedia RFC to stop accepting cryptocurrencies p...

> This 100% reminds me of the almost cultist like extremely negative reaction to anything related to crypto on some parts of twitter.
This could as well be orchestrated by fiat enthusiasts.

reply

Neon Noodle
Nov 11, 2016

there's nothing wrong here in montana
Drake no: person who loves money
Drake yes: fiat enthusiast

Sapozhnik
Jan 2, 2005

Nap Ghost
they have cute designs and tend to be compact enough to easily navigate through and park on old european city streets

wouldn't go so far as to call myself an enthusiast though

Mr.Radar
Nov 5, 2005

You guys aren't going to believe this, but that guy is our games teacher.
radu_floricica 1 hour ago | root | parent | prev | next [–]

Some private enterprises are treated like government services and regulated as such. Utilities, for example. I doubt there are many countries where the electricity company can fire a paying client. The key is not who manages or owns the business, but whether it's a commons platform - something needed to function in society.
So yeah, there's a pretty strong case to be made that certain internet companies are like that. Can you survive without social media? Sure, but you can also survive without sewer. It's just a lot harder to live a normal life.

reply


jliptzin 22 minutes ago | root | parent | prev | next [–]

Comparing social media to sewage is appropriate because they are both filled with poo poo, not because they are both essential to living a normal life.

reply

:iceburn:

Analytic Engine
May 18, 2009

not the analytical engine
https://twitter.com/leyawn/status/1514297664745230349?s=21&t=iECapYNvgJCG5fA1F7JxiA

Mr.Radar
Nov 5, 2005

You guys aren't going to believe this, but that guy is our games teacher.
this is currently pinned to the top of the Musk Twitter buyout thread (I guess this is what happens when your site is written in a bespoke Lisp dialect):

dang 1 hour ago | parent | context | flag | favorite | on: Elon Musk makes $43B unsolicited bid to take Twitt...

All: speech here isn't very free when the server can't stay up, and it's smoking right now, for obvious reasons.
I'm going to prune some of the top-heavy subthreads and possibly restrict the page size a bit. There are already over 1200 comments in this thread, and if you want to read them all you're going to have to click "More" at the bottom of each page, or go like this:

https://news.ycombinator.com/item?id=31025061&p=2

https://news.ycombinator.com/item?id=31025061&p=3

...and so on. Sorry everyone! (Yes, fixes are coming and yes, it's all very slow.)

Edit: also, if some of you would log out for the day, that would ease the load considerably. (I hate to ask that, but it's true. Make sure you haven't lost your password!)

https://twitter.com/dril/status/247222360309121024

fritz
Jul 26, 2003

Mr.Radar posted:

this is currently pinned to the top of the Musk Twitter buyout thread (I guess this is what happens when your site is written in a bespoke Lisp dialect):

dang 1 hour ago | parent | context | flag | favorite | on: Elon Musk makes $43B unsolicited bid to take Twitt...

All: speech here isn't very free when the server can't stay up, and it's smoking right now, for obvious reasons.
I'm going to prune some of the top-heavy subthreads and possibly restrict the page size a bit. There are already over 1200 comments in this thread, and if you want to read them all you're going to have to click "More" at the bottom of each page, or go like this:

https://news.ycombinator.com/item?id=31025061&p=2

https://news.ycombinator.com/item?id=31025061&p=3

...and so on. Sorry everyone! (Yes, fixes are coming and yes, it's all very slow.)

Edit: also, if some of you would log out for the day, that would ease the load considerably. (I hate to ask that, but it's true. Make sure you haven't lost your password!)

https://twitter.com/dril/status/247222360309121024

as they like to say, 'do things that don't scale'

ultrafilter
Aug 23, 2007

It's okay if you have any questions.


The Something Awful Forums > Discussion > Serious Hardware/Software Crap > YOSPOS > hn thread: i will never log off

mystes
May 31, 2006

eganist 16 hours ago | next [–]

Down from a jury verdict of $136.9m, to be clear, on grounds that the initial judgment was excessive.

Not sure I agree with that conclusion and would prefer to see companies permitting systemic racism absolutely thrashed in civil court not only to make an example but to make the cost of garbage treatment of workers higher than the cost of changing course. 15 million, even once per year, isn't a disincentive because it easily costs more than that to change ways of working at any company.

reply

Thorentis 14 hours ago | parent | prev | next [–]

The punishment must be proportionate to the crime. Companies pay less in compensation when a worker has serious workplace injuries resulting in disability than this. I see no justification in "racism" carrying a higher punishment than that.

reply


andrewclunn 15 hours ago | parent | prev | next [–]

Make it lucrative enough to be a victim and suddenly people will start wanting to be victimized (or at least pretend to be). Your comment speaks of religious fervor, and that righteous hatred will only make heretics and nonbelievers. Incentives cut all ways.

reply

Xarn
Jun 26, 2015

fritz posted:

same dude:


chrismeller 77 days ago | parent | context | prev | next [–] | on: Ask HN: Who has moved from the U.S. to Europe?

especially with my €850 power bill last month.

Found the bitcoiner. I can't imagine getting that power bill otherwise. I also love that after almost 5 years and finding a local GF, he still doesn't speak the language.

ploots
Mar 19, 2010
oxff 1 hour ago | parent | prev | next [–]

The issue with Kernel development is that it's a dying profession. Nobody is interested in it. That's why there's an attempt with sexy new language, to bring more developers to work on it.

Probably less than 30 people in the world understand the thing as a holistic entity. From evolutionary terms, there's a giant risk of losing relevant technical knowledge to keep it up in the future.

I do not support adding it to the Kernel, I think we should just throw away the kernel entirely, but I understand why they're looking at Rust.

Progressive JPEG
Feb 19, 2003

Xarn posted:

Found the bitcoiner. I can't imagine getting that power bill otherwise. I also love that after almost 5 years and finding a local GF, he still doesn't speak the language.

to be fair estonian/finnish are pretty hard to learn, tho yeah should've at least been able to get through a retail transaction by now

4lokos basilisk
Jul 17, 2008


Xarn posted:

Found the bitcoiner. I can't imagine getting that power bill otherwise. I also love that after almost 5 years and finding a local GF, he still doesn't speak the language.

its not bitcoins, what happened in estonia this winter was a little bit like texas - a LOT of people got bitten by being on a spot price plan

idk exactly whats the root cause but regular energy prices went up like 2x even here in paris. it’s probably to do with russia messing with natgas price even before they did the invasion

re: that guys other complaints about estonia. he’s definitely right about people being rude and not accepting foreigners and having a “go home if you don’t like it” vibe sometimes
otoh yeah you will pay a premium in any country if you don’t speak the local languages
i am willing to bet his take home is still pretty good considering that healthcare is free :)

Qwertycoatl
Dec 31, 2008

quote:

memish 42 minutes ago | next [–]

Some points from the All in Pod.

1. The Twitter board of directors has become a status thing. It's like a country club. They don't have real skin in the game; they don't own much stock. They're not aligned with the shareholders. It's about status and cultural power.

2. Why should we believe that the company will become more valuable when the stock price is where it was way back in December 2013? Compare to how the S&P or Tesla did during this period. Twitter has languished for a long time.

3. They should put it to shareholder vote.

4. One AI engineer from Tesla could solve Twitter's bot and spam problem.

5. The elites have somehow inverted history so they now believe that it is not censorship that is the favored tool of fascists and authoritarians, even though every fascist and despot in history used censorship to maintain power, but instead believe free speech, free discourse, and free thought are the instruments of repression.

also, someone just woke up from a coma

quote:


idiotsecant 12 minutes ago | root | parent | prev | next [–]

This is the last place I would expect to see naive hero worship of Tesla's autopilot software, of all things.

Qwertycoatl fucked around with this message at 06:58 on Apr 16, 2022

Qtotonibudinibudet
Nov 7, 2011



Omich poluyobok, skazhi ty narkoman? ya prosto tozhe gde to tam zhivu, mogli by vmeste uyobyvat' narkotiki
> 1. The Twitter board of directors has become a status thing. It's like a country club.

as compared to most corporate boards, which are filled with narrowly-focused captains of industry and not the same people who are on other corporate boards by virtue of being rich and friends with other rich people at an irl country club

4lokos basilisk
Jul 17, 2008


CMYK BLYAT! posted:

> 1. The Twitter board of directors has become a status thing. It's like a country club.

as compared to most corporate boards, which are filled with narrowly-focused captains of industry and not the same people who are on other corporate boards by virtue of being rich and friends with other rich people at an irl country club

yeah isnt the point of a board just to keep the board members investment in the company safe from incompetent c levels while giving the impression of leading the company and doing due diligence or something

i swear the hn method of thought is just to start with how something is/appears to be, and the retconning an explanation that falls apart at the slightest introspection. but since no hn poster actually is capable of such introspection, the cycle continues unabated

Adbot
ADBOT LOVES YOU

rjmccall
Sep 7, 2007

no worries friend
Fun Shoe
giving representation on the board is also a way of codifying strategic alliances with other companies or acknowledging particularly important investors. and a director who casually suggests to the ceo when they get together for lunch that they’d be interested in knowing how the company is addressing such-and-such issue is certainly going to get some attention — well, at least from typical ceos, maybe not from elon musk. but yeah, boards of directors are not deeply rigorous deliberative bodies, forever challenging the company’s executives to continually justify and re-evaluate their corporate strategy. it’s all very cozy until the company is very unambiguously failing, and then typically a whole bunch of people get quietly retired off the board

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply