skysight-inc/HackerNews huggingface dataset:
I'm running Sway WM right now, a Wayland compositor that implements an i3-compatible window manager, and in fact working on the code (hopefully merging my first contribution soon.)

I'd say the biggest issue is really maturity. I actually find Wayland to be a surprisingly nice piece of software engineering. I don't know if I like the architecture really, but it comes together fairly nicely in the end.

For example, there's unanswered security questions. It would be good if applications couldn't just go and manipulate and spy on other apps like they can with X11. Wayland indeed solves this issue, but it leaves other problems. How do I capture the desktop?

wl_roots offers some extensions that help alleviate the problem, but they don't solve the full problem; for example, you can capture the screen, for which programs and an OBS plugin exists, but there's no upstream Wayland extension that can make WebRTC desktop capture work. I think what we really need is the ability to integrate policy and consent requests, but I'm not sure whether there's progress on that front, or how long it will take. Once the problem is solved, upstreamed to WebRTC, and that upstream version trickles down to Electron apps, Firefox and Chrome stable versions... well, things will be in a better place.

Speaking of web browsers, today Firefox still has some issues to go before it is fully working in Wayland natively. You can do it today, but it is not perfect; there are sometimes places in the code where it assumes it is running on X11, and things simply break. The screenshot tool is just flat out not present when running under Wayland due to the above issue.

Applications are slow on the uptake too. XWayland covers most of them, but it is not perfect. Like anything that captures the screen, of course, is not going to work under XWayland, but also, XWayland apps may behave a little off. In Sway WM, one bug is that when the mouse travels from an X window to a Wayland window, sometimes it behaves as though the mouse is still hovering over the X window at the last position it touched, which leads to tooltips showing up where they shouldn't. There's still a decent amount of GTK2 apps, and even Qt apps aren't all Wayland yet; Krita plans to start working on support I believe next year.

In my case, here's the itch I'm currently scratching: Sway WM also does not have support for drawing tablets. I found this out, by, well, loading up a drawing program and noticing the lack of pressure sensitivity. So, that's what I'm currently working on. Needless to say, this is a non-starter for anyone that relies on a graphics tablet, although if you are just using GNOME 3 it is unlikely to be an issue since I'm sure GNOME 3 supports graphics tablets just fine.

NVIDIA drivers are still a pain in the neck. I gave up and bought an AMD graphics card, and frankly I can't recommend it enough. Basically everything works better on Linux, but certainly Wayland works better. It's worth giving up some raw power. Still, for many people the proprietary NVIDIA drivers are going to need to work, and today support varies from lackluster to poor depending on what compositor you use.
Ask HN: What are some interesting open APIs out there?
Inspired by the recent Show HN on satellites (https://news.ycombinator.com/item?id=21037167) it got me wondering what other interesting APIs are out there that are free to use (mostly, or not) and provide interesting data that could either be used as part of an application or feed an application by itself.

So, what do y'all know? Thanks!
It's quite curious that he didn't mention Rust as a possible alternative. Still fast compilation, still no forced OOP bloatware added, plus static memory management that prevents the issue with garbage collection that happens in Go.
Idea is great. Execution and the artworks... not good.
> So there were like 256 possible projectiles in Battlezone(1998)

Just have to say, loved that game to bits.
I work on an open-source music sequencer (https://ossia.io) and no later than two days ago I had a fair amount of mails with someone who wanted to know the best settings for his machine to not have any clicks during the show (which are the audio symptoms of "missed deadline"). I've met some users who did not care, but the overwhelming majority does, even for a single click in a 1-hour long concert.
ctrl+f rust <cr>
How scrolling textures gave Super Mario Galaxy 2 it's charm
Ranking to Maximize Economic Value
> Flight is much more convenient

And that’s a big deal when people don’t have 4+ weeks of vacation per year.
My awkwardness has subsided somewhat by being more confident in my conversations, especially during awkward silence. I used to get anxiety from talking to strangers; not from the conversation itself, but the unknowns (how long will this last? is my story amusing enough for tnhe other person? is it polite to stop talking now? do I need to "wrap up" the conversation?) Now if I don't feel like talking anymore, I'm no longer worrying about whether I'm being rude, I just sit in silence and don't add anything else. Move on to your next thought or back to what you were doing and don't imagine the myriad ways the other person may be perceiving it. Once you don't let awkward silence occupy your mind, you'll find your conversations flow in and out much smoother and you have substantially reduced social anxiety.
Newest HSR trains have buffets, 1 per 8 cars.

Configurations for short routes don't have them.

Do you really need a dining car when the longest route in the country is only 8 hours long?

Packaged meals on HSR do worth their price. Whatever meal I had in the past 7 years on the rail was cooked fresh.
FRED

It's an economics and financial data service from the Federal Reserve that has heaps of indicators. They aggregate data from many other sources (IMF, World Bank, etc.) so it's the closest thing to a one-stop service for economic data.
It's biased toward macro / government data though, so you won't have high-frequency private market data there.

https://research.stlouisfed.org/docs/api/fred/
No, they would have to be protected from poaching.
If you're an auto worker, how easy is it to get completely get away from UAW?
From my perspective, Wayland "fixes" things that could allow bad things but were also useful. For instance, screenshots/recording took a long time to be implemented, and is still constrained, because of the security risk of arbitrary programs recording the screen. Because that is a risk... but users still want it. As another example, I use xdotool to inject input to programs in X; in Wayland, that would need to be explicitly supported per-compositer.
Edit: Refusing tracking-free access violates GDPR.[0] That is, unless you explicitly deny access to EU residents.[1]

0) https://www.gdprtoday.org/dutch-dpa-rules-websites-must-allo...

1) https://law.stackexchange.com/questions/29562/is-it-possible...
Yup. Amtrak continues to spiral to its doom by simply not offering services that people want. Ridership is not an issue. The Northeast corridor is full of people who want to ride on Amtrak, but it's so wasteful much of the time and so inconvenient that there's hardly a reason to do it.

I want to go with my bike to new places, but I can't. Amtrak won't allow bikes on most trains unless they're boxed.

I want reasonable food for a day trip. All we get is a horrible boxed lunch.

I want a late train so I can have a reasonable day trip.

I want to know that the train will get me home on time. The delays on Amtrak are insane.

It's more expensive than flying.

What's the point? They offer an uncertain service, at a bad price, with poor hours.

Compare that to Europe, where trains are on time, the hours are good, there are many destinations, I can take my bike, etc. The Northeast is more than dense enough. Amtrak just doesn't care.
Win Big at Customer Satisfaction with Survicate and HubSpot Integration
Ouch, please don't post like this to HN. We ban accounts that do it, because we're trying for something different here: https://news.ycombinator.com/newsguidelines.html. Could you please read those guidelines and use HN as intended? We'd be grateful.
Though you would want to use cheap, non-hydrocarbon-based electricity to do this in the first place. But this does provide a mechanism for safe, civilized countries to have nuclear power and essentially export their energy to less secure countries we may not trust with that technology.
The common phrase "Right to Work" is anti-union propaganda. Pro-union laws don't prohibit people from working but rather exist for the betterment of workers despite what "Right to Work" suggests.
>In well-run organizations, when there is a regular, ongoing need for evening or overnight coverage, it’s provided by people scheduled to work during those hours, who are selected and trained to be able to handle most situations on their own.

It's decently common to have engineering teams oncall for their own services, with a regular PagerDuty shift as part of the job. In that case 5-7 alerts per week is pretty healthy. It sucks that you need to keep your work laptop with you and stay sober / within cell coverage, but even then it's pretty rare to catch an actual outage that requires significant attention.
If you want to see what query is hitting the database, put a trace on the database and watch it. It's trivial to copy and view the explain there. Your difficulties aren't the fault of the ORM, it's your refusal to want to change the way you work that is the issue. Query logs work fine as well, having to look in a log is hardly something any developer should find difficult.
You cannot stop life to get what they want
> You can only use a fraction of the features of a SQL database when you use an ORM because they don't translate to the new paradigm.

Not remotely true. ORM's are great at mapping views/procs, and you can use any feature of the db you want in a view or proc. Using an ORM does not mean not being able to your database to its fullest extent.
>Once the spell is broken, the conserved energy and improved focus and control changes everything.

Agree completely.

"All of humanity's problems stem from man's inability to sit quietly in a room alone" - Blaise Pascal
Microsoft have known since (at least) July https://groups.google.com/a/chromium.org/forum/#!msg/blink-d...
Even those of us with quite a bit of vacation don’t generally want to spend a week of it riding across thousands of miles for what’s often a premium over business air.

I get the attraction—just took the sleeper from London to Edinburgh—but it just doesn’t make sense for routine travel outside of a few relatively short routes like the northeast.
> Whether two or three sensors, any disagreement among them would have involved a more complex system, and would risk necessitating an in-cockpit notification of that disagreement, and the ensuing training so the pilots understand the exact consequences of the disagreement and a procedure for mitigating it.

The in-cockpit notification light, "AOA Disagree," was a paid upgrade [1].

I don't know what the article is on about.

[1] https://www.flightglobal.com/news/articles/boeing-bosses-una...
millennial customers, don’t like it so much. They want more privacy, they don’t want to feel uncomfortable sitting next to people

The post-millennials are going to grow up wondering why there’s absolutely nothing to do but sit at home watching streaming video and endlessly scrolling through social media. I feel privileged to have lived before millennials destroyed everything worthwhile.
it could be that only our brain exists, maybe only mine , not even yours. or not even that. mathematics and information and exustence are figments of the brain too. Existence is only defined as opposed to non-existence. But yeah, even though existence is indirect and subjective, it s OK to accept that it's true, since its not consequential

I suppose that s not a fruitful way to think about it but neither is asking questions about reason and purpose. Even if the universe has both of them, they are just 2 arbitrary points with a trajectory across spacetime.
Enjoying art is a subjective experience. Others might appreciate these illustrations.
California already has laws that protect employees. Google and other tech companies are abusing loop holes in these laws by calling would-be employees "contractors" to get out of paying them benefits and providing job security.
From the article:

"...I care about the speed of the compiler. I am not a zen master of focus, and waiting 10+ seconds is wasteful, yes, but more importantly it breaks my flow. I flick over to Twitter and suddenly 5+ minutes are gone."
The indictment says he tried to extort an entity for 1 Million Euros.
Not difficult to call from C? How does that work, exactly? Wouldn't you need to properly setup the whole runtime (incl. GC) first?
Do Google and other big companies make the same distinction between labor organizing and unions? Or do they quash it just the same?
The authors are associated with the Korea Institute of Brain Science. (Hover over their names in the paper) Ilchi Lee is the president of the institute and the owner of 'Brain Wave Vibration'
http://www.brainkibs.org/About/Greeting.asp
https://en.wikipedia.org/wiki/Body_%26_Brain
https://en.wikipedia.org/wiki/Ilchi_Lee
Intercity rail travel in Australia is slightly faster and significantly more comfortable than a bus, at roughly the same price. Rail travel in the US somehow manages to be slower than Greyhound and more expensive than flying.

I usually avoid flying when equivalent land transport is available and will take less than 8 hours, since it seems like a waste of fuel, but trains are absolutely not exciting when you're sitting in a 40 year old carriage lumbering along uncambered track at the same speed as freight.
> Exception handling tends to feel

do you program a lot with your feelings ?
Instead of xdotool, you can use this: https://github.com/ReimuNotMoe/ydotool
IMHO, journaling is just a means for honest, regular self-reflection. Some people like talking to themselves, some people like writing their thoughts down. Do whatever calms you, I personally like to write things down as it helps me organize my thoughts much better. By that I don't mean I journal everyday, but instead try to put my thoughts on paper whenever I have a difficult decision to make.
I'm so glad I got to experience a cross-country trip on Amtrak last year, before this change. The dining car was a sort of Grand Budapest Hotel experience, a reference to another time that I'm not even sure ever existed. A sacred piece of Americana. Sad to see it go.
DoorDash will change controversial tipping model
September 24 Is World Day Against Software Patents
I think capturing desktop and screenshots should be addressed by standard Wayland extensions with integration with something like Pipewire as far as I know. I didn't follow the progress of that though.

Some details here: https://wiki.archlinux.org/index.php/PipeWire

Some features though are surely missing. Such as support for adaptive sync. No one really is pushing that forward.

See: https://github.com/swaywm/wlroots/issues/1406

As for Nvidia - don't waste your time on their proprietary drivers on Linux. They don't to play by the rules (refuse to upstream), so no need to spend time supporting their blobs.
Ask HN: How do you manage mentally context-switching between technologies?
For those of you who need to regularly switch between programming languages, libraries, tooling and anything else used in software development for work, I'm curious to hear about any practical measures you take to stay afloat and be productive. I've given mind-mapping and flash cards a whirl, but I've found personally that neither have been sustainable in the long-run.

One of my motivating reasons for asking this question is because (as a generalist) I feel like imposter syndrome is starting to get the better of me.
The basic problem with X11 is it wraps a whole bunch of things into one software package. So in theory you have to know about fonts, OpenGL, graphics drivers & memory management, the window model and networking simultaneously to configure and run the thing.

Wayland is a protocol for a well designed future where all that functionality is broken up into separate pieces of software. Wayland handles the window model and most of the other parts already live in their own software projects. The problem is that Wayland makes some changes to the basic window model on the way through that are a big deal and so far there is no great software written that uses it.

Adoption is very slow because the best case scenario is there a Wayland compositor that has feature parity with an X11 window manage and a bunch of weird problems cropping up because screen recording is a to-be-solved problem.

My position from the armchair is that Wayland really needed a complimentary official protocol for how to request another application's graphical output. Not coordinating that means that anything that supports Wayland is going to be practically inferior to an X11 solution. It'll get fixed sooner or later I expect, it isn't a technically hard problem.
Oh one of the best parts of Amtrak is great food and meeting other people.

Makes no sense to attempt to follow airline fare. It's unique in American modes of transportation.
I see a cottage industry forming which will raise prices of rural land due to visibility and environmental campaigning.
Previous discussion about Amtrak’s dining car (around the first time the dining cars end was announced in 2018) here: https://news.ycombinator.com/item?id=16882231
What would you do if you don't get your demands? Strike as an individual?
In modern C libraries malloc is mmap’ed anon pages underneath for an increasingly larger set of conditions these days.
That looks great though, so much info! Thanks!
Most products are either chemical addiction (FB, Coca Cola, tobacco), vaporware (Most B2B), non world changing utility (intuit, JPM)
I think this is intended for screen capturing with Wayland:

* https://wiki.archlinux.org/index.php/PipeWire

* https://pipewire.org
My dad was an industrial engineer for BN and designed natural gas powered locomotive systems (not just just the engine, but the tender, the gas pipelines and filling stations, etc). He was a railroad fanatic. A quarter of the basement was dedicated to model railroading. I have eaten on one of Burlington Northern's executive dining cars. A phenomenal experience, far nicer than anything I've ever seen in any airplane's first class cabin. Wood paneling, brass, sauteed salmon and glass windows so clean you forgot they were there. He went to the Soviet Union during Glasnost and had his own KGB agent. The Russians came to the US to negotiate technology transfer. I grew up in awe of the railroads. Our neighbor worked for Union Pacific. In my world, men worked in rail. I learned research was hard, and development was even harder but the national scale of the endeavor is what made it worthwhile.

I never understood why we never went anywhere on the trains. I went to Tokyo and was floored by the immensity of the passenger rail system. Even in San Diego I would ride my bike 17 miles down to the nearest station and take the Coaster into National City to go to work. And then, I was in DC for a month and I took the overnight Acela Amtrak Express from DC to Boston and back. Gritty, dirty. Like a noir film type ... gritty. For another $50 I could have taken a 1 hour flight after dinner and been in bed at a decent hour. As a citizen, I'm a fan of the idea of passenger rail. As a customer, I'm not a huge fan of Amtrak, at least under current management.
I don't think modern Haskell is a single paradigm language. As I said above, it has good support for imperative programming and lots of imperative code has been written in Haskell. Even the GHC compiler is full of imperative code and uses algorithms with mutation where it makes sense (e.g. unification).
Yes for the ISS. It's the brightest satellite most of the time because it's huge compared to the rest.
They sell the cardboard bike boxes at most stations. The baggage guys would give me used ones for free. When I was in the US the total was $25 for the bike fee and the box. All you need is a pedal wrench and some hex keys to remove the handle bars.

Compare to the airlines fees for bikes. If you have something heavier, you might not even be able to pack it aboard an airplane. Then there is the inconvenience of traveling to and from an airport. Even with an airline, you'll still need to take off the pedals and bars.

Amtrak is not the best, but still better than air travel for cyclists. For the cost of a flight + bicycle baggage fees I can get a room on Amtrak.

Sure the food isn't the greatest, but you can also pack your own and include a bottle.
https://github.com/blue-season/pywarm
PyWarm is a lightweight, high-level neural network construction API for PyTorch. It enables defining all parts of NNs in the functional way.
Another article that just popped up in the local news:

https://www.flkeysnews.com/news/local/article234300792.html?...
I agree dining cars aren't needed on high speed rail because of the short amount of time passengers are on the train. That doesn't mean I can't miss the old 24+ hour trains with dining cars.

I wasn't aware of the HSR buffet. Look forward to trying out!
> Even std::unique_ptr has runtime costs in release builds that a raw pointer does not.

O RLY ? https://gcc.godbolt.org/z/QhbUjI
> A comment there really rang true that many people would rather use google to figure out which direction a station's trains are heading than simply ask the people coming out of the station.

Well yeah why would you bother someone else with a question you could easily answer yourself?
You can have brain privacy, no problem, just as long as the FBI gets a master encryption key, just in case.
What's wrong with 'to see how you program', though? Why is FAANG, large banks, and several fintech companies are justified to use coding challenge and on-site interview, but not 10-15 employees startups> Considering those 10-15 employees startups need good programmers who can act as cofounders while mature companies already have mature filtering mechanism for recently people joining.

Also, about the open-source projects, not all candidate do open-source projects. Most of them write proprietary codes all day and don't have a chance to contribute to open-source projects. (Disclaimer: I'm one of those unfortunate people, as much as I want to contribute)
I played a few rounds, pretty fun!
For those downvoting, I suspect this comment is to be interpreted as an attempt at humor.
CA has also sent voter registration cards to those known to not be citizens in the Real 8D era.
You obviously know what I meant.
If 2 pieces collide while moving, the one that started moving first prevails.
Xv6 for RISC-V
> Makes some really great points, similar to why C++ is not favored for embedded. C++ compilers are just too unpredictable and when trying to meet code limits in 128K, 32K or even 2K of flash, C++ is a nightmare. All of the major embedded SDKs (STM, Microchip, SiLabs, TI, NXP, I could go on) are written in C... and C only.

OTOH Arduino is C++ and works fine for millions of people, I've also dabbled a bit in various AVR, STM32 and ESP8266, all in C++.
Sorry to hear that. What generation iPad and version of iOS? I've only tested on the latest.
et al.
Mine doubled. Got a non sensical reply from AWS. Now back to normal.
The Power of Higher Order Functions in JavaScript (With Examples and Use Cases)
I'm far less worried about commercial companies doing this than I am worried about governments doing this.

Usually when it comes to privacy I can begrudgingly accept that governments will violate it to some degree. This is a field, however, where I think governments must be outright banned from. We must not allow a situation to appear where the TSA or the police will run a quick "brain check" on somebody. It must be avoided. This would be a one way ticket to disaster.
Do you happen to have a link to the guidelines?