Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
fiedzia
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
24 ms
·
241.
▲
by
fiedzia
7y ago
> if this exceeds some limits or bogs down system for more than X milliseconds, disable and give error That's exactly what kernel will do
242.
▲
by
fiedzia
7y ago
> The fact that the author has to use a bunch of different tools to manage Python versions/projects is intimidating. It just shows that Python is used for a lot of purposes and there is no single tool that handles all usecases. >
243.
▲
by
fiedzia
7y ago
Because GIL is useful, preventing you from shooting yourself terribly in the foot among other benefits. Languages with better concurrency support (main reason for removing GIL) were designed from scratch for that purpose. You can't re
244.
▲
by
fiedzia
7y ago
You send a query. Service determines the is more than one page of data and last id from first page is X. Next request checks for data matching query and id>X. All it needs to do is find first page of results and check if there is a chanc
245.
▲
by
fiedzia
7y ago
Because abstraction of pages is to expensive to maintain for larger datasets, and very confusing for data that is dynamically generated.
246.
▲
by
fiedzia
7y ago
> dic = {k: v for k, v in dic.items() if k in other_dic and v == "bar"} dic.iter().filter(|k, v| other_dic.contains(k) && v == "bar").collect(); it's one line, though I'd format it as 3 for readabili
247.
▲
by
fiedzia
7y ago
> name, age:{int, min:20}, address: {street, city, state} why "int" means type, and "street" does not? > active?:bool it seems that this is legal: active?: bool, someattr?: bool T now which one was set? This might
248.
▲
by
fiedzia
7y ago
> For performance, IMO in this order you should consider (1) PyPy, (2) multiprocessing, (3) cython and/or c-extensions They are all very limited in what they can do (neither can replace others) and bring tons of complications. Moder
249.
▲
by
fiedzia
7y ago
>I suspect they could have simply rewritten with the same language, engineered it better and applied all the lessons learned No, you can't do that. There are many benefits that come from underlying technology choices that you can&#x
250.
▲
by
fiedzia
7y ago
I can't wait for "april fools" announcement after thousands of farmers will paint their cows.
251.
▲
by
fiedzia
7y ago
> you can make a flat text file which doesn't map correctly onto AST; if you operate on AST, you still can create invalid AST, so not much of a change there. > There are disputes about how the text file should be formatted Solved
252.
▲
by
fiedzia
7y ago
When you'll have 4 cores per cpu, there will be usecase fot it. Generally IO is catching up with cpu performance, so it makes sense to do this.
253.
▲
by
fiedzia
7y ago
If you are impatient, tapes are not for you.
254.
▲
by
fiedzia
7y ago
> Why isn't there a builtin way to create a redistributable executable with all my dependencies? There is and it's called docker. The other issues could indeed be fixed with something like poetry.
255.
▲
by
fiedzia
7y ago
If you have doubts, call them and ask if they send it.
256.
▲
by
fiedzia
7y ago
Python+sphinx allows to get that (and a lot more).
257.
▲
by
fiedzia
8y ago
> You might be surprised how many of the real world's distributed databases are basically sharding over local databases written in C I probably would be, most of the ones I hear about or use aren't. When it comes to data storag
258.
▲
by
fiedzia
8y ago
> Studying past highly-successful systems and understanding why they made the choices they did is not just useful but essential. Studying currently used and developed systems for people who will be designing future ones and enter job ma
259.
▲
by
fiedzia
8y ago
Precisely. I bought from them because I know that Linux will work - and it did flawlessly. I am not even using their distro, standard Ubuntu or Kubuntu has no issues, and I can't say the same about many other laptops.
260.
▲
by
fiedzia
8y ago
No, the litmus test would be "can I reason about generated native code produced by this line of C". And you can't do that today. This leaves you two options: either switch to something where you can, going lower than C to be
261.
▲
by
fiedzia
8y ago
It is, but non-embedded grew many orders of magnitude above that, not just in terms of size but also in terms of different branches.
262.
▲
by
fiedzia
8y ago
> I'm pretty sure the Linux kernel, BSD kernels, MySQL, Postgres, gcc, etc. will all be with us for quite a while. Yes, they will exist and be used somewhere, but when people design a new database or compiler today, C is not the lan
263.
▲
by
fiedzia
8y ago
Not in my experience. Recruiters may be clueless, but they will only pass what was given to them. Companies with well-defined requirements will either make sure they have recruiters who understand what they require or copy it precisely, or
264.
▲
by
fiedzia
8y ago
Tons of people repeating "C gets you close to hardware".
265.
▲
by
fiedzia
8y ago
> precursor to studying kernels or databases or compilers While widely used kernels are still written in C, new ones are often not, and vast majority of new databases isn't either. Its java (Hadoop, Solr), Go (InfluxDB), Rust (Tikv)
266.
▲
by
fiedzia
8y ago
> - The router(s) > - The printer(s) > - the mobiles and tablets > ... All of those do contain some C, but the ratio of it to all the js/java/python/swift etc. on top of that (because this router has web, ui, mobi
267.
▲
by
fiedzia
8y ago
Its certainly not how the OS and its runtime works. It may make sense when you have to support range of different hardware architectures, but its not really something you want to have by design. Limited range of supported hardware and nativ
268.
▲
by
fiedzia
8y ago
Its a bad idea. You will ignore all the benefits of running native code: performance and access to low level features.You will not gain portability because every platform will have different APIs - those are not part of wasm project.
269.
▲
by
fiedzia
8y ago
Control population to have less people.
270.
▲
by
fiedzia
8y ago
> The business / stakeholders, can't agree on what data is needed and it is constantly changing You are about to spread this chaos everywhere. If they can't decide on what to store and how, nobody will be able to make sens
More ›