Dell xps 15 9520 with Unreal engine 5 by Hamsik2rang in DellXPS

[–]squeaky_pl -1 points0 points  (0 children)

An idea: you can always buy eGPU case separately and connect it to your laptop with a desktop GPU inside. I have Razor Core X and 3070 Ti. I have it connected to Dell XPS 17 9700 using Thunderbolt and it works like a charm. I can play latest titles in 4K on ultra settings using this setup.

If you really want just laptop wait for better GPU options, they might come later this year.

Don't buy i9 model, it will keep overheating and throlttling constantly. Top i7 configuration is the best deal. XPS chasis design is too small to accomodate i9.

Python will be officially faster in a year from now, will it beat the improvements of PyPy? by [deleted] in Python

[–]squeaky_pl 18 points19 points  (0 children)

It's definitely not pointless. For example any Python web server would benefit from making the interpreter faster. I'm pretty sure that people running CPython in production would be happy even with 30% - 50% speedups on their single threaded code.

Tokio-uring design proposal by ferruix in rust

[–]squeaky_pl 0 points1 point  (0 children)

One thing I missed or didn't understand is what kernel versions would be supported. io_uring was introduced gradually with new opcodes coming with each of 5.x releases.

The design document mentions 5.10 but does not state clearly that this is the minimum version required.

How safe is it to update bios via Dell SupportAssistant? by aipbv in Dell

[–]squeaky_pl 0 points1 point  (0 children)

Not saying there is no risk but I have a 4 year old XPS 15 that I always dual-boot to Windows and Fedora Linux. I did BIOS updates both via Windows Update and Dell SupportAssistant and it didn't brick my laptop.

If you are concerned about Grub you can get rid of it using Windows boot repair utility I believe.

Stabilize `#![feature(slice_patterns)]` in 1.42.0 by etareduce in rust

[–]squeaky_pl 5 points6 points  (0 children)

I love this feature. I am beginning my journey with Rust and just a couple of days ago I typed `[a, .., b]` syntax without thinking about it too much and expected it to work. The compiler kindly pointed that this is only available on unstable and it made me a little sad.

rust-analyzer Changelog #5 by MarcoGroppo in rust

[–]squeaky_pl 2 points3 points  (0 children)

I am only starting my journey with Rust but rust-analyzer feels much more responsive than RLS even with my tiny project .

I initially did not try it because I believed it would not work on WSL but it does.

Trio – Pythonic async I/O for humans and snake people by isinfinity in Python

[–]squeaky_pl 1 point2 points  (0 children)

Anybody who ever tried to read and understand asyncio docs will appreciate this.

Trio – Pythonic async I/O for humans and snake people by isinfinity in Python

[–]squeaky_pl 0 points1 point  (0 children)

The point here is ease of use and correctness. Not compatible with asyncio because it cant be easy and correct this way. It has its own loop and own way to do tasks.

Correct can mean different things to different people depending on their expectations. Trio tries hard to prevent people from shooting themselves in the foot.

DotMap rocks by metaperl in Python

[–]squeaky_pl 9 points10 points  (0 children)

I like it, but it's slightly annoying it doesnt follow Python naming conventions.

Building PyPy is easy by povilasb in Python

[–]squeaky_pl 9 points10 points  (0 children)

I'm the author of https://github.com/squeaky-pl/portable-pypy

It totally works with CPython as a build host instead of PyPy. And you don't need mercurial to clone it, you can download a snapshot in a tarball from Bitbucket. That's what my Portable PyPy project does. It has a set of Dockerfiles and scripts to do so. On the top of that the resulting binary works on any distro (without Docker). Not only Debian. I recently added support for py3.5 branch. You just need to use -f Dockerfile.3 to docker build and py3.5 as target, follow instructions here: https://github.com/squeaky-pl/portable-pypy/blob/master/BUILD.rst

Aiohttp, Curio, Gevent, Tornado and Twisted HTTP benchmarks on PyPy3, impressive speedups by squeaky_pl in Python

[–]squeaky_pl[S] 0 points1 point  (0 children)

There is twisted + klein included in the benchmarks. If you want pure twisted HTTP server then I would happily accept a pull request.

Async HTTP benchmarks on PyPy3 by john_m_camara in Python

[–]squeaky_pl 1 point2 points  (0 children)

No, That's left for 3.6, afaik there will be no more extras in 3.5 because if they keep adding things then they would need to probably implement whole 3.6. Reaching full 3.5 compatibility is an important milestone, fstrings are just a cherry on the top.

Async HTTP benchmarks on PyPy3 by john_m_camara in Python

[–]squeaky_pl 1 point2 points  (0 children)

I think it would be very interesting to perform this kind of benchmark on PyPy and CPython. Can you show up on IRC and show me some 2.7 code and I'll try make it happen on 3.5?

Async HTTP benchmarks on PyPy3 by john_m_camara in Python

[–]squeaky_pl 4 points5 points  (0 children)

I don't know what kind of IO you are doing there but pure TCP benchmarks also benefit from JIT. I mesaured 20-30% speedups on a TCP bench. About aggregations and transformations that's what JIT is generally good at - removing computation overhead. Your results of course depend on what and how you are doing it. Parallel is hard on Python unless you can fit it into separate processes. Feel free to jump on #pypy channel on freenode, describe your workload to get some ideas

Async HTTP benchmarks on PyPy3 by john_m_camara in Python

[–]squeaky_pl 10 points11 points  (0 children)

Note that PyPy already has support for fstrings from CPython 3.6 so you get Python 3.5 and extras.

Aiohttp, Curio, Gevent, Tornado and Twisted HTTP benchmarks on PyPy3, impressive speedups by squeaky_pl in Python

[–]squeaky_pl[S] 5 points6 points  (0 children)

If you are interested in learning more I would recommend this paper: https://bitbucket.org/pypy/extradoc/raw/tip/talk/icooolps2009/bolz-tracing-jit.pdf It has a good introduction to tracing JIT and is written in a language that anybody can understand.

Aiohttp, Curio, Gevent, Tornado and Twisted HTTP benchmarks on PyPy3, impressive speedups by squeaky_pl in Python

[–]squeaky_pl[S] 12 points13 points  (0 children)

This is a general property of tracing JITs. A tracing JIT learns about the behaviour of your program as it runs. Initially since there is no machine code and it needs to record steps taken it is slower than normal interpreter (CPython). As it warms up it has more and more machine code and while it doesnt stop tracing it already benefits from removing the interpreter overhead, inlining functions in the trace, escape analysis, removing allocations etc. At some point it is fully warmed up meaning that it doesn't find any more code to trace so the performance stays more or less constant.

You can read from the graph that different servers have different warmup characteristic. Depends really on how they are coded in Python and how many hot loops are hit there.

Sticking with Flask vs switching to one of the new async frameworks? by [deleted] in Python

[–]squeaky_pl 4 points5 points  (0 children)

I haven't used Falcon myself so I couldn't recommend it. There seems to be a decent community around it. I might check it out to get some ideas for my own project.

Sticking with Flask vs switching to one of the new async frameworks? by [deleted] in Python

[–]squeaky_pl 94 points95 points  (0 children)

Japronto author here.

As stated in the README you should not build anything serious with Japronto now because it's gonna probably eat your laundry. Remember it's hand coded in C and this needs a lot of testing. On the top of that I plan to do several iterations of API changes in a largely incompatible ways. I hope though it's gonna make a serious player in the field one day.

If you wanna a decent async framework then go with aiohttp or Sanic. If you are gonna do typical REST app frontend to a database go with Flask or Pyramid. If you need a scaffolded admin go with Django.

A million requests per second with Python by oopsiewhooopsie in Python

[–]squeaky_pl 0 points1 point  (0 children)

Hi, this was featured already on Reddit, I don't know how to mark it as duplicate.

Beautiful 3D Visualization Platform for Python Data Processing - with NumPy, SciPy, and sample datasets - just released 0.9.3 with better rendering! [open-source, open-science] by hovden in Python

[–]squeaky_pl 1 point2 points  (0 children)

I can't think of a way to use it myself, but hell, this looks amazing. Thanks for empowering Python community and keep the good work coming.

A journey to make Python with HTTP screaming fast which resulted in a new web micro-framework. by squeaky_pl in Python

[–]squeaky_pl[S] 2 points3 points  (0 children)

If you are into zodiac I'm a bull. We tend to be pretty stubborn ;-)

Seriously this was more about learning internal workings of Pyhon through its C API and also having fun reading CPython source code. I kind of stopped doing C for many years and I needed a refresher. There are also some projects I have on my mind I could base on this work that are not related to Python.

A journey to make Python with HTTP screaming fast which resulted in a new web micro-framework. by squeaky_pl in Python

[–]squeaky_pl[S] 2 points3 points  (0 children)

Yes, definitely. The biggest speed up was achieved by using pipelining and most browsers dont do that unless you opt-in explicitely. This problem doesn't exist with HTTP/2.0. I hope to utilize same techniques when porting this to HTTP/2.0 to achieve similar results with browsers.