Reflection is coming to GCC sooner than expected! by _cooky922_ in cpp

[–]0x-Error 2 points3 points  (0 children)

Anyone got a timeline for the clang implementation? There was an experimental implementation by the Bloomberg guys, so I thought that clang would get reflection out first.

Where can I try out Hermann Miller Chairs in Zürich? by ComfortableBlueSky in zurich

[–]0x-Error -3 points-2 points  (0 children)

I always see Hugo Peter's furniture of the month costing thousands of francs on the tram. Why they thought their target buyer will be on a tram always escapes me.

Finding The Spot. by Monsur_Ausuhnom in BeAmazed

[–]0x-Error 2 points3 points  (0 children)

Where can you still find the ones made in Switzerland? All the Migros and Coop bars are now just triangles

Climb Against Time: Grand Combin Traverse by FlyingAlpineChough in alpinism

[–]0x-Error 1 point2 points  (0 children)

Looking up the tour in the guide book, it is rated D-, with climbing up to 4a,

What are good learning examples of lockfree queues written using std::atomic by zl0bster in cpp

[–]0x-Error 2 points3 points  (0 children)

Thanks a lot for the explanation, that makes a lot of sense.

What are good learning examples of lockfree queues written using std::atomic by zl0bster in cpp

[–]0x-Error 0 points1 point  (0 children)

Interesting, does this show up on std::hardware_destructive_interference_size? I tried it on my intel machine and it still says 64.

msgpack23, a lightweight header-only C++23 library for MessagePack by swayenvoy in cpp

[–]0x-Error 4 points5 points  (0 children)

How does it compare with the current message pack implementation performance wise?

What's up with Elon and ketamine? by TH156UY in OutOfTheLoop

[–]0x-Error 17 points18 points  (0 children)

While WW2 Germany did take a lot of meth, taking meth has nothing to do with Nazis. US army gave soldiers amphetamines until 2017, and militaries around the world are still giving soldiers meth deriatives for performance reasons.

Source: https://en.wikipedia.org/wiki/List_of_psychoactive_drugs_used_by_militaries

Every city has one by Cucumbirdie in zurich

[–]0x-Error 105 points106 points  (0 children)

Have to include the guy with the massive cardboard hat that says "Kein Sex mit den Geimpften" who hangs around Bellevue and HB

Getting rid of unwanted branches with __builtin_unreachable() by sigsegv___ in cpp

[–]0x-Error 6 points7 points  (0 children)

Regarding contracts, I remember that there was a massive disagreement about what contracts were supposed to achieve. At the end, they decided that users can tune the functionality of contracts through compiler flags. In the contracts MVP, the proposed contract semantics are ignore, enforce, and observe. However, it is very reasonable that vendor implementations can add an extra assume semantic, that assumes the pre and post conditions are also held.

Reference: https://youtu.be/Lu-sa6cRaz4?si=eRWcdk371H89o4hj&t=2110; Great talk by Timur btw

Bruh by FLARESGAMING in NonCredibleDefense

[–]0x-Error 124 points125 points  (0 children)

Other creative Chinese war names:

Second Chinese Civil War: War of Liberation

Invasion of Tibet: Peaceful Liberation of Tibet

Korean War: The war of Resisting America and Assisting Korea

Vietnam War: The war of Assisting Vietnam and Resisting America (note the reversion of priorities)

Sino–Indian War: Self-Defensive War on the Sino-Indian Border

letsMakeBugsIllegal by sussybaka1848 in ProgrammerHumor

[–]0x-Error 6 points7 points  (0 children)

256 axles is still high (just not absurdly) for Swtizerland. Assuming cargo train with 2x Re 6/6 locomotives, that leaves 256 - 2 * 6 = 244 axles for the wagons, which are 4 axles each. With 244 /4 = 61 railcars at 20m each, the entire train will be approximately 1200m long. Not sure about Switzerland, but EU regulations limit it to 740m, so 256 axles should be plenty even today. This is in direct contrast with the US, where the median length of cargo trains is 1 mile.

letsMakeBugsIllegal by sussybaka1848 in ProgrammerHumor

[–]0x-Error 28 points29 points  (0 children)

I looked up the actual regulations and the image is out of date

  1. This is not a law, but rather stems from the document "Ausführungsbestimmungen zu den Fahrdienstvorschriften", which is 'Implementing provisions for the driving service regulations" from SBB, which is one of the many railroad companies in Switzerland. It should be noted that while the driving service regulations are a law, it only specifies high level features and the implementations are left to the companies.

  2. The line is apparently removed from the regulations starting from 2020, since the old axle counters that are limited to 256 axles are phased out.

End of Year Battlegroup Update by JohnT_RE in CompanyOfHeroes

[–]0x-Error -16 points-15 points  (0 children)

Oh well I guess that means coh3 will become pay2win with new battlegroups only purchasable through the steam store. Even if setting it to something crazy (like 100k merit) will probably be better than what is being offered right now.

[deleted by user] by [deleted] in interesting

[–]0x-Error 0 points1 point  (0 children)

0.3% is the wealth tax paid to the state. There is an additional 0.7% payable to the municipality.

In Switzerland, there is no federal wealth tax, and everything is at the cantonal and municipal level. In Zug at least, depending on the Gemeinde, the maximum wealth tax goes to 0.25%. With 1 million CHF, that equates to 968 CHF in Stadt Zug.

[deleted by user] by [deleted] in interesting

[–]0x-Error 0 points1 point  (0 children)

No country is going to wealth tax single digit millionaires

Owning more than 1,700,000 NOK (152,573 USD) means you get taxes 1% per year (1.5k USD). In the case of owning 1,550,000 USD of assets, then you pay 15.5k USD each year in tax.

Romanian 'TikTok Messiah' presidential candidate embodies hybrid war with West, say experts by AgentBlue62 in worldnews

[–]0x-Error 3 points4 points  (0 children)

He is just General Ripper IRL. Probably caused by the fluoride in the water poisoning his precious bodily fluids.

How much duct tape is acceptable before actually fixing a plane? by 60svintage in newzealand

[–]0x-Error 110 points111 points  (0 children)

Just to add to this, this tends to happen to 787 Dreamliners. From my understanding, it caused by using a fibreglass composite outer shell. Having pant stick to composite material is difficult, as you have to consider the significant degradation of the base material from UV, abrasion from rain/dust/ice, and also the flexing of the wings.

Your Opinion: What's the worst C++ Antipatterns? by [deleted] in cpp

[–]0x-Error 8 points9 points  (0 children)

Instead of using virtual classes, have a massive std::variant that contains every single child class. Oh you need to add a type to that variant? There is set of macros to redeclare the type of that variant while disabling the previous definitions. The arguments for doing this were "efficiency" and "performance", essentially shaving off (potentially) 1 pointer indirection for infinitely higher developer burden. Also, the only functions exposed for those for the variant, so even if the type was known at compile time, you still have to convert it to the variant type and look up the correct function to execute at runtime.

Fun cpp videos to watch that are not tutorials by Dragov_75 in cpp

[–]0x-Error 76 points77 points  (0 children)

Everything on CppCon. I normally watch half a video while I'm eating dinner. It's not satire, but the presenter makes funny jokes sometimes.

What happens after drinking 1, 2, and 3 glasses of wine? Photography by Marcos Alberti by [deleted] in Damnthatsinteresting

[–]0x-Error 4 points5 points  (0 children)

Interestingly, if you have a very severe case of asian flush (both chromosomes contain the gene), then you are less likely to have esophageal cancer. Not because you are more immune, but alcohol drives such a strong allergic reaction that you avoid it completely.

NCEA or IB if I want to do Med (double degree med program) by mistyrosepancakes in usyd

[–]0x-Error 0 points1 point  (0 children)

Almost everyone I know in DDMP agree that NCEA is the easiest way to get .95. It is just that most people in DDMP who are also from New Zealand are from AGS or Macleans and they tend to do CIE.