|
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
|
# ? Apr 9, 2022 16:23 |
|
|
# ? Apr 25, 2024 14:14 |
|
MrQueasy posted:It’s a fair cop.
|
# ? Apr 9, 2022 16:43 |
|
fritz posted:extheat 2 hours ago | root | parent | prev | next [–] Writing a random number generator is a valuable exercise but writing a random number generator anyone would ever use is a different thing entirely.
|
# ? Apr 9, 2022 17:02 |
|
ultrafilter posted:Writing a random number generator is a valuable exercise but writing a random number generator anyone i regret to inform you that people absolutely will use the worst RNG possible, especially when it is one they wrote
|
# ? Apr 9, 2022 20:12 |
|
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!”
|
# ? Apr 9, 2022 21:53 |
|
It's terminal rust
|
# ? Apr 9, 2022 22:15 |
|
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
|
# ? Apr 10, 2022 01:23 |
|
I love that fixing msvc’s rand() would break so many things
|
# ? Apr 10, 2022 01:26 |
|
rand(paul)
|
# ? Apr 10, 2022 01:28 |
|
hobbesmaster posted:it’s still perfectly reasonable short term right? If you actually need an anti inflammatory maybe, but for pain relief acetaminophen
|
# ? Apr 10, 2022 06:42 |
|
i'm confused how a terminal emulator is a business that can afford a recruitmement budget
|
# ? Apr 10, 2022 07:22 |
|
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
|
# ? Apr 10, 2022 07:55 |
|
Thats perfectly fine tho because 99% of rand implementations aren't for cryptographic purposes
|
# ? Apr 10, 2022 08:26 |
|
When you program for the Commodore 64 you can use the noise channel in the sound chip to easily grab random values.
|
# ? Apr 10, 2022 08:29 |
|
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.
|
# ? Apr 10, 2022 15:09 |
|
I need an RNG for my blackjack game that always gives the dealer a blackjack when the player splits into two hands of 20
|
# ? Apr 10, 2022 15:20 |
quote:
|
|
# ? Apr 11, 2022 04:51 |
|
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
|
# ? Apr 11, 2022 09:33 |
|
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
|
# ? Apr 11, 2022 13:20 |
|
fritz posted:hans1729 2 hours ago | parent | next [–] "I am an only child with parents that didn't use the phoneline"
|
# ? Apr 11, 2022 23:02 |
|
fritz posted:hans1729 2 hours ago | parent | next [–]
|
# ? Apr 11, 2022 23:09 |
|
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?
|
# ? Apr 12, 2022 21:40 |
|
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?
|
# ? Apr 13, 2022 15:57 |
|
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
|
# ? Apr 13, 2022 16:17 |
|
Drake no: person who loves money Drake yes: fiat enthusiast
|
# ? Apr 13, 2022 17:07 |
|
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
|
# ? Apr 13, 2022 17:19 |
|
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
|
# ? Apr 14, 2022 14:58 |
|
https://twitter.com/leyawn/status/1514297664745230349?s=21&t=iECapYNvgJCG5fA1F7JxiA
|
# ? Apr 14, 2022 17:04 |
|
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
|
# ? Apr 14, 2022 17:16 |
|
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): as they like to say, 'do things that don't scale'
|
# ? Apr 14, 2022 17:24 |
|
The Something Awful Forums > Discussion > Serious Hardware/Software Crap > YOSPOS > hn thread: i will never log off
|
# ? Apr 14, 2022 17:25 |
|
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
|
# ? Apr 15, 2022 15:04 |
|
fritz posted:same dude: 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.
|
# ? Apr 15, 2022 16:24 |
|
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.
|
# ? Apr 15, 2022 18:39 |
|
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
|
# ? Apr 15, 2022 20:46 |
|
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
|
# ? Apr 15, 2022 22:35 |
|
quote:memish 42 minutes ago | next [–] also, someone just woke up from a coma quote:
Qwertycoatl fucked around with this message at 06:58 on Apr 16, 2022 |
# ? Apr 16, 2022 06:55 |
|
> 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
|
# ? Apr 16, 2022 07:51 |
|
CMYK BLYAT! posted:> 1. The Twitter board of directors has become a status thing. It's like a 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
|
# ? Apr 16, 2022 08:24 |
|
|
# ? Apr 25, 2024 14:14 |
|
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
|
# ? Apr 16, 2022 08:43 |