skysight-inc/HackerNews huggingface dataset:
Optimization goals?

They could be targeting economic policy around the, say, 1.3 billion or so non-elites.

A few million at the top may see a net burden in "we have to be responsive to overall planning goals" and "we might have less raw economic opportunity", but maybe it's a choice the CCP is willing to make. At least on an aggregate, society-wide level, the quality-of-life metrics do seem to be pointing in the right direction.

I don't think "schooling in the US" is inherently a culpable thing. Premier American universities are
globally very highly respected, and I could see value in "cross training" to make sure they're not missing any good ideas worth investigating.
It's the minimum needed to get something going, and any really sane use of it would be evalling something like

import worker
worker.run()

The PEP explicitly mentions this, and that something like subinterpreter.run(func, ...) could be considered in the future: https://peps.python.org/pep-0554/#interpreter-call
Colemak people are worth of pity. They are so harmed by Qwerty that when they are chosing a layout, the partly compatibility with Qwerty is a must for them. This is even worse that being a Qwerty user because at least Qwerty people do not know about better worlds, so basically they are not suffer.
...as long as you're fine shelling out to cargo, right? What if that's not appropriate or ergonomic?

There's a world where Rust is as easy to use as C, C++, Fortran, etc. outside of cargo, but it's not an interesting use case for the Rust community to support right now for whatever reason. That's basically my point.

And it's common enough to have linked programs in which python calls C that calls C++ that calls Fortran that calls C. Replacing arbitrary layers with Rust is technically possible, though Rust doesn't tend to be deployed in situations like that, at least not yet. I'll consider the Rust ecosystem more mature when you see Rust used mixed ELF situations like that.
What the Queen's English revealed about a changing world
As mentioned in the thread, X server does the same thing in practice as we are not using XMotif apps anymore with CPU rendering.

Icons, textures, all these things will be passed as bitmaps with X remoting, in a strictly worse way than a modern compression could do.
Without a deadline I do not function well.
So, how CLOSE does porting lisp awk [1] to run gawk version 5 under a jvm with it's @include macros to facilitate OO programing come to fulfilling the 'will go back to APL' requirement?

[1] https://www.cs.cmu.edu/afs/cs/project/ai-repository/ai/lang/...
It's not about difficulty, like the number of mouse clicks or something. It's about who has ultimate control over your device. And with control comes the ability to extract rent.
Neither thing.

It means he has a very informed opinion. That doesn't mean we are forced to agree (I do not), but that we must answer with another informed opinion ourselves.
> If you're perfectly attentive and constantly vigilant, maybe

That used to be the case 10 or 15 years ago. Today it is much easier to "follow the rules", because:

1. You used to need to tread carefully to both follow them and do what you needed to; now you can do more complex things more easily. Example: In the past, you couldn't avoid new and free being strewn around your code. These days, you can avoid them entirely when not implementing a complex data structure of your own.

2. A decent version of "the rules" is basically explicit: https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines

3. The standard library and other FOSS libraries do a lot of the rule-following for you

(4. Compilers are more attentive and do more static checking.)
I'm still completely baffled that we nowadays almost all have in our pocket a device able to run something like https://f-droid.org/en/packages/jp.yhonda/.
Leaders / Learn Vimscript the Hard Way
Just bought this for my iPad, which apple inexplicably doesn’t bundle with their calculator app.
Flight software is software for physical objects and is therefore bound by the laws of reality. Recently salaries have been jumping up significantly but they're still way below the low end of that range.

For reference, I'm a Sr aero dev pulling 150k.
> Hundreds of dollars in apple hardware and software compared to zero dollars for MSVC community, zero dollars for android developer studio, zero dollars for linux toolchain or whatever

Apple’s software is free, and you need more than zero dollars for the hardware to run Android Developer Studio.

Also, on both platforms you may need a few (or more than a few) phones and tablets for testing (you may be able to test on a simulator, but that doesn’t guarantee things work on the real hardware, doesn’t give you a good idea about performance, and certainly is not a good option for apps that use on-board sensors such as accelerometers)

In the end, I think the difference in cost is between the cost of a PC and that of a Mac, so ballpark $500 in both cases, the phones to test on may cost more.
There may be GNOME specific issues as well but I also noticed the other week FF scrolling being bonkers in sway (just a light swipe can "smooth scroll" across several screenfulls way too fast and long, with several seconds of slow trailing scrolling) but not under i3 (IIRC it might even have been fine in sway when running under XWayland). I don't recall the details but got back to somewhat sane behavior with some non-obvious about:config changes.
Article also repeats the canard, "Chinese is based on pictures, or logograms, with specific meanings." No, Chinese writing is not logograms.

Chinese writing is a syllabary with redundancy (many ways to write the same syllable) and complicated spelling rules. Chinese developed from logograms, as did Phoenician and cuneiform, but that was left behind thousands of years ago.

Oddly, Chinese students are often taught to call the glyphs logograms, which they happily parrot, despite that they do not use them in that way. Many earnestly believe that users of other Chinese languages, when writing Mandarin, are simply transcribing what they say ("with different pronunciation") and not, as they are in fact, translating to a language as different from their own as German differs from English.
After looking at this, honestly, you should just use C++.
I wrote a `bc` implementation.

There are more than you would think, yes, but not terribly bad. I think he exaggerated a little, and `bc` has more than just a simple calculator.
(2020) talking about the September war in NK. This september's invasion was within armenia's proper
It's good that I don't have a Tiktok account (or an Instagram/FB account) in that case!

* proceeds to spend whole day reading HN and doomscrolling Twitter instead * ;-)
Have an upvote for making my day :-).
How much HN Racket has to be made, to signify trends at large?
Herb Sutter, who also works for Microsoft and has dedicated his entire life to advancing C++, may be really sad right now.
> we're seeing more and more clients take memory safety seriously

Running your test suite with asan, msan, tsan isn't sufficient? From my experience you need to start doing really nasty things (which shouldn't pass code review) before the sanitizers won't find your issues.
>At this point you are just writing fan-fiction.

Ok, looking into it more, it looks like it's not a completely agreed upon point on whether the father is alive or dead[1]. The thing is, you and I, being so far removed and thus unfamiliar with the culture and idioms of the time, don't have a real basis to claim one way or the other whether the father is alive.

>Leaving your family without saying goodbye is just a really horrible thing to do.

Jesus can see into the man's heart and knows he's making excuses. We don't really know anything about this man, but Jesus was with him frequently, and knows him well. Maybe he doesn't have any close family and is referring to distant cousins. Jesus knows that and we don't. Jesus' disciples don't abandon their family, because we're told of Jesus visiting their families with them.

[1] https://en.wikipedia.org/wiki/Matthew_8:21
> The practical truth is that if we required this level of scrutiny for every conviction to stick, we’d multiply by an order of magnitude or two the number of guilty criminals who cannot be convicted.

The standard for criminal conviction is "beyond a reasonable doubt."

There is no possible way Adnan Syed's conviction reached that standard.
Compare compressed sensing's single pixel camera: https://news.mit.edu/2017/faster-single-pixel-camera-lensles...
That file is just stupid; most of the licenses have common bits that can be algebraically factored out.

There is no need to have two copies of a license which differ only in this:

Copyright (c) 1987, 1993
The Regents of the University of California. All rights reserved.

vs:

Copyright (c) 1987, 1993, 1994
The Regents of the University of California. All rights reserved.

The second one subsumes the first one.

Secondly, it's obvious that what that file consists of is licenses pulled from individual source files. But doesn't indicate which source files. It mentions various author names, but doesn't say who wrote which file.

This conglomerated file is uninformative and serves no purpose.

What you want is to just leave the original notices in the source files and have a concise summary about what.

This project uses:
* BSD-licensed code by Jeffrey Mogul in subdir/foo;
* BSD-licensed code by David Hitz in subdir/bar;
...
consult the individual license headers or subdirectory LICENSE files for the exact licensing details.
There was a scandal when it was discovered that Xerox machines were doing this; in that case, the example showed "photocopies" replacing numbers in documents with other numbers.
I would rather have deadlines than give estimates.

A deadline is a clear moment in time when the feature is needed. There's a reason behind it. "We need to be ready for event X", "Next billing period is in a week".

Fixed deadlines allow you to negotiate the content of the feature, and make meaningful choices when it comes to the amount of details and edge cases to handle.

Otherwise how are you supposed to estimate something? I can make you the same feature in a week or in a month. It's going to be more polished in a month, of course, but I can squeeze it in a week if needed, with limitations.

Embrace deadlines, you will love them.
This. Experts respect experts not due to political status but experience and demonstrated capability. Status and authority within a technical community are then products of actual results. Nobody is claiming infallibility, but generally when a person voices opinions in a subject within a domain they have previously demonstrated excellence generally people listen.
Checklists with copy paste commands are used some places, but it really requires that the team maintaining the process feels like they are getting value out of them for the checklists to be kept up to date.

One place I worked we had detailed step by step checklists with ready to copy paste commands for patching server. The Windows process was forever drifting and getting out of date while the Linux process was being kept up to date.

The difference was that the Windows admins were all morning people who enjoyed showing up to work at 7am or earlier if they could justify it and just doing it from memory. While the Linux team were all night owls who preferred to roll out of bed 5min before the update schedule, remote in, execute the process with as much automation as possible in the hope of getting some more sleep before having to got to work.

Basically the Windows process was only ever actually followed when someone outside of the Windows admins had to cover for them and the Linux process was used every time by the Linux team.
The US can be the "greatest country of all countries" and have greatest potassium reserves or whatever but that doesn't mean the H1B process isn't a shit-sandwich or makes sense given the immigration landscape. A lot of rational actors are choosing less cumbersome immigration processes in Canada or Australia for instance.

Although I guess hooray for defending what was described above as 'indentured servitude?' Not an H1B myself but if that's really what it's like giving these people citizenship if they're lucky doesn't justify putting such unconscionable restraints upon them.

>You have no clue about why US

Lol I've lived in the US for at least half as long as practically anybody on this board, and also lived and visited multiple 3rd world countries including ones in the middle of a civil war.
Most deadlines in my career so far were arbitrary. Sure, some deadlines were driven by fixed events, for example Christmas promotion has to be launched before Christmas.

But in most cases when I asked managers about the reason behind the deadline, the answer was something like "oh,I promised this team/director we'll do it by then". When I dug deeper to see what happens if we miss the deadline, it appeared the said team would be just fine, there were no real life consequences, just that they wanted to finish their part of work by certain time, and they depended on us.

I'm not saying deadlines are useless, but they're very often driven by some arbitrary promises made by managers before even consulting developers about the complexity of work to be done.
Literally everyone in choir: we have boooobs!
In this regard, stable diffusion is not so much comparable to a corpus of jpeg images, but with the jpeg compression algorithms.
Remember the Xerox scan-to-email scandal in which tiling compression was replacing numbers in structural drawings? We're talking about similar repercussions here.
When your software is a piece of a much larger, expensive real-world project, deadlines are not pointless.

Imagine, for instance, writing software for an interplanetary probe with a short launch window.

Pretty different from writing the 'Yo' app.
I see the relation between compression and consciousness. But what do you mean by irreducible entity, and how does it relate to the two?
Generally - yes. But in this case, if you happen to be the CTO of Azure I imagine funds would be available to implement the missing components in Rust ecosystem for projects you lobby to be critical.
Have you ever used zig?
I think what they're getting at is that as best we know, Vedic religions came to India with the Indo-Aryan migration. So the pre-Vedic religions of the Indus Valley Civilization are unlikely to have had any notion of a Vedic concept like brahman.
This is so true. Two examples.

1. I got a couple of downvotes a few days ago because I commented that I don't like the &s of Elixir (kind of shortcuts for 'fn x ->') and I prefer to write the full form as it's easier to read for everyone no matter how proficient in the language (zero to expert.) I also don't like and almost don't use the & shortcuts in Ruby (positional arguments.)

2. I got a customer recently with the lead developer fond of each_with_object. I never saw that in 17 years of Ruby and I had to check the reference. It's probably faster than the naive implementation (more time inside the C implementation doing real work vs inside the C parser?) but the naive one is immediately readable by anyone.
If you didn't use C++ with the RAII paradigm, and had to write your own new/delete, your previous C++ experience isn't representative of the complexity of dealing with C++ since C++11. The new standards are a massive upgrade, and now a lot of other things are starting to get major quality of life improvements too (eg. template metaprogramming)
Adding on: listen to what other people say.

I know some people who love to talk about themselves, but conversation with them is often one-sided.

It's no surprise some of these people wonder why they have trouble making friends.
As someone who works in embedded systems, the least important part of my job is writing the code.

The most important is making sure the system works as intended. The code is a way to accomplish that. There are other ways to accomplish that, which frequently will include things like changes to the circuit, changes to the mechanical design, changes to specifications, operating requirements, silicon, or how the user interacts with the system in order to make sure it's working correctly.

That the code was incorrectly specced was the bug, and there it matters whether it was written by an unpaid intern, a $9 engineer, or a senior engineer who has enough system knowledge to know what the ramifications of the system interacting this way are, or allowing marketing to make it an optional fault light, or permitting only one sensor to be used as its input.

While the ultimate failure is a management one, one of the ways that management failed is they clearly didn't get the proper system-level architecture squared away.
How long does it take to compress and decompress an image that way?
Well... He is also written some horrible fiction novels, so the guys is not perfect.
I'm not really over-stating zigs readiness. More pointing out how ready rust wasn't at 1.0.
Yes, using integers is not a handicap in many cases but default way of addressing.
Each skyscraper should have one or more playground-style spiral slides installed that can be ridden directly to the bottom in the event of an emergency. This would also provide a valuable source of fun to the building occupants.

That would be pretty dumb in reality, but I wonder if it could be made to work... you'd need some kind of synchronisation control on the ingress to ensure people enter the slide with sufficient clearance before/ahead of them, and you'd have to have a "mantrap" type arrangement at the ingress points to prevent multiple people cramming in at once and risking a jam. You'd also want to neck the entrances down to about 3/4 of the tunnel diameter to stop overly large persons from entering the slide.

Probably also want some kind of low-friction mat at the exit point so people aren't piling up at the bottom of the slide and blocking it if they can't move fast enough.
> I dont get it. If it's a voluntary exchange then it's definitionally non-exploitative.

"voluntary" is such a tricky word isn't it... used to paper over exploitative arrangements since basically forever.
In a world where comments are terse; if it takes longer to grok the code than it takes to read a comment, the comment is worthwhile.

// this does x
do_x()

is a bad comment, however...

// this does x
OMG_WTF_function_call(rocket science maths & bitmask);

is a good comment :)
My mistake. I thought “asking for ongoing permission” means signing up for free dev account with a throwaway email.
Ask HN: How do you switch between programming languages?
I am an amateur developer and bounce back and forth between Go and Typescript. Since I code in my free time, I usually do a week of Go, then maybe a few days of Python, and then back to Typescript.

I find it difficult to switch between the grammar of the languages (especially ones that are rather close such as Go and TS) and spend a day pondering over bugs which are an extra colon, or a dot in the wrong line.

Do you have any tricks/hacks to make the switch easier?

---

Note: by "close" I mean "visually close": "func" vs "function", stacked chained methods that either have their dot at the end of the previous line, or at the beginning on the next, single vs double quotes, types prefixed by a colon or not, ...
And divide that by 2 and you'll have your salary in Europe. :)
I built fetch-robot (https://github.com/krakenjs/fetch-robot) to avoid dealing with CORS preflight requests. And the associated maze of request and response headers you need to use to negotiate in the preflight.
US is such great country, every time I enter it I get thrown in a cell and detained for 16+ hours, cavity searched, fraudulent warrants obtained, and border patrol officers taking me to hospitals against my will putting me thousands of dollars into debt over absolutely insane accusations of having drugs up my ass.

Greatest country in world!

I love the American people but the government has gone completely off its rocker post 9/11.

----------------

>The detainee has to pay for hospital scans ?

Yes. [0] I was taken to the same hospital as this woman. Although I refuse the scans (scans require consent) so instead they hold me under involuntary observation until they can search materials from the body. Holy Cross hospital in Nogales AZ. Also St. Mary's Hospital in Tucson. Also Sound Physicians Network under which the doctors work in the hospital. The Arizona nursing board has agreed not to pursue action against medical providers acting in concert with border patrol, even if they have no court order, warrant, or patient consent.

[0] https://tucson.com/news/local/border/woman-sues-customs-over...
This is not really "stable-diffusion based image compression", since it only uses the VAE part of "stable diffusion", and not the denoising UNet.

Technically, this is simply "VAE-based image compression" (that uses stable diffusion v1.4's pretrained variational autoencoder) that takes the VAE representations and quantizes them.

(Note: not saying this is not interesting or useful; just that it's not what it says on the label)

Using the "denoising UNet" would make the method more computationally expensive, but probably even better (e.g., you can quantize the internal VAE representations more aggressively, since the denoising step might be able to recover the original data anyway).
The true test of what I said is "show me the code."

The code is my `bc`. [1]

Find a memory bug, any memory bug, in my `bc` after 1.0.

Rust has occasional memory bugs too; I mentioned that specifically. It still happens.

So if you really are correct, break my `bc`.

[1]: https://git.yzena.com/gavin/bc
Unfortunately this caching is still per-path. For example:

GET /v1/document/{document-id}/comments/{comment-id}

For every new document-id or comment-id, there will be a new pre-flight request.

Alternative hacks: Offer a variant of your API format that either

1. Moves the resource path to the request body (or to a header that is included in "Vary"). Though the rest of your stack (load balancing, observability, redaction) might not be ok with this, e.g. do your WAF rules support matching on the request body? You also will no longer get automatic path-based caching for GET requests.

2. Conforms to the rules of a CORS "simple" request [1], which won't trigger a pre-flight request. This is what we did on the Dropbox API [2]. You'll need to move the auth information from the Authorization header to a query parameter or the body, which can be dangerous wrt redaction, e.g. many tools automatically redact the Authorization header but not query parameters.

[1] https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#simpl...

[2] https://www.dropbox.com/developers/documentation/http/docume... (see "Browser-based JavaScript and CORS pre-flight requests")
Well, you're not wrong, but I hate C++. With a passion.
Were they any good? (Although we know that by now). I don't think how much they will work for is relevant.
Dog owners know to take water with them for the dog, if they're walking a few miles on a hot day.
All relationships are transactional, whether it is explicit or implicit. Your comments are just describing different types of transactions. Your gender splits here are not helpful.

The main split that I see over and over again is that men are much less likely to accept you into their group, but much less likely to reject you once you're in (they are tribal). Women are fast to make acquaintances and have larger (mostly healthier) social circles, but are less loosely tied to groups.
My first thought exactly. This essay by Hans Moravec is also a great exposition for similar idea: https://frc.ri.cmu.edu/~hpm/project.archive/general.articles...