I thought that this was a GCC extension(you need to use #define n 10 instead of int n = 10). Is this not the case anymore?
HN user
turndown
On box mods(the big vapes you might recall starting to see 10-15 years ago) there is a chamber up top you have to manually fill with nicotine. This can be a bit annoying to do but the real problem is remembering to bring liquid to refill with.
That’s really the only negative to the large box mods, other than having to recharge 18650 batteries all the time. But disposables are usually much smaller(easier to hide if you’re in school), use nicotine salts(which are much more potent) and they usually last a long time - sometimes 20k hits. So these aren’t “bad” products, they have a lot of selling points.
This is all well and good, but just because something came from before doesn’t mean it was a good idea then, or especially now. You’re basically citing survivorship bias. Of course something still used from the 80s is well made, otherwise it would have been replaced 30 years ago.
1998 - 2009 was a tough time to be a Windows user
Is that true? I was too young to really have an opinion but to me most people cite XP and especially Windows 7(ignoring Vista which was bad) as the height of Windows. Of course outside of Windows, like mobile, it really was bad but if we’re just talking Windows then I can’t help but disagree.
Just because we are natives of this universe does not mean its behavior or characteristics will be naturally sensible to us. There is no “real” reason it should be something “simple” or reasonable to us. The universe simply is; us as well.
I really cannot until this business model FAANG has come up with in the past 20 years where they are somehow owed money by developers for creating services and products for a platform is completely repudiated. I owe you money because a user clicked a link in my app and then bought something? I am so glad I have never written a line of code for an Apple product.
I imagine you got that code snippet(or a similar example) from somewhere but to me the fairly obvious problem is the chafing between the C and C++ world. %s is for C style strings and I have to imagine that printf function is in the C world. The String(“Hello world…”) is an object in C++ world so expect weird behavior when you try to combine them. As you say in your edit, SSO will make this even weirder.
And that’s just for your first recursive descent compiler. One thing to remember is that you will also one day want extended functionality in your language and either implement C FFI in your language(straightforward or even freely done for you depending on language) and call some C library for the purpose or you have to implement the functionality somehow. So you end up writing a lot of stuff you wouldn’t otherwise.
IMO compilers make you a lot more mature in recursive algorithms and trees, and then after that much more conscious about what exactly the code you write resolves to in terms of that languages semantics. Learning how closures work(variable capture and having to traverse the scope stack to find bound variables) is also a positive.
Intel is coming out with an improved x86 instruction set that removes a lot of the cruft, called ‘APX’ for advanced performance extensions.
They have been sending out new rules every few years. You just haven’t paid attention.
I’m wrong. Fourth paragraph from the bottom, last sentence they say “normal resource limits.” I thought that meant “the limit of something called normal resources” not the normal amount of the resource’s limit. Probably because I was trying to find out the exact same question as OP and thought that was it when I read it. I wish articles explained names more specifically sometimes…
Programs are tightly coupled to textual representations because a compiler is a textual representation transformer. If you deviate from the accepted textual form then the compiler is generally clueless to do anything - that is, it can’t read your intent.
Is option 3 exactly what you’re supposed to do? Freezing your dependency graph and/or explicitly denoting what version of the dependency you want are your best bets for avoiding problems like this
Seems to be “normal resources”, where normal probably meant file descriptor based.
I can guarantee you a blog post detailing how to do this would go triple platinum
If you are experienced then I’d say skim whatever sounds interesting from chapters 1-3, then do chapters 4/5 as they contain most of the interesting stuff.
10 years ago was 2014. What python code are you talking about? Deprecated, sure, and some things have been taken out of the standard distribution because nobody would maintain it(or there were reasons to not maintain it.) 2->3 conversion was 16 years ago.
I wouldn’t say they explicitly mention ASan, but in general you will see certain well known C++ developers/community members insist that with a set of sanitizers you won’t have to worry about the kind of things safety focused programmers would like added to C++, all the time never mentioning false positives.
I worded that part poorly, and did not bring up what really bothers me about it, that he tried to deny that there was a genocide in Cambodia. I agree with what you said. The idea that the US is innocent in Cambodia or really anything going on in that part of the world at that time is beyond false.
Intellectual giant whose shadow will be cast deep into the future. I don't need to review any of his work wrt to CS or linguistics to tell you that his legacy will be massive.
I think Manufacturing Consent should go down as one of the most important books ever written in our culture. He was right about much, but wrong about much also.
His beliefs on Cambodia strain credulity and I still have trouble separating that Chomsky, so bent on drawing an equivalence(however valid) between American actions and the Khmer Rouge that he missed the point entirely, and Chomsky the visionary philosopher who I admire deeply.
perhaps less useful neither-ranked-nor-keyed access, wherein the trees are kind of a double-ended queue with just "edge access"
For normal btrees this is absolutely true. For b+trees you will see this basically everywhere.
I’d recommend learning a lot more. For example, Phillip was actually an innovator in siege equipment and was the first person in Greece to really take towns by besieging them. You can count on two hands all the times in Greek history before Phillip where a city fell without the help of people inside the city betraying it. After, this changed a lot. Phillip probably wouldn’t have taken Tyre - but you forget that the only reason Alexander decided to take Tyre was because Tyre had surrendered but wouldn’t allow Alexander to come into the city for a religious festival honoring Heracles. I don’t think Phillip would have gone the same route.
if Philip II was so smart, why was it Alexander who became Lord of Asia and not him? … So much for the pragmatic genius.
Phillip II went from captive in Thebes to overlord of Greece. In Ancient Greece where there were many small city-states this involved a lot of gaining control 1 by 1, via diplomacy and war. This takes a long, long time. About 23 years, as it turns out.
Did Philip even have the ambition or desire needed to conquer Persia?
Of course he did. He founded a pan-Hellenic league and installed himself as its leader. The League of Corinth’s first act was to declare war against Persia. He had a large Macedonian force already in Asia Minor when he died. The invasion of Persia was already underway when Phillip died.
Would he have had the tolerance needed to actually rule these areas that Alexander demonstrated (i.e. marrying Roxane despite it upsetting "old guard" generals, keeping in place a lot of the local government structures/making deals with people like Porus) or would he have insisted on violent rule that would have created conditions ripe for rebellion?
Marrying someone to establish an alliance was a day one strategy for Phillip II. Macedonian royalty were expected to have multiple wives. Phillip never insisted on brutality when he could have his way peacefully. Considering Alexander was the one who leveled Thebes I don’t really think setting up a wise, peaceful son vs violent, foolish father archetype is accurate.
Your post is great and provides an elegant solution to the syntactic case for parameters, but it also lacks almost all detail on how this would work in practice. Say I’m writing the `void food(char a[..])` function. What are the semantics of this fat pointer type, exactly? How do I access the size? What is the ABI around this like? How is the size set on a fat pointer? It just requires so much extra stuff to get it into proposal shape.
In addition to the other linked post, this one https://faultlore.com/blah/abi-puns/ would give you a good idea of how this bug in LLVM was found
Others have pointed out that this amount is comfortable enough relative to GDP, but I also want to point of your method of arguing is dishonest. There will never be a day where the entire debt of a country is divided up among the citizens and then they each would have to pay that amount, so saying it’s 60k debt per each soul is kind of like a football fan saying that each Kansas City Chiefs fan each won .00001% of a Super Bowl Trophy last year. It’s sovereign debt.
I mean let’s be honest adults here - a 300B national debt is literally nothing. Not even worth discussing in a post or even acting like it’s a problem. Ireland ran a 4 billion euro deficit last year; again this is meaningless. You can dislike these policies you mentioned(on whatever basis…) but let’s not act like Ireland is burning here or something
The actual problem is that citizens get into their head that every immigrant that comes into the country is there to take jobs from citizens when the opposite is the case; immigrants are desired by the country to fill roles citizens don’t want to take.
Chicago had a grid system before the great fire, maybe NY is a good example of this but I do not know. See this[0] 1869 map which shows Chicago was already quite regularized
0: https://upload.wikimedia.org/wikipedia/commons/a/a8/1869_Bla...