skysight-inc/HackerNews huggingface dataset:
I wish HN would apply the same rules to discussions about Tesla as they recently have for Bitcoin. It's always the same predictable comments about how Elon's a liar, AP is a scam and Tesla is overvalued and overhyped. Gets so boring.
ActiveRecord is the only ORM that I feel comfortable with. It's great.
I found it useful. "Being in sales" is a moral grey area for a lot of us, so it's interesting to see the response when someone indirectly challenges those that don't share that viewpoint.
Another reason: when you `await` a promise your function pauses until promise resolution and other code will run meanwhile.

In contrast, since JavaScript is single-threaded, calling synchronous functions means only that function will be run and will immediately return to your code, with nothing else happening in-between.

The semantics are very different. Implicit `await` will quietly introduce this concurrency point, which can lead to a variety of bugs due to the unexpected order or execution.
until*

Gotta keep positive!
I'd say for most standard use cases, the same SQL can be utilised across different DBs.

With ORMs, my big annoyance is inefficiency. When you start to scale or add complexity, ORM generated SQL queries can be rather expensive when compared to hand crafted ones.
Sounds like all your gripes are from a naive usage of ORMs.

Rails ActiveRecord, for example, handles ALL your mentioned scenarios (includes, joins, select, Transaction.do, update_all - and you can still run SQL queries or fragments thereof).

Theres a lot more in the docs than you will see in "toy examples".

Of course, not all ORMs are created equally...
OsmAnd routing works OK for biking, but I specifically meant BRouter.

The first thing I noticed was that it's a lot faster - I get the routing results almost immediately, even on a low spec phone (with the drawback that you need additional space for the routing segments).

The generated routes are a lot better, too. They make more "sense" from a bikers perspective, because BRouter is elevation-aware. It also gives tracks that are on official cycle routes a higher priority (can be disabled).
I tested it with trips I usually cycle and it calculated routes that were very similar if not identical to the ones I chose myself. That's what I expect from a good routing algorithm.

Test it yourself: https://brouter.de/brouter-web/
Countries that want to run a budget surplus without taking the surplus from their domestic economy must take it from another country. No government wants to take money out of their domestic economy in a way that harms it.

What happens is that these countries buy the safest bonds possible and those are issued by governments. You are relying on the ability of the government to collect taxes to pay the debt and that ability correlates with military power as having a weak military would be a risk vector. A destroyed government is unlikely to honor its debts as seen with the Weimar Republic.

The rhetoric that the US is going around the world with guns to force people to buy their bonds (and therefore USD) doesn't make sense because countries are voluntarily selling products for USD and then buy US treasuries with the USD. They actually want the military protection.
> The argument is generally that a well-armed civilian populace is ungovernable without their consent.

Do you believe this? How would the populace subsist without food or imports? Maybe this was possible in the 1800s, but I'd imagine guns are the least of the worries now...
That's all well and good but you're still directing your comments at the students. When there's multiple students all complaining about a single person, that's misdirected. Apply some systems thinking here.
I ordered one about 1 year ago, but never received it. Possibly because I didn't have a 'proper' organisation (e.g. a university dept) that I could list in the form.
I don't think it comes from that. Every new model release for, let's say, BMW needs to pass all tests from anew, as it's considered a new vehicle. It makes sense to require homologation for aftermarket parts i would say.Same should be required for any companies OTA updates, just like one update can fix issues, a single update might also cause issues for every car in the fleet.
If `await` could be omitted, every async call would be blocking. Sometimes you don't want that

It’s not a core detail though, you could have ‘nowait’ keyword for that, or a coroutine resume wrapper which returns a future/promise, or a coop-threading syntax like:

result = co.race [
expr1, expr2, expr3
]

The specific form is not important, and Promise is not incompatible with it, they could live together.

Promise/generator-based only cooperative multitasking is a trade-off between low-level layer complexity and userland syntax requirements. One can have first-class stackful coroutines, see e.g. Lua. The reason it’s not implemented in js is purely historical and socially-technical. It’s hard to convince browser makers to make all of their native interfaces coroutine-aware overnight.
It's probably supposed to tell you this is a humorous anecdote about a mistake someone made and not a thinkpiece about all of the valuable lessons this company learned.
Make sure you don't just sell them on the negatives of staying with Google, also show off some of the cool stuff AWS can do beyond what their product currently requires. Maybe Show off how easy Alexa development is, some machine learning stuff, Elastic Transcode, make sure that they realize AWS is both a massive and powerful platform as well as an exciting cloud tech playground.
There are no alternatives in totalitarian regimes, the only other option is to leave. Yes, I have lived in one.
Jump to conclusion and shame. Classic.

How about, just maybe, they use a mail list management system like millions of other companies and PII wasn’t available in tests at all?
Are you protected by GDPR ? If so yes, if not it's just business as usual. Gather as much data and keep them just in case you need them in an hypothetical future for an hypothetical use case
If you don’t test against prod your CD pipeline is missing a critical step.
Pcem is an emulator for PC hardware, from 8088 through Pentium II
It suffers from the same issues all others orms do.
i dont know.... i have been using countour lines and hillshade as well as elevation data to plan routes but it is a manual affair
https://www.motortrend.com/cars/tesla/model-s/2021/2022-tesl...
I generate Typescript types directly from a Postgres database. That works great with Knex and a bit of custom code I've written on top.
That's definitely on the roadmap (as well as a Safari version) but we can't really commit on a date yet.
As grim as that is, some of us still engage as if it weren't, ignore the self-promotion, and soldier on to the next post. If enough people do that, it counterbalances the marketing. HN is a wide but shallow audience. But it knows crappy marketing when it sees it.
I was curious about Disney (the company) after reading this article, and was somewhat surprised that the Disney family no longer seem to have any control or significant share holdings (<3%).

Seems like a hell of a lot divested in just 2 generations.
Not necessarily. Plenty of former colonies are not now partitioned.
Uhhh

>The car is stated to do 0-60 in 1.99 seconds. Does it do that? No, not even close

Can you explain this? If your only rebuttal is "muh 1 foot rollout" I'm pretty sure any reader is going to quickly throw you into the "for some reason, Elon Musk makes this person very butthurt" bin.
This reminds me of some of my… I guess I should call them “non-conscious automated vocalisations”.

For a while I used to greet people with the greeting they’ve just given me: they say “hello”, I also say “hello”, they say “good morning”, I say “good morning”. Fine until my sister greeted me with “happy birthday”, though I did at least notice and stop myself after one syllable.

More seriously was when I was following a different automated greeting. I was in hospital with testicular torsion and the doctor asked “how are you?” — my polite British “fine thanks how are you?” was entirely out of my lips before I realised that this answer was not there one I wished to give and I had to add “well expect for this…”
Having had a lot of experience myself, I sadly can't echo this. A lot of it has to do with stick-and-carrot incentivization, stack ranking, and other stuff.

Unfortunately every place I've worked at sort of accidentally pits their programmers against each other in a sort of "who can get it done first" competition, with those who do a quick-and-dirty job getting credit, and those who clean up their proverbial workbench getting none. We've had gentlemen's agreements to not do this, and have even been able to collectively oust (i.e. get fired) a few serial violators, but there's just SUCH pressure to ship quickly that code review is basically a fictional thing like the flying spaghetti monster.

It's telling that we've got a MLOC codebase, and basically not a single piece of documentation - and every single place I've worked, in almost 2 decades, has been exactly like this.

Enterprise software is a wild ride. :|
>> It wanted people to feel something.
>Yes, that's called emotional manipulation, and it's both bad and not gone.

It is manipultion only if the goal was to manipulate which is not always the case.

For example this is probably my favorite ad of all time.

https://www.youtube.com/watch?v=Q49fDwqwK5E

I enjoy the ad the same I would I good movie - good story, good cast, good music and it made me feel something significant.

It is yet highy unlikely I will be a user of SEB pension at any time. That does not dimish the craftsmenship of the ad itself.

>> 96% of consumers don’t trust ads. (source)
>Thank fuck? Why on earth do you want people to trust ads? What good to society does that do?

Having a society where ads can be trusted would be a great thing.
You're missing another potentially really important part in the comment. Why you chose to use the Haversine distance formula. Since you seem to be calculating the distance between two points on Earth it would be really useful to have a comment like

// Vincenty algorithm too slow for our use case
// and we don't need that level of accuracy.

to make it clear that using Haversine was a conscious choice rather than the first answer you saw on the first question you looked at on Stack Overflow :)
You joke, but there is a profound truth to this. Don’t reinvent the wheel. To be fair, it’s not like I wrote any real code for my auto-responder. I used a slightly janky mail tool that could, if held just right, be used to set up an auto-responder. I should have looked for something a bit more bulletproof and focused, but I wanted to play with this specific tool and see what I could make it do.

Mostly, I’m kicking myself for not thinking to put safeguards in. Dependencies can fail in unexpected ways, and I should have set up my auto-responder to be a bit more defensive.
Undici 4. After a few years since the first
So what? This is the NHTSA job.

In the future every single car accident will be investigated, like it is done with airplanes, that is the advantage of autonomous cars, they log everything before the accident.

That is what made airplanes so safe that the last accidents have been basically suicidal pilots:

You investigate what creates accidents, you learn and take actions so accidents do not happen again. Rinse and repeat.

Lots of the "bugs" they are going to find are not in the cars, but in the roads, like perpendicular road crossings (too common in the US), instead of roundabouts, or concrete medians with sudden changes and no visual clues.
Student loans increase the supply of money. If those students don't take on loans then the government would have to do it. It's very deliberate. And no, someone has to take on those loans. It's just the way things are.
Well autism is sometimes labelled as individuals that are less "self-domesticated". Animals can be domesticated by humans and breeded to be tamer. Tame animals are more sociable towards humans, also have lower intelligenc and brain capacity since alot of their needs are met by the domesticator I guess. See the difference between cats/wild cats, dogs and wolves or foxes and domesticated foxes. Self domestication is the concept that we as humans have domesticated ourselves. At one end of the spectrum you have individuals that are less domesticated and fit in less with society (autistic people or psychopaths: generally lacking some sort of empathy (respectively cognitive and affective because there is a difference). On the other end of the spectrum you have Prader Willi and Angelman which are very tame and sociable but with lower cognitive abilities. https://www.psychologytoday.com/us/blog/the-imprinted-brain/...
This is exactly what makes Tesla so weird. It's very unusual to see so much misleading marketing from someone who has technology lead.

> And I do of course think Elon knows more, but he chooses to trick people to buy Tesla.

Tesla has extremely weak board of directors. Innovator like Musk needs a board that provides constructive counterbalance. It seems that the board is just for the ride and they don't contribute anything.

Tesla executives say in official documents that Tesla Autopilot is just level 2. The sales and marketing hints, suggests, and gives an impression of something much better. Tesla must have lawyers that understand that being smartass and just avoiding being explicit does not give legal protection if there is consumer class action. The court will look at all the evidence and try to figure out what was the intended message.
That's not how risk management works, and it's also not how costs work. You're (more or less) doubling costs, but the biggest risk factors may be outside the control of both teams.

The opportunity cost is the productivity of an entire team of developers who might well be better employed doing something useful.

Plus all the bad feeling when one team "loses."

It's irrational sports cult management - competition good, cooperation bad.
Or maybe it's because people want to build software that is more secure and reliable (something which C does not have a great track record for)? Google are not the main instigator of this initiative, they are adding their support for it.
It is okayish in TypeScript, but in js one subtle missing await also leads to unexpected everything. Mass-await in a language without types is a bad idea generally, but we have no alternatives for “the web”.
I think one reason is using native C/C++ SDK makes it harder to install (compared to pure JavaScript/TypeScript), because you can't assume that compiler is always available. For example, you need to install extra tools to use install node modules with native dependencies on Windows.
I guess it's philosophical, but why should the original artist have the any say on how people re-interpret their art?
They provide the tool to do it: https://docs.osmand.net/en/main@latest/development/map-creat...

There's a brief section there on the configuration files. The ones used for the maps they published are at https://github.com/osmandapp/OsmAnd-resources/tree/master/ob...

(I'm not sure they are the exact files used for the published maps, they are at least close)

You'd then have to edit the rendering styles and such to take advantage of the new data.
True, but the only case where yoy really need to work across dbs is if you are creating a product that allows your customers to bring their own db. Otherwise you are much better off picking a db and sticking with it.
Surprised Team A was still working there!
Your turn of phrase "there's no AI getting stuck..." has me stuck. Are you
assuming that there exist "AIs", as in artificially intelligent entities, like
the kind imagined by science fiction writers and (some) AI researchers, alike?
To clarify, there are no such systems. "AI" is the name of a research field, not
any ability that characterises a class of systems currently known.

This suffices to explain why there is, indeed "no AI getting stuck inot a loop
by a tricky question". Because there is "no AI" at all, certainly not of the
kind that can understand a "tricky question" sufficiently well to stumble on the
paradox inside it.

For example, GPT-3 has no ability to process "this sentence is false" in such a
way as to decide its truth. AlphaGo is not capable of processing language at
all, it is only capable of playing board games and it isn't even capable of
playing board games by reasoning, only by search. AlphaGo searches a game tree
structured as a directed graph, without loops so it's hard to see how it could
get stuck on recursive paradoxes anyway.

In general, such systems as exist today do not have the mathematical properties
of the formal systems described by Gödel, Church and Turing. They don't even
have memories. So they are, let's say immune to incompleteness, because they're
not even incomplete.
That is a very interesting point, and it is solved in negotiations between the teams. One team cannot use a technology that forces another team to change theirs. That will take away the autonomy of one of the teams.

e.g.

If one team decides to use Protocol Buffers for their public APIs instead of HTTP/JSON that is the standard, that needs to be discussed at a higher level. As that decision forces other teams to change their tech-stack, one team cannot make that change unilaterally.

If the team's application is composed by several micro-services and they want to use Protocol Buffers for their private/internal APIs, that is not a concern for anyone else.

The directors or architects will be arbiter of the discussion to make sure that it is taken fast and everybody opinion is weighted in. And, if the end there is no agreement, then the director will take the decision to keep things moving.

The main downside of this approach is when a team changes project and ownership of the code changes hands. In that situation you get a tech-stack that you may not find attractive. Usually the team will end changing that tech-stack to something they are more comfortable with, but it takes a long time.
I thought Shanghai had a pretty large share at this point, nonconvertibility of the yuan notwithstanding.
No, this is what happens when demographic realities make rational behavior impossible.

Old people want to keep their pensions and savings with 0% inflation or even deflation. The one thing they don't want to do is spend money, for obvious reasons. They'd burn through their pension very quickly.

An economy that is not spending money will die. Someone has to spend to keep it going. Interest rates must go to 0% or lower so that someone finally spends their money.
> if they're a mafia in need of legitimacy and survival, that committed too many crimes to welcome honest competition,

If you back down to a mafia in need of legitimacy and survival, you support the mafia, and you become a man without honour.

Such people never returned a punch to the face, and never prevailed.

> I mean we're a city, we have no army, what do you propose ?

For the amount of money an average HK billionaire has, you can buy enough arms from Bulgaria, or Balkans to arm the whole HK population 10 times over.
logging and metrics?
I Found Myself in the Game Industry (2013)
The first thought I had, though, was if some team decided to pull down their prod DB for testing so they had 'realistic data'.

Because that would be a much bigger problem than sending an email by accident.
Commodore 64 and Raspberry Pi 4 = Synth6581
Introducing PHP Sandbox v4.0
Not GP, and I've never used Rails so I'm not fanboying over it, but I've long had the impression that ActiveRecord is at least one of the most sophisticated ORMs; it wouldn't surprise me if it handles more complex cases better than others.

I think my preferred style (vs. full ORM or raw SQL) is that of Diesel (which is incidentally from a (former?) maintainer of ActiveRecord, Sean Griffin, though I think he may have since stepped back from it) for Rust - it's more like 'SQL bindings' than 'ORM's typically are or grow to be; so you pretty much write SQL, just in Rust syntax with type checking etc. instead of actual SQL in one big Rust string.
> These were wars waged between two empires. China wasn't some sort of blameless victim

I would invite you to learn the history of the period and place because that's painful to read.
Competition between employees can be really bad as well. In general you want to be working in a non-judgmental environment where people are not afraid to ask questions, share their ignorance, and teach others what they need to know.

If you often find yourself not daring to ask questions, or display your ignorance, maybe you should think about moving on.
in the comments section

> ... Those photos are mine and yet no one contacted me for any information.
Excess deaths and SARS-CoV2 vaccinations in Scotland
> 3 days later he accosted me in a different building and berated me for thinking setjmp()/longjmp() was better! I never got the chance to explain myself but I really think it doesn't matter.

I think this is sorta emblematic of the problem. People respond to the same stimuli differently, for some people, this would completely ruin their day and leave them terrified.

I want to believe that folks like Felleisen don't think they're being malicious, but they fail to empathize with others and are sometimes oblivious to the power dynamics. Over time they get used to not being called out for their behavior because people start to facilitate it for a variety of reasons. Felleisen's opinion carries weight far more than some random student. A disparaging word, even in passing, could break someone's career. Certainly people should learn to grow a bit of a thick skin, but there are many people like this comment [1] where Felleisen has crossed a line and is just clearly abusive. I can't imagine having an experience like that, then think about the fact that he might be on the committee reviewing your dissertation.

I tip my hat to you that you are able to walk off such things, but not everyone can do so and failure to empathize with that reality is a major problem in society. Nobody should be babied, but nobody should be needlessly berated.

> He is pretty direct and obviously gets results.

I really dislike this train of thought. I've heard it before and not once have I seen it as a truism. It is excessively simplistic; never mind how the sausage is made, as long as the sausage tastes good? Universities expect professors to generate grants. If you burn out 5-10 grad students a year, but you keep the money flowing in, the university will not really question it, but there are 5-10 promising careers that have been destroyed.

[1] https://news.ycombinator.com/item?id=27546538
patio11 shared on Twitter how he pushed a faulty code to prod *just before changing apartments* so that it started sending email, sms and calling hundreds of people every 5 min for 13 hours:

https://twitter.com/patio11/status/1405704339969220615

https://twitter.com/patio11/status/1405706868110987269

https://twitter.com/patio11/status/1405707285268103169
Or it reveals?
Kind of gross analysis written by someone who's been employed as a coder for max 2-3 years.

Your liquidity and value are nothing - NOTHING - compared with technical debt and lock-in. You look at this market as a new coder and think you understand it, but you have no clue. Here's an example. What good are any of your skills if you have to spend a year tearing apart some code written in 2004 ...even if you get paid $300k to do it? How far forward have you put yourself? Conversely, if you write some code right now on the arm or let's say, $60k +20% for a startup, and it goes big, are you fireable? I guess it depends on your relevance to the company.

Nothing here means anything, because liquidity of skill is a concept only argued over by people who lack both. The firmament is necessity. The guarantee of success is your indispensability. Then, God help ya cause you and your clients will unto death not part.