This figure doesn’t really pass the smell test, given that it’s been repeated to death that the CEO makes $193 million, with the vast majority being stocks. Can you source the claim?
As almost a cruel joke, we’ve managed to breed out satiation of some dogs, leading to them always being motivated by food, since they are always hungry.
The array is probably fine. It’s not going to be particularly large and lookups are O(1)
It’s a bit weird to me that you’re using the char pointers as indices. I would probably use actual indices and spend the miniscule amount of additional stack data to improve the clarity of the code
You could save on some indentation by returning early instead of nesting the for-loop inside the first if-statement
Is the call to the lookup-table really safe? Maybe checking that the token from RNA is within the bounds is the way to go?
The only thing I would even remotely care about with regards to performance is the malloc, and that’s not that big of a deal anyway unless the length of dna is really large. Streaming the result or overwriting the presumably already malloc’d input would be the only thing I would touch, and only if I could prove that it improves performance in practice.
(added in edit): if you can guarantee that the input is well formed, you can omit the bounds check and save some effort there.
A switch statement is probably a decent option here, yeah. You trade off a little bit of memory for what might be a few more instructions executing the switch statement, unless the compiler picks up on it and optimizes it. Maybe check godbolt for what gets generated in practice if you really care about it.
I just recently learned that this is a thing that exists. I’ve had a couple audiology tests that use these weird headphones with firm rubber balls where normally expect to see the speakers; the rubber balls sit on your temporal bone, and there’s a metal bar the wraps around your head connecting them and giving them pressure...
Not great, but they are not headphones I use for audiophile-purposes
How’s the sound leak?
No idea tbh - a bit more than in-ears/over-ears I guess?
What kind of music do you use it to listen to?
Hardly any. If I want music, I have other hardware for that. My primary use for these headphones is to listen to podcasts while exercising
Are they comfortable to wear? For how long?
You don’t really notice them. I use them for hours on end for long cycling trips and they work well for that
Do you get any skin irritation or even breakdown where it contacts your temple?
I have not noticed any
Does the hook part wrap around your ears without any pressure points?
Yes
Does the behind-the-head band bounce around when you’re walking or running?
Not noticably
How much space is between the band and the back of your head/neck?
A few centimeters, less than five.
How’s the battery life?
A full charge maybe gets you 8 hours I think? I never let my devices go that low, though
How long have you had it?
2 years
When do you use it?
While exercising to listen to podcasts
Do they stay put, or do you need to reposition them frequently?
They stay where they are. It can be annoying to put on/take off shirts though as they can easily get stuck in them
Anything else to comment on?
I really enjoy my headphones, but they are most certainly not good for music imo. Still, it makes my rotation, which is mostly these plus a pair of buds that go in my pocket for all other listening purposes
I would like to avoid exposing them to the cold/wind but I am concerned that they’d get crushed bungee’d into a basket and would not fit into my backpack.
Really just curious what folks out there deem valuable enough to give money for monthly or annually. As a software engineer I have quite a few that keep me productive and I’ll list a few:...
Jurassic Park for me. I had an amazing JP jumper when I was like…maybe 6. It was far too big for me but I loved dinosaurs. Naturally this meant I wanted to watch the film because…well I’m 6 and it’s got dinosaurs....
The French National Assembly on Thursday unanimously adopted a bill aimed at restricting the manufacture and sale of products containing per- and polyfluoroalkyl substances — also known as PFAS or “forever chemicals.” The MPs, backed by the government, voted to exclude kitchen utensils from the scope of the text....
You squash so all your gross “isort” “forgot to commit this file” “WIP but I’m getting lunch” commits can be cleaned up
The next step on the Git-journey is to use interactive rebasing in order to never push these commits in the first place and maintain a clean history to be consumed by the code reviewer.
Squashing is still nice in order to have a one-to-one relationship between commits on the main branch to pull requests merged, imo.
Not to say that it’s a sufficient penalty for the C-suite, but their compensation packages generally consist of stock options in the company, meaning that the share price decline following unexpected negative events translate into a large pay cut for them.
The root cause is the supply not keeping up with demand. Any proposed solution that does not include building like mad is ultimately going to fall short.
I was under the impression that Witcher is to be interpreted as the male form of Witch - a Witchman, basically. I think they even call Geralt a Witchman a few times in the games, come to think of it.
I haven't seen this posted yet. All of reddit's C-levels sold $41.245 million worth of stock in the first week of trading. (www.investors.com)
If that’s not the textbook image of rats leaving a sinking ship, I don’t know what is. “Fuck you. Got mine!”...
Study: Social media don't displace in-person hangouts for teens (reason.com)
Why you should spend more money on underwear (wapo.st)
Mischief and chaos (lemmy.world)
Who said that? (lemmy.world)
Is this an efficient version of RNA Transcription in C?
Here’s the program:...
Bone conduction headphones?
I just recently learned that this is a thing that exists. I’ve had a couple audiology tests that use these weird headphones with firm rubber balls where normally expect to see the speakers; the rubber balls sit on your temporal bone, and there’s a metal bar the wraps around your head connecting them and giving them pressure...
It’s too thrilling (lemmy.world)
How do you commute with a bouquet of fresh flowers? 💐
I would like to avoid exposing them to the cold/wind but I am concerned that they’d get crushed bungee’d into a basket and would not fit into my backpack.
Stoltenberg: Sverige behöver satsa mer på infrastruktur (www.svt.se)
Minst väntade fördelen med att gå med i Nato - förbättrade järnvägar?
Dutch police have detained activist Greta Thunberg at a climate demonstration in The Hague (apnews.com)
What web services do you subscribe to?
Really just curious what folks out there deem valuable enough to give money for monthly or annually. As a software engineer I have quite a few that keep me productive and I’ll list a few:...
deleted_by_author
What film did you watch when you were too young, and how did it traumatize you?
Jurassic Park for me. I had an amazing JP jumper when I was like…maybe 6. It was far too big for me but I loved dinosaurs. Naturally this meant I wanted to watch the film because…well I’m 6 and it’s got dinosaurs....
New language (lemmy.world)
Touching fentanyl won’t kill you. Why won’t cops and policymakers get the memo? (www.salon.com)
France votes to ban ‘forever chemicals,’ exempting frying pans (www.politico.eu)
The French National Assembly on Thursday unanimously adopted a bill aimed at restricting the manufacture and sale of products containing per- and polyfluoroalkyl substances — also known as PFAS or “forever chemicals.” The MPs, backed by the government, voted to exclude kitchen utensils from the scope of the text....
Rebase Supremacy (programming.dev)
Intel discloses $7 billion operating loss for chip-making unit. (www.reuters.com)
Fast food, one of the most relentlessly Taylorised processes in all of labour, is going "AI" apparently. Looks like Taco Bell/Pizza Hut's CTO got promptfondled (archive.is)
original: wsj.com/…/taco-bell-and-pizza-hut-are-going-ai-fi…
Salwan Momika, infamous man who burnt Quran in Sweden, ‘found dead in Norway’ (pakobserver.net)
Are ‘mom-and-pop’ investors pricing out first-time homebuyers? (globalnews.ca)
Happy April Fool's here's your System of a Down meme (lemmy.today)
The -er suffix (lemm.ee)
Transcript:...