Better HN
topnewbestaskshowjobs
Log inSign up

devxpy

515 karma · joined Dec 27, 2017 (8y ago) · 421 submissions

https://github.com/devxpy
Submissions

comment 8y ago · link · parent

https://youtu.be/YAFGQurdJ3U

Here is a nice, technical talk on distributed databases

comment 8y ago · link · parent

I hate how this article started out as a genuinely interesting, scientific study of a recommendation system, but quickly boiled down to a meager political debate about kids using technology.

comment 8y ago · link · parent

Thank you, for finally putting this out. I was very confused as to why am I the only one having these strong feelings against how the tech works.

I think the guys over at bigchaindb present quite an interesting solution to the problem Blockchain is trying to solve, without giving up scalability and speed.

https://youtu.be/1NHHmHVCWy0

comment 8y ago · link · parent

Running one gevent hub per core seems viable. Does it support forking? Also I don't think that gevent does preemptive switching.

I can already do multi server just fine, but not everything is in the server domain. Also I don't seek multi-core usage for performance, specifically. Versatility is what I'm going for here.

An Erlang like system can be both performant and scalable to thousands of clients.

The current scope of python really only allows for either one. You can go either multiprocessing, which will give great processing power, but you can only launch so many of them. You can go asyncio route and launch millions of coroutines, but they suffer from performance issues.

comment 8y ago · link · parent

Single core only :(

comment 8y ago · link · parent

It would be really cool to have the sort of Erlang-style processes in python -- where each process is a green process, so don't pay the cost of OS handling stuff, but at the same time you run multiple interpreters so that you still get the benefit of multiple cores [1].

Implementation-wise, this could be made simpler than removing the GIL, if we just fully give up on the concept of shared memory. (This is above my pay-grade, anyone with CPython internals knowledge, please share your thoughts!)

I've been trying to build a shared state system over message passing that doesn't use shared memory at all [2], and I have experienced that OS level processes are a high cost to pay, when you try to do things the Erlang way, launching thousands of processes.

[1] https://hamidreza-s.github.io/erlang/scheduling/real-time/pr...

[2] https://github.com/pycampers/zproc

comment 8y ago · link · parent

That hit hard.

comment 8y ago · link · parent

Finding things funny is a crime now...

comment 8y ago · link · parent

> keeping shaking the money tree

LMAO.

comment 8y ago · link · parent

> Django's Form class hierarchy

I personally liked it. It is a little overwhelming at first, but after you get used to it, it's actually quite powerful.

comment 8y ago · link · parent

I found most of his projects quite useful. Sure, it might involve a bit of overselling, but the API design is really good for the most part.

Also - I don't think you can really sustain an open source project that brings almost nothing, except a really good API (which some people really value) to the table without good marketing.

comment 8y ago · link · parent

Isn't nomad just a skin over KDE plasma?

comment 8y ago · link · parent

https://getsol.us/home/ After 6 months of using this, I can say that this definitely delivers on its promises.

comment 8y ago · link · parent

I have a quite very crude implementation of form fields on my side, which annotates the type of formfield (as a string) along with several other useful things, like id_for_formfield, html_name etc.

--

In your https://github.com/silviogutierrez/reactivated/blob/master/c...

    import {Form} from '../components/Form';
I can't find `../components/Form`. Where is the source for that?

---

Here are the fields I was able to extract, meaningfully.

https://github.com/pycampers/react-pages/blob/417ec24129b80b...

It still doesn't seem enough for building anything serious though.

comment 8y ago · link · parent

I have a similar project, that doesn't require you to setup webpack, and integrated beautifully with django

https://github.com/pycampers/react-pages

comment 8y ago · link · parent

Does anyone have the videotape of this?

comment 8y ago · link · parent

Working on my multiprocessing library, ZProc

https://github.com/pycampers/zproc

It's cool because it tries to bring some creativity into the rather standstill multitasking world :)

comment 8y ago · link · parent

Very nicely put.

People really do need to be taught how to make out buzzwords from real tech; and the major responsibility falls in the hands of universities.

Maybe it's just because most people are just trying make their way out of poverty, and this kind of work _looks_ like a sure shot, get out of slum ticket.

Maybe it's because most people are led to believe that money is the only thing that matters..

comment 8y ago · link · parent

Why does this look like a problem for https://sentry.io

comment 8y ago · link · parent

You might be interested in the parse python library

https://github.com/r1chardj0n3s/parse

comment 8y ago · link · parent

I took a quick look at them and this is just first impressions, so bear with me?

They still look kinda low level to me. Yes, they provide a lot of high-level constructs and data types like python -- But what they fail to do (IMO) is a consistent abstraction.

For example, all of these languages have a concept of pointers. All of them have a distinction between different integers (int32, int64 etc..)

I had similar feelings when I used dart or even java. They're high level, but not quite!

I don't mean to thrash on these languages in any way. I think they have some real value for programmers.

It's just that I've never seen a language just throw everything out of your way and provide you with this extremely high level and easy to reason interface.

Nim actually looked pretty good, but then I realized it was just the significant whitesapce xD

Maybe I'm too biased because Python was my first (proper) language.

comment 8y ago · link · parent

I've been using shiv recently for my django deploys.

You might wanna check it out.

Here is a small readme I put together...

https://github.com/devxpy/shiv/blob/8d8298d21380dcf0b1970856...

comment 8y ago · link · parent

I was just talking to my friend about how in python I can just write "and" "or" "not" instead of the symbol orgy in almost every other language xD

comment 8y ago · link · parent

The main problem isn't the solutions and efforts don't exist, but that core python doesn't care about it.

The core devs don't acknowledge distribution as a real issue -- which makes for a mediocre distribution experience.

Pyinstaller looks great like that, but gets extremely complex for anything serious.

comment 8y ago · link · parent

Thanks for reminding me xD

https://www.destroyallsoftware.com/talks/the-birth-and-death...

It's VERY real

comment 8y ago · link · parent

Well I don't exactly see any attempts to do it..

comment 8y ago · link · parent

Here in India, 90% of teachers haven't touched what they're teaching, like ever. But you still _have_ to study it because you need to give the exam...

Not like it solves anything -- just that there's this side of the argument too..

> I've seen horrible stuff, such as C89 still being thought like it's the only standard available, or gets()...

Youre absolutely right -- although one could argue that the curious will have the decency to look this stuff up (like myself)

The teaching system is still pretty rekt on the python side of things. Its not like you'll find people who actually code teaching at Universities anyway :(

Like now we're just going into how bad the teaching system is. The original argument that python is reaching is a monoculture seems weird to me, when I can't even run the damn thing on a browser..

1
8910
15