skysight-inc/HackerNews huggingface dataset:
> Can you give a specific example of something you want to do that you can't?

Compose a hash map + linked list into an LRU cache. Rust how has that in standard library, but they had to implement their own linked list for that. In C++ it’s just a few lines of code, because standard maps+lists compose just fine.

Or (more generic example and thus harder to put in the standard library), add an index to existing collection. I have a large collection of some values. I want to build an index allowing to lookup values by some key. Values are not small, can’t afford duplicating them. If you’ll tell “just move values into a hashmap”, my response is “and I also want another, different index of the same set of values by different key”. Again, very easy in C++, encapsulate both the original collection, and a hashmap from key to value pointer.

> use after free is still far too common in C++ code.

In my experience, use after free = instant crash in debug build. Quite easy to detect and fix.
I really appreciated your comment. Lots of wrinkles added to my grey matter!
No, he did not. Not as far as i remember.

I am not British, and i did want to dramatize it a bit. In my defense, words are to convey meaning as much as to describe action. (you don't literally "beat a dead horse" or "fart in your general direction")

EDIT: In bluejekyll's defense, we here are a bit chafed (hehe) by extreme fans of certain programming languages (IMO even some functional programming fans get a tad too.. unrealistic in their talks)
I've seen the results of tents catch on fire - I don't know about the panels in the dome in OP's link, but certain plastics etc can burn extremely quickly. A normal pop-up tent will burn to the ground in a matter of seconds, cocooning anything inside in molten plastic.
I've heard the rumors, but I haven't had a problem with it yet. I've been building systems with, not bleeding edge, but relevant technology for 20 years. By building systems, I mean I either do it solo or lead the team with the design. I specialize in back-end automation engines, but can do a good front end as well. I usually don't adopt a technology until it's obvious it's stuck. I primarily do Microsoft stacks. I talk well on my feet, am good talking with clients, and understand the needs of business. I haven't had to use a recruiter in 16 years.

I hope it never happens, but I haven't seen any evidence of it. I'm also never the oldest person in the group. I hope this helps.

Good luck.
Not sure why this is noteworthy, there are much better site that are very similar.

Like say this one: https://www.windy.com/

Similar look/feel, but shows predictions as well as the current state. Also allows to pick between your forecast models.
Location: New York, NY

Remote: Prefer local, but open to possibility

Willing to relocate: No

Technologies: Python (Django, pandas, numpy), C++, Ruby
(Sinatra, Selenium), SQL, Git, AWS(S3, Lambda)

Resume/CV: https://tinyurl.com/y7dkq7hl

Email: mdettelson[at]gmail[dot]com

I am a recent graduate from Tufts University looking for my first engineering position. I have significant experience in data science, project management, and backend engineering. I am looking for a place to start my career where I can learn and grow my skills, and I am willing to learn whatever technology is necessary to get the job done properly.
CEO of major tech corporation known for outsourcing and dogging corporate taxes talks about "solutions that are rooted in American values".
Dark Energy Two Decades After: Observables, Probes, Consistency Tests
That font is neat but not something I'd like to read for an extended period of time.
> Thousands lines of code.

Have you taken a look at petgraph? It does quite a lot of things. The same functionality in C would be thousands of lines as well.

> It was already “still in nightly” a year ago.

SIMD is in Rust nightly not because it's immature, but because the Rust developers would rather design a portable interface than quickly standardize a nonportable one. Given that AFAIK neither the C nor C++ specifications include provisions for SIMD and all support is compiler-specific, the only difference between C/C++ and Rust here is that Rust follows a release model that features a nightly channel.
Just take out a loan. The food cost savings and excess production will pay for the loan and they can repo the robot if you don't pay. The robot will even be able to tell you if it's likely to be cash flow positive.
I recently drew a map of pre-Columbian archaeological sites in the Americas for Wikimedia Commons, see https://en.wikipedia.org/wiki/Pre-Columbian_trans-oceanic_co... (hint: 13,000 years is not particularly old)
Power does diminish with distance due to I2R losses. For cables using AC, there are also reactive losses. To compensate, the cable companies boost the voltage at both ends (30-500 kV) of the cable such that the repeater at the middle of the span has enough juice to operate properly. And, yes, separate cables, or wire bundles, carry the power and ground.
If you click directly on the time of a comment, it's a link to a direct reply page.
Without being married, or signing a piece of paper, there's no one in my life who could make medical or financial decisions if I were incapacitated. Maybe you have other relatives who could by default (and that you trust), but I don't. Having spent the last few months dealing with medical issues, this is more important to me than I had ever anticipated.

I see your point at a basic level, but I feel like you're missing out on details that really make an impact in the long run of the marriage itself. Maybe they aren't important to you today, but someday they may be.

Maybe whatever you do can be called a partnership or something else if you're more comfortable with that.
It's not a mistake. It's a great framework. Most of the complaints I hear about React come from folks who dislike JavaScript. JS is a great language for a side project. Make sure you learn fundamentals of JS. If you want an easy way to build a static web application with React, use Next.js. It's dead simple, no config, the folder structure acts as your router. https://github.com/zeit/next.js/
A Bigger Mathematical Picture for Computer Graphics [video]
Read Barack Obama's Response to Trump's Decision to End DACA
What is the island(?) in the middle of the Atlantic where 5 cables meet? I can't quite make it out from the image.
https://news.ycombinator.com/item?id=15180500
Certainly, but for instance, take one of your examples: Kaitai Struct. It doesn't have support for C (at least it's not listed among the languages on its homepage). OTOH, for more complex payloads I've often seen Protocol Buffers used (yes, I know they don't have native C support either but there's lots of good libraries for using `protobuf`s with C).

The thing with FFIs is that above all we want them to be fast and simple. C rules for laying out structs generally means no parsing necessary, with direct access to fixed offsets for everything you want. If you're ever having problems figuring out the layout of a struct, it's relatively straightforward to just dump some simple load/store code into a compiler and have a look at what it does (assuming you can understand assembly at a basic level): https://godbolt.org/g/khGPWA
Rust has two string types, not six. If you're referring to the `OsString` type, that exists only for platform interop, and there's no confusion as to when one needs to use it.
Trump said things against women.

Hillary attacked brave women who stepped up to tell the world that her husband attacked them.

Words vs. actions. Clinton was worse than Trump. (BTW, I voted for neither.)
Use an Rc? If you can't afford the reference count, then use unsafe/raw pointers, which it sounds like you'd do in C++ anyway.
Show HN: Ice – WSGI microframework to develop small web applications in Python
How Effective Trading Is an Exercise in Accountability
Just proves how dumb they are. Plastic doesn't have any calories or hedonistic value at all really.
That's certainly a side effect, although in Facebook's case they do still have other vectors to track user activity such as ad campaign pixels and the Audience Network.
Give your orders to someone else.
Critical Apache Struts security flaw makes it 'easy' to hack Fortune 100 firms
The author mentions in a sibling comment that companies are limited to 8 values.
> Find the planned-obsolescence parts in things like car doors that were engineered too thin or out of plastic so that door and window handles fail after a certain number of uses.

There’s no way in hell car companies are purposely under-engineering things to cause them to break. That damages the brand reputation, and will drive the next sale to a competitor.

Yes, they make engineering tradeoffs. No, they don’t design a part with the specific intention that it will fail earlier than a comparable (cost-wise) design would.
Google search for DINO democrat and RINO republican indicate that the terms are used with similar frequency (340k vs 417k).

This coincides with my experience hearing the terms, so perhaps your experience is simply different based on where you live or who is in your social circle. FWIW, I have lived in CA and PA, and my friends are a mix of liberals and conservatives.
C wasn't useless and unsafe at the time it became dominant. It was quite state-of-the-art at the time. We've just learned more about what works well and what doesn't in programming languages since 1978, which is why C is no longer as dominant as it once was.
In fact, all of the things you propose are fairly simple. Leads one to wonder why C programmers haven't implemented these trivial things. Something about the C ecosystem seems to abhor standardization, modernization, and distribution. May have something to do with the kinds of people choosing to use C every day, despite the existence of an endless supply of potential replacements. I'm fairly sure the people who want all that stuff can already find it elsewhere, after all.
I totally agree. I drink, just not with co-workers.
> I'm glad you like your package manager. Most programmers, including me, don't want to have to deal with it when the goal is simply to put a Rust project together.

This is the same attitude that makes electron so attractive. As a user, I don't care what makes your life easier as a developer, I care that I'm getting a more bloated and less secure result. This is an awful attitude that's creeped into software development lately.

> Besides, we ship desktop software on Windows: we cannot tell our users "sorry, you need to install Ubuntu".

So bundle them on windows, bloated installers are the norm their already. You're probably going to have to include an auto updater and a lot of other stuff that windows doesn't provide as well. Not having to deal with that stuff is part of why I use ubuntu in the first place.

> The Rust solution is customizable. You can use dynamic libraries if you like, and earlier prerelease versions of Rust did in fact do that. Dynamic libraries are a single rustc flag away.

Until there is a stable ABI that isn't a solution because you have to distribute those libraries with the app.
The Case for Comprehensible Input [pdf]
The estimate I got for a well alone was about $40,000.
We haven't had a major hurricane make landfall in FL in 12 years. People begin to forget the fear and seriousness in that time.
You mean like the EPA sticker on a new Volvo?
I took the parent comment to mean that being married itself shouldn't provide any more benefits than just being in a stable, long-term relationship. To your point, I agree that having a marriage ceremony probably helps maintain the relationship due to social pressure.

I would be interested to see research comparing the children of married couples to those of unmarried stable long-term relationships. My hypothesis is that the outcomes would be similar.
TL;DR a problem in deserializing untrusted data submitted via the REST plugin can result in remote code execution. CVE-2017-9805. All versions of Struts since 2008, fixed in today's release of 2.5.13 [1]. If you're using Java and receiving XML data, look really hard at this.

"A RCE attack is possible when using the Struts REST plugin with XStream handler to deserialise XML requests" https://struts.apache.org/docs/s2-052.html

[1] https://struts.apache.org/announce.html#a20170905 for today's release announcement of 2.5.13 that fixes this plus two denial-of-service vulnerabilities.
Appealing to the veil is a good but insufficient step. For instance, we might disagree what people would agree on behind the veil (imo because we encode moral assumptions into our conclusions from it). Nonetheless, if we were to get that far I'd say the veil would be doing its job.

For example, suppose I beleive in the systematic rejection of blind people from bus driving positions. I can see myself getting behind this even if I wouldn't know whether I'd be blind or not because I imagine behind the veil I'd put greater moral value associated with the safety of bus passengers than blind people's rights to the bus driving job.
In other words, I've exposed the "driving" moral valuation behind my stance.
Almost always? I don't know any programmers that use Macs.
The Azores
I remember that one, although IIRC they did it because Linux-on-PS3 was being used as a way to get around the copyright restrictions on the PS3 and pirate games. Basically, the pirates ruined it for everyone.
Start to think of investing part of your time in building a side passive income project that can grow...
> wouldn't it be more productive if they'd put some pressure on Synaptics to fix it? They might take notice if Microsoft comes knocking.

It's possible that is happening, indeed, I suspect it's likely. The Microsoft developer "Orange" who the blog poster linked to is almost certainly Gov Maharaj (ORANGE),[1] a very prominent member of the Windows application compatibility team who has earned enough influence internally to be able to lean on hardware vendors like Synaptics through the hardware compatibility and partner ecosystem teams.

I used to work at Microsoft and saw Gov in action on internal email lists for people running daily Windows builds. He probably answered about a quarter to half of all the "this program is broken in this build!" emails.

You can see Gov (and perhaps be surprised by his technical chops) on the MSDN "Defrag Show" PC troubleshooting video series. [2]

[1] Origin of the name "Orange": https://blogs.msdn.microsoft.com/oldnewthing/20081021-00/?p=...

[2] https://channel9.msdn.com/Shows/The-Defrag-Show
TL;DR: Bike shedding + Poor communication ==> LONG HORN.
Hey thanks for the comment! I'm the author of the talk-turned-post :-) You are completely correct about reproducibility being super important in data science workflows. While I did mention it in the post (and in the talk the post was based on), I mentioned it as a part of version control tools. That said, I think it's not something that is focused on enough (obviously I'm guilty of that too) so I plan on doing a follow up post focused on reproducibility and the tools that can help you recreate your results. Kinda putting the "science" back in data science. Really I want an excuse to play around with tools like https://dataversioncontrol.com/ which looks super useful and I mentioned it in the post, but haven't had a chance to use.
Americans Have Given Up on Public Schools. That’s a Mistake
Yes. There's no land around 40-50°S, so you basically get in effect a permanent storm over ocean with nothing to break the wind. It's why the weather in Antarctica is so much severer than that in the Arctic.
> my hopes are pinned solidly on bcachefs

Bcachefs is developed by a single person (however brilliant he may be) on a part time basis (I see only 4 commits since May this year).

Unless I'm missing something (please correct me) bcachefs will not be replacing BTRFS, or any other filesystem, anytime soon.
You know - I've just noticed this myself. If I eat a lot of sugary foods, I often almost feel hungover the next day.
I contributed to this research - interested to hear your thoughts!
That's not remotely how waterproofing works. Getting any meaningful degree of ingress protection is hard. It requires entirely different assembly techniques and is generally contrary to user serviceability.

Proprietary batteries are the reason thin electronics exist. You can't use 18650s to make a MacBook.

I think the problem here is that you vastly underestimate how hard manufacturing is. The things you're proposing are like me trying to sue Facebook because it crashes all the time. Is it annoying? Yes. Is it because they're actively trying to subvert me for nefarious reasons? No, it's just because they don't know how to do it better in a reasonable price range.
So, to summarize, instead of trusting physical hardware owned by different people we are expected to trust that keys, that were used to sign genesis block will never leak?
> Language migration: all-at-once or not-at-all. Like any
language, C persists partly because replacing code is
costly. But perversely, the implementation technologies
favoured by more modern languages offer especially unfavourable effort/reward curves for migration. Migration
all at once is rarely economical; function-by-function
is probably the desired granularity.

D's new "Better C" support allows for function-by-function granularity in building chimera programs that contain any mix of D and C. It's much more than having merely access from D to functions written in C.

https://dlang.org/blog/2017/08/23/d-as-a-better-c/
what are the options? Satellite transmission certainly is one but it is bandwidth limited and it imposes delays due to the distance involved. Microwave radio won't work because it's line-of-sight. HF or VHF radio has atmospheric effects and noise issues and is even more bandwidth constrained. So, really, cable is the best option giving the lowest price per bit. Fiber, these days, is approaching 100 Gbps with the ability to multiplex multiple bit streams onto different wavelengths to allow transmission of insane amounts of data. Hardly primitive when you do think about it.
Did you click on the linked source? It says it was written by Kurt Vonnegut, who is arguing that the value of accurately depicting reality to students is more important than protecting them from whatever imagined risk of reading harsh language there is.
2.1mm DC barrel jack to MagSafe adapter: first and 2nd generation
Point generally taken, but that's a conceptual leap to make when talking about what "meat" means in a casual conversation. As an aside, I don't think I've encountered anyone who thinks fish aren't animals (but of course they exist)
If you find a formula for this , I'll be very interested to buy it, so I can start a VC fund on the side...
The Azores?
No idea, but either way, I agree that it's a great book! I'll be sure to check out that other one, thanks for the rec!
Interesting that the tip of South America is older than those near Alaska. How long would it take to migrate down the entire Americas? Though I assume the first migrations were at least 25k years ago.
Strongyloidiasis is a deadly infecting worm, yet hardly anybody has heard of it
> As a user, I don't care what makes your life easier as a developer

You should. The easier my life is, the faster I can fix bugs and put out new releases.
What was novel was company towns, cartels (Trusts) turning numerous industries into monopolies, etc. A lot of it really does curl one's toes (I'm just reading a Forbes collection of history articles.)

Yes peasant revolts happened before this. There was an old cruel aristocracy, and then a new, industrial aristocracy which was inexperienced, fumbling and cruel. Industrialization wasn't the first harsh transition in human history, but who argued it was?
A lot of the chivalry seems to be just doing mundane things for women or treating them differently (opening doors, scooting out chairs, shaking hands differently). Women can do these things literally just as well so it's not like most of the "chivalry" we are losing is due to real differences between genders. I still get things off of high shelves or open pickle jars for my girlfriend but those are based on practical differences (she is tiny and I have great grip strength)
> Pointers are still faster.

Depending on cache effects, indexes might or might not be faster than pointers. With indexes into an array, the nodes or edges will be sequential in memory, which depending on their size and access patterns might increase the cache hit rate. Furthermore, while pointers will always be 8 or 4 bytes, indexes can be as small as 2 or even 1 byte for smaller graphs (reducing structure sizes and potentially leading again to a higher cache hit rate).

As for the costs of indexing, on x86 a single instruction can add the array base, the index, and a constant offset, and do a load or store from/to the resulting address. Other architectures might need a few more instructions, but that is dwarfed by the cost of a cache miss, which can be hundreds of instructions.

Another cost is the bounds check for every indexing into the array, which the compiler can't elide because it can't easily prove that the index is within the array bounds. That is the main reason you saw "unsafe" code on the petgraph crate; there are places where the programmer knows the indexes are within the bounds, since they came from a trusted place (the graph itself), but the compiler isn't smart enough to prove it, so the programmer manually bypasses the array bound checks in these cases.

All in all, I wouldn't know a priori which would be faster for a particular use case, pointers or array indices. I'd have to benchmark first.

> Also with arrays it’s expensive to reduce RAM usage after a lot of nodes were removed.

True, the "array indexes" approach is not as good for algorithms which need to remove many nodes (or edges, depending on how they're represented) from the graph. As long as you don't need the indexes to be stable across deletions, you can use a simple trick to make deletions cheaper (move the last element of the array into the newly freed place, so all empty places are at the end of the array), but that trick can't be used if you need the indexes to be stable (because they're referenced from outside the graph).
That is true for some things, though the preprocessor (which was not a "lazy cop-out" at the time) will be required for backwards compatibility. Some of the author's proposals, however, such as checked array access and garbage collection, would have runtime consequences.
People aren't equal though. Coming from Russia, the West is really confused about what it wants.

It seems to want chivalry plus equality minus morality. This desire is represented by factions who seem to work together on some level. The end result is a mess.
Most scariest bridges in the world
There are tons of front-ends that interface with gdb, which is part of why so many things use a gdb-like UI. One of the demos on the page is using "ddd" (the Data Display Debugger), which I was pretty impressed with 20 years ago when I last used it.
When this said student, I figured it was an 8 year old. Not a PhD candidate. While technically accurate it does tend to sensationalize it a bit.
Rosetta Stone for Unix (2014)
Growth hackers
Show HN: Order Like a Malaysian
Yes, it informed me about them to the extent that I've installed a uBlock list to specifically avoid being informed about them. I don't even live in the EU...
An automated guide to help you order drinks in Malaysia. It can work in Singapore & Brunei too.
My mind is trying to reconcile such a seemingly awesome thing being hosted on sourceforge...
A mess the end result of which is that people here touch far more rarely than they did in Victorian times. Yet we know that rarely being touched in childhood is a strong risk factor for promiscuity later on.

As for equality, women are far more at risk from sexual predation and assault; I don't think it's rude to let social customs reflect this by having them initiate touch, largely.
Wait, ports are considered moving parts?
You spent 30 hours on a coding problem? How big was this thing?