deleted by creator
deleted by creator
Good code is not “elegant” code. It’s code that is simple and unsurprising and can be easily understood by a hungover fresh graduate new hire.
I wouldnt go that far, both elegance are simplicity are important. Sure using obvious and well known language feaures is a plus, but give me three lines that solve the problem as a graph search over 200 lines of object oriented boilerplate any day. Like most things it’s a trade-off, going too far in either direction is bad.
Legislators are there to directly reflect the opinions and interests of their constituents, judges are there to have expert knowledge of the law and how it applies to each case uniquely. The first needs some form of democratic mechanism to ensure that they represent people’s current opinions, the later needs a meritocratic mechanism to ensure they are experts in the correct fields.
If judges were the only element of a court I would agree that it would be problematic to have no democratic input, but in common law systems at least that element is represented by juries who are the most powerful element of a court case as they are unchallengable arbiters of fact and drawn through sortition which is even more democratic than election.
Judges shouldnt be elected for the same reasons surgeons shouldnt be elected.
Why is everyone in this thread constantly putting meaningless @ mentions at the top of their replies?
I was responding to your general statement that python is slow and so there is no point in making it faster, I agree that removing the GIL wont do much to improve the execution speed for programs making heavy use of numpy or things calling outside it.
That’s a bit suss too tbh. Did the C++ version use an existing library like Eigen too or did they implement everything from scratch?
It was written entirely from scratch which is kind of my point, a well writen python program can outperform a naive c implementation and is vastly simpler to create.
If you have the expertise and are willing to put in the effort you likely can squeze that extra bit of performance out by dropping to a lower level language, but for certain workloads you can get good performance out of python if you know what you are doing so calling it extremely slow and saying you have to move to another language if you care about performance is missleading.
Numpy is written in C.
Python is written in C too, what’s your point? I’ve seen this argument a few times and I find it bizarre that “easily able to incorporate highly optimised Fortran and C numerical routines” is somehow portrayed as a point against python.
Numpy is a defacto extension to the python standard that adds first class support for single type multi-dimensional arrays and functions for working on them. It is implemented in a mixture of python and c (about 60% python according to github) , interfaces with python’s c-api and links in specialist libraries for operations. You could write the same statement for parts of the python std-lib, is that also not python?
Its hard to not understate just how much simpler development is in numpy compared to c++, in this example here the new python version was less than 50 lines and was developed in an afternoon, the c++ version was closing in on 1000 lines over 6 files.
Nope, if you’re working on large arrays of data you can get significant speed ups using well optimised BLAS functions that are vectorised (numpy) which beats out simply written c++ operating on each array element in turn. There’s also Numba which uses LLVM to jit compile a subset of python to get compiled performance, though I didnt go to that in this case.
You could link the BLAS libraries to c++ but its significantly more work than just importing numpy from python.
Python can be extremely slow, it doesn’t have to be. I recently re-wrote a stats program at work and got a ~500x speedup over the original python and a 10x speed up over the c++ rewrite of that. If you know how python works and avoid the performance foot-guns like nested loops you can often (though not always) get good performance.
The author is Danish, are you so certain that this isnt just slightly awkward usage of a second laguage that you are willing to throw transphobic at them as an insult?
If storage space is important using uncompressed json is a bad choice, if you’re compressing the json it doesnt really matter if you have lots of exceptionCase: False
fields as they will compress very well.
Pretty rich from someone who’s entire position is a strawman
Ah yes, totally got me there with the obvious logical link between liberals over egging Trumps link with Russia → no state has ever or will ever try to push narratives on the internet.
That’s nonsense, even if you pretend Taiwan is a part of China, which is clearly nothing more than a useful fiction for all parties, there is a space even at the narrowest point of the straight that is just EEZ. Which is a region that is free to navigate but the host country has exclusive rights to minerals, fishing etc within that region.
A brand new account whose only posts are pushing Russian narratives, hmmm I wonder what this could be?
I’ve literally never heard that or read anything suggesting that. Britain/Britons has been used to describe the islands and peoples of the north Atlantic archipelago since ancient times with great Britain simply referring to the largest island (i.e. England+Scotland+Wales), as per wiki
The first known written use of the word was an ancient Greek transliteration of the original P-Celtic term. It is believed to have appeared within a periplus written in about 325 BC by the geographer and explorer Pytheas of Massalia, but no copies of this work survive. The earliest existing records of the word are quotations of the periplus by later authors, such as those within Diodorus of Sicily’s history (c. 60 BC to 30 BC), Strabo’s Geographica (c. 7 BC to AD 19) and Pliny’s Natural History (AD 77).[10] According to Strabo, Pytheas referred to Britain as Bretannikē, which is treated a feminine noun.[11][12][13][14] Although technically an adjective (the Britannic or British) it may have been a case of noun ellipsis, a common mechanism in ancient Greek. This term along with other relevant ones, subsequently appeared inter alia in the following works:
Pliny referred to the main island as Britannia, with Britanniae describing the island group.[15][16]
Catullus also used the plural Britanniae in his Carmina.[17][18]
Avienius used insula Albionum in his Ora Maritima.[19]
Orosius used the plural Britanniae to refer to the islands and Britanni to refer to the people thereof.[20]
Diodorus referred to Great Britain as Prettanikē nēsos and its inhabitants as Prettanoi.[21][22]
Ptolemy, in his Almagest, used Brettania and Brettanikai nēsoi to refer to the island group and the terms megale Brettania (Great Britain) and mikra Brettania (little Britain) for the islands of Great Britain and Ireland, respectively.[23] However, in his Geography, he referred to both Alwion (Great Britain) and Iwernia (Ireland) as a nēsos Bretanikē, or British island.[24]
I’m confused, do you think international waters, like shipping lanes leaving the Red sea, are a thing or do you believe might makes right and if you can exert force you control it? If the the former then the US and the Houthis are both in the wrong, if the latter then they are both fine. So which is it?
So you’re saying the Houthis are as bad as the US?
Yes they do. I presume from your stance you are in favour of the US seizing or sinking Iranian ships when they are in waters the US controls just like the Houthis are attempting to do?
Imagine not creating your own universe and going through nucleosysnthesis to create your own silicon. People these days have no sense of craft…