News for hackers. Stuff that matters.

lbolla

Re:Run Python Applications Efficiently with malloc_trim on Tuesday November 17, 2020 @02:30AM (#25121083)
My point is that it does work. I tested with Python 2.7 and Python 3.6+.
Re:Run Python Applications Efficiently with malloc_trim on Monday November 16, 2020 @05:41PM (#25118012)
I developed that tweak for Python 2.7 and I am running in production with Python 3.6. I tested with later Python versions, too.

Do you have some pointers about arenas always using mmap? I'd like to know how that trick can work if that was the case.

Re:Run Python Applications Efficiently with malloc_trim on Monday November 16, 2020 @02:31PM (#25115951)
I discovered a similar trick few years ago: https://stackoverflow.com/questions/35660899/reduce-memory-f...

The idea is to tweak when `mmap` or `malloc` are used by the Python interpreter. One allows memory to be released to the OS right away, whereas the other is not.

It is a useful trick if your application is generating lots of small objects.

Re:Chess Is the Killer App on Thursday November 15, 2018 @07:18AM (#18458633)
Chessbrah is also a very fun channel. https://www.youtube.com/user/chessbrah
Because underwater there is less oxygen, less light and nice fine muddy floors.
Re:Show HN: Easily connect to a VPN in a country of your choice on Thursday January 26, 2017 @01:30PM (#13493875)
To watch Netflix for instance.
Re:Sanic – Python 3.5+ web server that's written to go fast on Saturday October 15, 2016 @01:39PM (#12714890)
What's up with those latency numbers? Seem huge to me.
Actually, one could argue that something is "artistic" if it has the unique property that nobody at all finds it "artistic"...

I recommend the works by Arthur Danto (https://en.wikipedia.org/wiki/Arthur_Danto) for very interesting definitions of "art".

Re:Are We Living in a Computer Simulation? on Monday April 11, 2016 @05:15PM (#11475171)
Actually, "cogito ergo sum" comes from "Discourse on the Method".
Re:Bill Gates loses to Magnus Carlsen in 9 moves on Saturday January 25, 2014 @01:05PM (#7121586)
Re:CIS 194: Introduction to Haskell (Spring 2013) on Monday July 29, 2013 @09:28AM (#6120934)
Yeah, I would agree that head, as it is, looks like a mistake. Instead of:

  head :: [a] -> a
I would code it as:

  head :: [a] -> Maybe a
returning Nothing for empty lists. Same applies to tail.

But others have very good reasons to disagree: http://stackoverflow.com/questions/6364409/why-does-haskells...

Re:So You Want to be A Freelancer on Friday July 12, 2013 @11:14AM (#6033011)
Can you share your experience? How did you get started contracting in the UK? Did you contact a head-hunter or do you find your own contracts? How?
Re:Web Framework Benchmarks Round 3 on Friday April 26, 2013 @03:36PM (#5614964)
Actually, tornado's test uses Mongo, which makes the test quite uncomparable to others using MySQL! https://github.com/TechEmpower/FrameworkBenchmarks/blob/mast...

Ask HN: What should I do if one of my startup founders does not work enough?

I need a suggestion from your collective wisdom. Few months ago I founded a startup with 4 other people. We all come from different professional background, but we have the same age and, within each professional background, we used to have similar roles. We still all have daily jobs, and work for the startup on a part-time basis. We are all equally shareholders of the company.My problem is that...

( Read More... | 8 comments | 5 points | on HN )
Re:EditREPL - Open Vim from within the Python REPL on Monday March 18, 2013 @12:24PM (#5395165)
IPython has this feature baked in the magic %ed command [1].

[1]: http://ipython.org/ipython-doc/dev/config/editors.html

Re:Using Scala to handle exponential growth at a startup on Tuesday December 18, 2012 @10:32AM (#4937909)
No. But their "Hey Jude" diagram is worth a watch! https://www.lucidchart.com/pages/examples/flowchart_software
Re:C++11 and Boost - Succinct like Python on Wednesday October 31, 2012 @10:50AM (#4723042)
My eyes just exploded! ;-)
Corruption in Italy is hardwired in the behavior of people and their approach to life. It's enough to live in Italy for a long enough time to understand how people reason and why corruption is so widespread.

Obviously, being Italian doesn't make me an expert in corruption from a legal point of view, but I am pretty positive to know a bit about Italian mentality and facts confirm that corruption is as common in the North as it is in the South (I can cite my sources, if necessary.)

Don't be so naive! Scientists are not bound by some force of Nature to tell the truth. The accusation is exactly that they didn't tell all they knew about the earthquake, but they hold back the information in order to "quiet down" the population.

Obviously, I don't know if the accusations are true or false, but, knowing Italy, where "famous" scientists are usually very close to politicians, it would not surprise me at all.

This is bullshit, let me tell you. Corruption is everywhere in Italy: North AND South. Public sector AND Private sector. I am Italian, from the North, I lived in Milan for years and I am married with a woman from Rome: I know what I'm saying...
This is way more complex than it might appear. Italian speakers can watch this movie: http://www.youtube.com/watch?v=rROgB5QMgHs&feature=playe... It shows a telephone conversation between the chief of "Protezione Civile" (responsible to react and intervene in case of catastrophes) Guido Bertolaso and a politician in the region where the earthquake happened, Daniela Stati.

Bertolaso first tells Stati that they did badly by saying the media that they didn't expect more earthquakes (as they did the day before, after a small shake that did no damage). Bertolaso added that he would fix this error with the media and send the most important scientists he knows to "quiet down" the population, upset by the previous message and by the continuous shakes. The accusation is that scientists didn't actually report what they knew, but they went in front of the media to "quiet" down the population.

Unfortunately, the day after the big earthquake happened and 309 people died.

They are not in jail, and I bet they will never go to jail. I say this because, as Italian, I've seen way too many processes ended in first degree with a condemnation, and later on, in the second and third grade, ended with an absolution.
Re:Login vs Log In on Monday July 16, 2012 @06:17AM (#4250033)
I agree with your prediction, but it scares me that a medium that should make communications easier will actually put more barriers between ages.

I already do not understand SMS spelling: in 50 years, probably a 30 years old person will not understand things written by a 15 years old person.

Conservatism in schools has the advantage that we can still read Shakespeare (or Dante) without translation. Languages that change too quickly defy their own purpose (i.e. being a common ground for people to communicate).

Re:Login vs Log In on Monday July 16, 2012 @05:32AM (#4249956)
I agree in principle, but where do schools fit in your picture? Schools should teach you the meaning of things and then, only if the available meanings don't fit your reality, then people should recur to "agreement". I like to think that Shakespeare (or Dante, in my language) words weight more than FB posts to define the meaning of things ;-)
Re:Login vs Log In on Monday July 16, 2012 @04:48AM (#4249873)
I think it really boils down to whom you are addressing: people who ignore things are happy to do as others (even if they are wrong -- they don't know!), whereas people who know things care about correctness (and are annoyed by incorrectness or sloppiness).
Re:Login vs Log In on Monday July 16, 2012 @04:04AM (#4249800)
The most annoying thing to me is seeing that popularity is mislead for authority or correctness. Why would the options chosen by the majority of people be the most correct one? Pitfalls of democracy...

Older »