skysight-inc/HackerNews huggingface dataset:
The array access example shows why this isn't generally possible -- the programmer hasn't written any bounds-checking code or assertions (they just wrote x[y]). Should the compiler emit bounds-checks? If yes, your code is now slower but there isn't an easy way to disable this "feature" (if x is heap-allocated or passed as a pointers, how will the compiler know what kind of bounds check is sufficient?). If no, you have undefined behaviour and crashes.

Even Rust made a mistake with restricting undefined behaviour -- they accidentally allowed creating references to fields in packed structures (resulting in possibly unaligned references which is undefined behaviour in Rust) in safe code. These days you get a warning telling you to use unsafe or copy the value, but they have yet to make it an error. For comparison, C also gives you a warning for the same problem (or an error with -Werror).

I also want to point out that modern compilers have different sanitisers (-fsanitize=...) which cause your program to abort() on memory unsafety or other violations. It's effectively a better valgrind which is compiled into your program.
You can stream the video directly in VLC or Quicktime with https://devstreaming-cdn.apple.com/videos/wwdc/2018/715o2fzp.... Since its an m3u8, it includes multiple audio and subtitle tracks.

VLC: File -> Open Network Stream

Quicktime: File -> Open Location
Not entirely unreasonable but might still not be convenient or desirable for them. Even married couples might not want to share everything with each other.
It is an hour long talk (which I wouldn't have watched). I found js2's explanation very clear and helpful. Please don't be outright dismissive like that.
Quantum Tunneling of Water
Thanks for the feedback! Although edit is something I rarely had the need to use, I agree it’s probably something that i have to add. Love the idea of having a marker to differentiate.

About the spaces, yes you can add an empty line if you want. I’ve used it to add a separator. Sometimes I also just start or end my log with an empty line it also will separate logs if they are logged within five minutes(so they are auto grouped together).

Are you using the iOS version? Would the Discreet Mode be useful to you at all?

Please help spread the word and leave a review in the store if you can. Happy holidays!
Here are some things for you to think about.

First, if you actually want to make an impact here, you shouldn't start off by antagonizing the people you're ostensibly trying to reach. As it stands, your message is probably most helpful to pet industries, since it allows pet owners to dismiss good arguments about the environmental objections to pet ownership by painting them with the anger your post evokes.

So here are some details, if you're interested... your post irrelevant to the topic. You're conflating issues of feral animals with pets. Of course these are related, but you need to work through that if you want to make a cogent point. Using phrases like "like blindly their toy pets" undermines anything else you might say. It hurts any chance you have to make a sincere point since it's indistinguishable from trolling.
Assuming it stands up, SIKE and its variants are probably the leading PQ replacements for Diffie-Hellman and RSA type key exchange primitives. This is because their key sizes are small, not much larger than ECC.
BBC Radio 4 series In Our Time contains talks of many mathematical topics [pdf]
Ask HN: What do you do with your free tier or dirt-cheap VM?
Azpainter: Full color painting software for Unix-like systems
Presumably because then you know that the majority of week 1 is in the new year.
Acutally that process seems more fair to me. Your direct managers only promote you if they don't see you as a threat to themselves.
You are estimating 2 weeks and I am assuming 40hrs/week (modest). Take your hourly rate and multiply it by 80hrs that is your estimated cost to build.

In terms of finding if it is a needed solution, you will need to find your target customer in depth. Your target customer profile should be so narrow that it makes you uncomfortable.
Analyzing a Twitter Takedown Originating in Saudia Arabia
Nearly every piece of networked hardware has critical software running written in C, and the consequences are not nearly as disastrous as reading HN would make us believe.
Host a personal site and use it as an arbitrary shell box from which to test network stuff. I also have it set up so I can route through it when traveling to avoid crappy captive portals and suspect networks.
The exception or the rule?
Yes, I'm coding all day, but I'm very nice to myself and only do it if I feel up for it. I just naturally have 14 hours in me because it's my own business, which was the really surprising thing after seeing how 40 elsewhere made me feel. I think starting this without the skills to fully pull it off was really key. The learning I've had to do along the way has been really rewarding and has really broadened me out as a tech professional, so there has been this constant positive development in myself as I progress, which keeps me getting up ready to try hard again. No job I've ever had motivated me like this. One other thing I think is key is proper goals. I'm not shooting for a "startup", I want a small business. I want to put something out that actually solves a problem, does it well, and make an honest living off it. I don't think I will ever sell my company for 100 million, but I do think I can make a living and offer myself a nicer working life than I've experienced in the corporate world. That is motivation enough for me.
I feel like these are 2 very different languages with different goals. Both are cool, but I don't think it's really fair to compare them.
A List of Software Interview Study Guides from 2019
The arguments sound like they should be about Rust at this point in history.
>an expensive check+branch on each array access

It's not very expensive because the branch will never be taken except when it results in an out of bounds access. When that out of bound access happens you care more about the security benefits than performance.
Not in C you wouldn't.
I built a travel website from scratch
So I looked at one. Brazil has an estimated population of one billion feral dogs according to the WaPo link. A number I find very difficult to believe, yet, if you have a billion of anything the size of a dog, it's pretty much guaranteed to be destructive, no? e.g. rabbits in Australia.

That's quite a bit removed from pets in countries that control strays, have dog wardens and such. Dogs need no commercial pet food, mainly waste from the huge industrial food globals today -- they will almost certainly do better on traditional feeds -- leftovers, bones, etc, without added oils, colour and sugars.

We are the environment, we're part of it, we're also the solution if we want to be. A better place to start might be to try and figure out how to control a feral dog population of a billion...
The reporting on this is very weak. I'm not a genius, but my guess is that cruise ships contribute a tiny proportion to the pollutants people are exposed to on a day to day basis in NYC. Most of the pollution is from automobiles.

The article mentions (and can be entirely summarized by):

> Idling ships release potent diesel air pollution — similar to diesel exhaust from automobiles but in much larger quantities, and laced with harmful metals — that is linked to cancer, asthma, heart disease and other serious health problems.

The author states "in much bigger quantities", which is probably true when you compare a ship to an automobile. However there are no details on the relative quantities involved when you compare all polluters combined. I'm guessing the article would be much less dramatic if you did.
The Pineapple Fund donated $55M in nonprofit Bitcoin grants
i have a pair of TaoTronics TT-BH053, $40 on amazon right now, and they do all the things you list. I'm not sure if I'll ever try the airpods due to price, but these bluetooth earbuds/microphone work fucking amazing. Maybe I need to reseat the buds every once in a while, but that seems like my general bluetooth experience...the protocol kinda sucks, but revolutionary non the less.
This seems to predate FIDO2. https://solokeys.com/ would be a better option if you prefer separate keys for each site (via FIDO2) and open source hardware.
Code is law, so if you want to make law, replace the coders.
Canada has public and private insurance, something like a birth would be covered under public insurance. We just don't think of it as 'insurance' really, since we can't opt out, it comes out of our taxes, and is bought by health Canada rather than a separate plan.

There are also private health insurance plans that cover things not covered by the public insurance, optometrists and dentists fall under that category as do most paramedicals. When Canadians talk about 'health insurance' we're typically referring to the private kind.
> an expensive check+branch on each array access

I'm curious if this still stands in general today, given today's advanced branch predictors and the fact that the CPU tends to be memory-bandwidth-bound, thus you have more "free computation" while waiting for memory (what GPU programmers call compute to memory ratio).
Heap-user-after-free bug in lua-5.3.5
Pleasure boats spewing heavy particulate matter into tenement complexes where asthma occurs at 2x elevated rates, while shore power plugs twist in the wind, unused, and the mayor spends $200mm on political advertising. This reads like scene-setting for a Warhammer 40k battle.
I'm done with Dropbox. I spent years preaching the Dropbox gospel to my family and friends. When Dropbox decided to fuck their free users by limiting them to three devices I got over a dozen pissed-off phonecalls blaming me.
The first one sounds similar to a daily mood log ..
Can you point to a specific text/video of his, that particularly and concisely addresses this point?
Cruise ships ought to be the first candidate for a luxury tax to pay for marine vehicle electrification. There are many candidate battery technologies which seem well-suited for this application.
I thought the OP was a little bit self-undermining, because as the author points out, C feels "close to the metal" but at this point it's actually virtual metal.

But I think "getting close to the lower levels" is still great. The only time I write C-like code is for an Arduino. Turns out that even if your electronics is rusty, you can do some very useful things in the real world by automating a simple motor and a few LEDs. And whenever you have to interface with individually numbered output pins, it feels pretty low level.

tldr: if you want to get close to the metal, it's really useful to start by switching to hardware that facilitates this.
I also took Jae’s cs3157, and I loved every second of it! So glad to see a fellow AP alum on HN ;)
Started writing macOS and iOS apps full-time and launched 4 apps for https://mattebot.co
I wrote some Crystal recently for a hobby project. I have to say, I really like it.

• Nice syntax (mostly just that blocks/procs are easy to use— Ruby-like syntax is nice, but it’s not really that important)

• straight-forward class/object model

• type system is simple but powerful (union types + type inference are a great combo)

• syntax and std lib that enables functional-style programming, but isn’t strictly functional

• Pretty darn fast— compiles to machine code via LLVM, and seems like it’s not far behind C, C++ and Rust in most benchmarks, despite being garbage collected

What other languages offer a similar profile? D? Swift? Kotlin (via LLVM)?
Bought 4 Solos in the first Kickstarter drop, can confirm they work very well.
I imagine those numbers wouldn't be all that reliable for a bunch of reasons - companies would have vested interests in over or under reporting costs for various reasons, technology progressions mean previously expensive to develop drugs may be cheaper if they were to be redeveloped now, and sample size probably wouldn't be large enough for the raw data to be used when bankrolling pharma research ventures.

Edit: I should contextualise this by noting I have basically no experience with pharma so grain of salt blah blah
A great book that goes over the history of protectionism is Bad Samaritans: The Myth of Free Trade and the Secret History of Capitalism by Ha-Joon Chang.
I tried to like mypy, really did. But it always ended up in some kind of circular import tailspin for me. C++ gets around the problem by allowing separation of interface and implementation, Haskell by allowing circular imports. Maybe I missed something, maybe it's fixed by now, but that was my experience a couple of years ago.
Coding in C is like camping. It's fun for a while, but eventually you really miss things like flushing toilets and grocery stores. I like using C, but I get frustrated every time I hit a wall trying to build features from other languages. C is a very WET language.

C is basically it for embedded development though. I've gotten so tired of recompiling and waiting to flash a chip with C, that I've started learning ANTLR and making my own language. The idea is to have a language which runs in a VM written in C, and allows you to easily access code which has to be in C. Sort of like uPython, except it can easily be used on any board with a C compiler with a small amount of setup, and C FFI is a first class citizen. Also coroutines masquerading as first class actors with message passing, since I always end up building that in C anyway.
I like making music with computers.

You can draw the line where you want at a concert.

If you only need some background music for vocals, press play and be done with it.

If you are good enough to play something live while singing, you can gradually change the way.
Critical Citrix NetScaler bug could affect 80k companies
Most calendar systems are complicated because they have conflicting goals. You just can't divide the year into even, intuitive, useful segments and have it line up with one rotation of earth
But doesn't google scan the files and use them for advertising and profiling you? Yeah I know you can encrypt the data, but my point still stands for "regular" users.
"Harvoni costs $94,500 for a 12-week treatment Mavyret costs $39,600 for a 12-week treatment Zepatier costs $54,600 for a 12-week treatment Technivie costs $76,653 for a 12-week treatment"

I assume that your healthcare covers this. Otherwise cheap imports are available from India, e.g. https://roidgear.net/hepatitis-c
Even assembly goes through a number of layers before it’s run. With microcode, virtual memory, and privilege rings there’s a number of things between the code and what it’s running on.
In all health insurance, the healthy are subsidizing the sick. If you have Hep C you are costing your insurer a lot more than you're paying them. If you're a very healthy individual and rarely have any issues, you're overpaying by a lot.
Is the only reason for the iframe so that it is possible to keep a state in the top frame while loading different pages?

Because otherwise - since you use the dev tools to inject the iframe - you don't really need the iframe. You can just run it as a "snippet" in Chromium or from the multi-line-code-editor in Firefox.

Both have the problem that it all has to be a single file. It would be much nicer if one could import modules.
Just do not expect Linux (the kernel) to be rewritten in some other language any time soon.
If you're at a corporation you should figure out which game you're playing. Are you there to "benefit the company" or get "promoted and rewarded"? Make a decision but they are different paths leading different directions.
> The fact that it isn't simple doesn't mean that it doesn't happen.

Never claimed otherwise.

> The body may be fascinating, but it sin't miraculous.

It's not miraculous, nor is it especially fragile. It's the latter implication I was addressing. "Bad things happen" is only half the story. Alone, it represents and encourages a skewed perspective.
Won't the same origin policy kick in the moment I try to read the content of an iframe that isn't on the same origin as my website?

Or is this meant to run on the dev console on the target website? In which case, the iFrame and the Airovic website doesn't make sense (the electron app mentioned does sure, but it doesn't exist)
> Another thing to note is that they are still a substandard user experience compared to 3.5mm jack and decent headphones

Completely disagree with this.
Top IoT Disasters of 2019
I've used wetransfer for files up to 2GB (https://wetransfer.com). If you need more they have a very reasonable $12/mo pro plan that gives up to 20GB per transfer and options for password protection etc.
The importance of understanding and speaking the language of your customers
'Bunker fuel' is the big difference here.
It costs an insane amount of money.

1) there is a large infrastructure around organ donations that needs to be maintained

2) it generally requires the organ (and some times doctor) to be flown on a private jet from where the organ comes from to the person receiving the transplant

3) transplant surgery is a very long procedure requiring multiple specialists

4) recipient is on a lifelong course of drugs (literally like a handful of expensive drugs every day) that suppresses their immune system so the body doesn’t reject the organ

Source: wife is a doctor at research hospital
Have you wondered why, with so many potential customers, no one developed such a drug before if it were cheap and easy?
I LOVE coding in Delphi, really. And I start my new project (document-focused website generator @ https://docxmanager.com) in Delphi, while some people think it's dead :)

And I like C (although I don't code in it), because Delphi/Lazarus can interface with C very easily, you know, there is a lot of C libraries around the world :)
I love coding.
Show HN: Better Visualization for Pandas DataFrames
When you said rusty i thought you meant Rust for a moment :)
This is the only sincere appraisal of the healthcare industry in the US I’ve seen on HN in months. Thank you for your clarity.
Did you ever figure out why you got HepC? Did you conclude that you had it from birth, or did you remember that you stepped on a nail while traveling in Vietnam?
The HN thread mentioned by OP appears to be here[0].

I mean, it's called "Hacker News" but it's been steeped in Silicon Valley startup and corporate culture since it was called "Startup News." I don't think we're all hypocrites, but Hacker News is "serious business" to a lot of people, which means politics, game theory and virtue signaling your hipness and relevance to potential employers and investors.

A lot of people are here for the hustle, and don't consider projects to be worth their time (or even worthy of being posted) unless they seem to be innovative enough to be disruptive. It's unfortunate that Show HN has become Product Hunt lite for a lot of people, but that's probably unavoidable.

[0]https://news.ycombinator.com/item?id=19311066
Three things come to mind. It seems weird though and I would recommend going to a doctor which could help you if there's anything physically wrong. Don't write it off, standing and singing should not be a problem.

Asthma?

There is a trick where you put your index finger on your fore head and thumb and middle finger on each side of the nose. Start by closing the lefy nostril and take a deep breath with the right one. Close the right nostril as well and hold, open the left nostril and breath out. Both inhale and exhale should be slow.

Do an easy task that need some thought and try to talk at the same time, try some different combinations. I can't talk if I do something that takes any form thought. It just could br hard and you need to practice, or you are just incapable and need to work around it instead.
Can Science Rule Out God?
Yes, because that’s where they put trampolines that are generated on the fly. (They don’t need to do this, but that’s how it’s currently implemented.)
Surely, there is room for optimization, but in the alternative case of taxpayer funded healthcare, I'm sure the government is going to ask doctors for justifications for the same reasons insurers do. Someone needs to provide a second opinion on whether or not procedures and medications are appropriate for accountability purposes.
You can with Clang’s blocks extension: https://en.wikipedia.org/wiki/Blocks_(C_language_extension)
The Cost of Stroke
It sounds like your use case is property based testing. Have you tried any of the QuickCheck ports to C++? My favorite is RapidCheck (https://github.com/emil-e/rapidcheck). You define generators for your struct fields and write a pure function to check whether the parsed output conforms to your expectations.
People seem to be designing for mobile devices now rather than for desktops. So they greatly simplify the layout and optimize it for skittles colors and one column display
When you hang yourself with C, at least you're hanging yourself with something real. It's more embarrassing to be done in by a misunderstood abstraction in a high-level language than a concrete memory overwrite in C.
E. Coli Could Produce a Popular Psychedelic for Therapeutic Use
We already have a cheap, plentiful, 100% natural, and green way to do this: plants. Having a dozen plants in every room would go a long way towards fixing the O2/CO2 balance, though the biochemistry and physics may not work out to get us back to square one.
For those who were curious, this is a lecture by Richard Wolff, who Wikipedia describes as an “american Marxist economist”

His recent Twitter posts suggest that economic inequality in the US can be achieved through taxing the rich, which while not an original thought, seems sensible.
I like C myself. I wish though they would extend it with some features similar those available in Delphi/FreePascal language. This will still leave complete low level control and have amazing compile speed and eliminate much need for C++. C++ is heavy beast and while I a have to use it every once in a while I do not particularly enjoy compile time and some other things.

Zig made some moves to that direction but not yet enough and is not really ready for production anyways. Also I did some experiments and initial impression was good but it failed to compile used libs written in C even though it claims to be a C compiler as well.
This might be an indication of the language being close to perfect as it is.
Can I just say "duh?" This has been going on forever, and/or people will do this to comments, or forums.
I am a white, upper/middle class Texan with family who are borderline racists, and you are FLAT WRONG my friend.

I suggest some travel in your near future.
Code generation usually sucks.

A small one-off run under your control is an exception. But people learn to fear the thing, and apply that fear everywhere.
Ask HN: What makes a piece of code enjoyable to read?
We spend so much of our time reading code - it's inescapable. I've become very interested in that experience and that aspect of software creation. In an initial attempt to figure out the right questions to ask, and maybe gain some answers, I'm hoping you'll share your experience.

What makes a piece of code miserable to read?

What makes a piece of code enjoyable to read?

How much of your time is spent reading code?
What do breath mints have to do with anything
My hobby is playing Minecraft and the first suggestion was Minecraft. Well played!