Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
lenkite
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
40 ms
·
811.
▲
by
lenkite
1y ago
There are common solutions for the library issue. Authors of libraries for example can force instantiations for a dummy type that checks their concepts. template void foo(Dummy); This can be done at the consumer side as well. I don&#
812.
▲
by
lenkite
1y ago
You need to have something that uses those templates. In your godbolt example, add a struct S struct S { bool M() { return true; } }; int main() { S s; foo(s); // this now will check foo<S>
813.
▲
by
lenkite
1y ago
> the type checking can only happen at the call-site, because you need to know the actual type arguments used, regardless of what the constraints might say. No longer true after C++ 20. When you leverage C++20 concepts in templates, typ
814.
▲
by
lenkite
1y ago
> C++ templates are duck typed at compile time. This is not really true after C++ 20. C++ templates can leverage concepts that specify compile-time constraints and type checking on template parameters during template argument substitutio
815.
▲
by
lenkite
1y ago
They might not give much execution benefit and they may indeed complicate program evolution, but they DO aid readability, document-ability and refactoring!
816.
▲
by
lenkite
1y ago
I find C++ templates simpler than Go generics. With C++, you can at-least get to a design solution. With Go generics: oops this is not possible, oops that is not possible - all because of strange language limitations. Go's Generics are
817.
▲
by
lenkite
1y ago
No idea why the truth is being downvoted so heavily ? X is valued at $44 billion by the financial times as of March 2025.
818.
▲
by
lenkite
1y ago
> Valuation did drop during her tenure Valuation also bounced back during her tenure.
819.
▲
by
lenkite
1y ago
Well, James Gosling was working on the Java Isolates spec, but then Sun experienced financial difficulties and most of the future-thinking JSR (java specification request) work got frozen. Oracle had different priorities after acquisition -
820.
▲
by
lenkite
1y ago
It also deeply confuses international readers. Need to learn American history to to get an idea of what is being conveyed.
821.
▲
by
lenkite
1y ago
We need to invent better languages and frameworks. Boilerplate code should be extremely minimal in the first place, but it appears to have exploded in the last decade.
822.
▲
by
lenkite
1y ago
Well, the history of the existing satellites shows that many of them have exploded: https://en.wikipedia.org/wiki/Defense_Meteorological_Satelli... AFAIK, Congress voted in 2015 to terminate the whole DMSP program. The
823.
▲
by
lenkite
1y ago
This is Congress 2015 decision. The Trump administration extended the deadline by another month.
824.
▲
by
lenkite
1y ago
> All information presented is mostly unverified testimony printed verbatim by the press from untrustworthy sources on both sides. Why do you say its "unverified" ? The commander in question: Brigadier General Yehuda Vach is fo
825.
▲
by
lenkite
1y ago
Feel free to lock down your device. Stick to the Apple Store. You have that freedom. The rest of us want our freedom too.
826.
▲
by
lenkite
1y ago
You are free to pay ~30% extra for your preferred customer experience. The rest of us can leverage discounted pricing. Customer Choice for the win! Also, thinking that all businesses will lock one in using friction and timewasting is not a
827.
▲
by
lenkite
1y ago
Are there only two printer manufacturers in the world ? Do they set a 30% tax on when you wish to print a page from a website ?
828.
▲
by
lenkite
1y ago
It should have been possible to declare and use simple web-components - which use a template and a CSS class - without any Javascript.
829.
▲
by
lenkite
1y ago
Isn't `rg --vimgrep restore_tool | vim -q -` better though ? -q [errorfile] QuickFix mode. The file with the name [errorfile] is read and the first error is displayed. See |quickfix|. If [errorfile] is not given, the '
830.
▲
by
lenkite
1y ago
Because that is the proven way to carry out regime change.
831.
▲
by
lenkite
1y ago
Sorry, I just had to respond to this ridiculous assertion..your "peaceful protestors" were building and firing slingshots, molotov cocktails and even DIY rocket launchers - they were even fawned upon and idolized by the Western
832.
▲
by
lenkite
1y ago
Sure, by that time the coup was successful. Anyone in Kyiv who objected to it would face arrest and incarceration themselves. The vote did not follow formal impeachment procedure under Article 111 of the Ukrainian Constitution (which requi
833.
▲
by
lenkite
1y ago
I also fully support not just reading the call transcript, but also listening to the leaked call so you get Nuland's firm tone. I would reserve very skeptical judgement on the "annotations". Those weren't part of the c
834.
▲
by
lenkite
1y ago
Ok, but I am really incredulous now - If he won the next election even after extensive vetting by EU and a plethora of international observers who called the elections "fair and transparent", then he has completely won the seat
835.
▲
by
lenkite
1y ago
Did you somehow magically miss the part where Yanukovych's election was extensively observed and vetted by the EU and several other international bodies ? The EU’s own delegation — alongside the OSCE and other bodies — stated that the
836.
▲
by
lenkite
1y ago
All politicians "mispresent themselves". Kicking them out during elections is the way they are thrown out in a functioning democracy. Or do you believe Americans should storm the White House and beat up the President anytime a cam
837.
▲
by
lenkite
1y ago
> The US didn’t have anything more to do with this. Only if one is utterly blind and put fingers in their ears, can one truly believe that. Nuland's call was leaked where she was proudly deciding who would form the next government
838.
▲
by
lenkite
1y ago
And all your arguments don't matter. He was a legally elected President - whose election was even EU Vetted by many, many observers and found to be completely valid. He could have been overthrown in the next elections and if that h
839.
▲
by
lenkite
1y ago
Colonial Britain carried out a well-documented and deliberate de-industrialization of India through trade policy, laws and overwhelming harsh taxes. This is very well-known history - you can reference sources online in Wikipedia and other
840.
▲
by
lenkite
1y ago
> I haven't had needed or wanted a dedicated PDF reader in all that time. OK. Now load 100 PDF's. You will need a dedicated PDF reader unless you don't mind wasting a truckload of RAM. Also, browser PDF readers are general
More ›