Hacker Newsnew | comments | show | ask | jobs | submit | dirtyaura's comments login

I've been thinking this too.

For example, it is very easy to write badly performing code using ORMs. And yet, ORM is often chosen for good reasons initially to give development speed (e.g. Django forms) The problem with quickly prototyped ORM based apps is that initially the performance is good enough but when the data grows the amount of queries goes through the roof. It is not the amount of data per se, but number of queries. Fixing these performance problems afterwards for small customer projects is often too expensive for the customer, but if there were a plug'n'play in-memory SQL cache/replica with disk-based writes, it would easily handle the problem for many sites.

Configuring PostgreSQL to do something like reading data from in-memory replica is likely possible, but I see that there would be value in plug'n'play configuration script/solution.

-----


I use Reddit for all the other subjects than programming and startups that I'm interested in.

For example, I'm interested in energy production, energy policy and climate change, and there are several interesting energy related subreddits providing different view points and opinions (e.g. /r/energy, /r/climate, /r/nuclear, /r/hardenergy)

Also, I'm currently recreationally training running, swimming and weight lifting and Reddit gives a good view to all of these through /r/running, /r/swimming, /r/fitness and more specific subreddits ...

-----


I did a lot of testing of a few WebRTC platforms last summer for a product idea that we had.

I came to the conclusion that on mobile phones, WebRTC video is not yet usable. Even with just audio on a cellular network, call quality started deteriorating after a few minutes on every platform that I tried. Video without a WiFi signal was hopeless.

I discussed this with an WebRTC expert, and the problems are partly with WebRTC, partly with how mobile operators shape their data traffic.

Also all platform implementations that were considered the best of the breed were bought by mobile chat companies (both SnapChat and OK Hello did acquisitions on this front)

-----


> how mobile operators shape their data traffic

What I've been wondering is if Apple gets any QoS concessions from the carriers for Facetime, because it usually works pretty well on 4G. Not sure if Facetime's quality is due to robust error correction, or because they've been able to wrangle special QCI/bearer status for Facetime data.

> mobile phones, WebRTC video is not yet usable

Once VoLTE + Video becomes common (eg, Verizon Advanced Calling), then it'll be interesting to see the impact on video-call quality, and whether V/VoLTE sessions can be established with the other end of a SIP trunk, and hence (browser) WebRTC from there.

-----


Yeah, Facetime video seems to work well compared to others. It was a bit hard to explain to a couple of business guys, that "no, we are unlikely to get anything close to Facetime quality with WebRTC solution, but I don't know why."

-----


You could try writing a FaceTime dara packet wrapper/unwrapper, which packs your application data into FaceTime video/audio packets, and unpacks it at the receiving end. If the carriers shape FaceTime traffic differently, it should be possible to establish whether this is the case, by emulating a FaceTime connection, as far as I can see. The content is encrypted, so I don't think they can shape traffic based on anything else than headers.

-----


The issue is mostly due to the nature of the mobile IP, rather than inherent WebRTC variables.

However, ORTC does seek to improve with simulcast/SVC, and attributes of ORTC will merge into WebRTC as well, ultimately providing more hooks, finer-grained control and better instrumentation/visibility to the upper layers.

All that said, you can do acceptable quality WebRTC voice and video over 4G LTE today. But you do need a rock solid signal and be prepared to with a fully charged battery if you are not plugged in.

-----


ORTC doesn't really have anything to do here, except nicer control over some configurations that you can already control with SDP munging.

Simulcast/SVC, for example, are irrelevant outside of multiway video. And you can already do simulcast with WebRTC.

-----


ORTC is just an API.

The WebRTC protocol itself is defined in RTCWEB at the IETF and based on the existing RTP and RTCP transports, and SCTP transport layer. I don't think you'll be able to do better.

-----


I get rather fine Skype video over 3G and 4G.

-----


At Tuenti, a cell phone operator in Spain, we have been using webRTC very successfully for audio. In fact, we built android/iOS/web apps to make regular phone calls (to mobile or landline) using webRTC, either from WiFi or 3G/4G networks.

-----


Interesting. Can you tell more about your stack? What did you use for signaling? Did you implement STUN and TURN to by-pass NATs and firewalls?

-----


STUN and TURN, signaling over our XMPP infrastructure, a more or less recent version of webRTC trunk. We published a post some time ago on our blog about the details: http://corporate.tuenti.com/es/dev/blog/Building-a-VoIP-Serv...

-----


Looking forward to hearing more about this on your website, That'll Never Work© News.

-----


In my humble opinion, your comment is unwarranted. I never said that it will never work.

I actually spent several days last summer evaluating and developing prototypes on top of platform APIs (e.g. TokBox, Sinch) and tested the call quality in several different situations (moving from WiFi to 3G, dropping and regaining signal during the call, call behavior while moving in public transport etc.)

I described my experience and conclusion, hoping to spark informed discussion of the topic. Your comment didn't add any information to it.

-----


If the problem (CO2 pollution) is considered serious enough by multiple governments, Government A can join forces with Government C, D, and E and form a trade agreement against B. They can create a trade embargo against B, or have higher customs tax for products from Government B or other kinds of trade sanctions.

Isn't this just international politics 101? EU and US have trade sanctions against Russia at the moment. UN had embargo against South Africa during the apartheid. Environmental issues are no different.

-----


Let's use a real-world example: China. How likely is that to work out? Now well. China gets cheaper oil, can't be easily coerced by force, and there is a large level of dependence.

-----


First, if it works against Russia, it can work against China. It's just harder. Level of dependence between many EU countries and Russian energy sources are comparable to US trade with China.

Second, there's a false assumption in your real-world example that China doesn't want to protect their environment. If the danger is real and serious, they will. Currently they are just playing catch up with economic activity and living standards and at some point the environmental issues will become to focus. There is already raising environmental awareness in Chinese cities due to pollution.

-----


Barkley is not a sports competition in traditional sense. It is more like an ultra-ultra running event meets performance art and the very point of the event is to make it harder. Participants understand this and they are not there to compare their performance (sic) to the previous competitors.

Also, competitors are screened by totally different criteria than their previous ultra running successes: they have to write a letter to the organizer explaining why they should participate. Reasons can be something personal, not that they won Spartathlon in Greece in 2010.

There is a short documentary about the event available https://vimeo.com/97270099, and a full-length documentary making rounds at film festivals at the moment https://barkleymovie.wordpress.com/

-----


It should be noted that this is mostly hydro power. If I recall right, hydro is up to 90% of the electricity generation in Costa Rica and if there is a drought in the country, they will burn coal to support their base load power generation.

Nevertheless, great achievement.

-----


Except hydro isn't really that great of a power source, when the environmental impacts are taken into account. In the US, the most recent trend has been toward removals.

http://en.wikipedia.org/wiki/Dam_removal

-----


A breakdown of the generation capacity is available here:

https://www.reddit.com/r/Futurology/comments/3042kb/costa_ri...

-----


I read about QuickChck over 10 years ago in Uni, I was just reintroduced to property based testing this week in HelsinkiJS meetup and now this Python implementation hit Hacker News.

Question: most of my backend code is rather dull CRUD and business logic code. Are there good tutorials about randomly generating objects with a few of fields and relationships between them and testing business logic using hypothesis?

-----


Have you seen http://hypothesis.readthedocs.org/en/latest/examples.html#fu... ? It doesn't test very much - mostly just that the API doesn't produce a 500 error - but it's a decent example of how you can generate structured data with some constraints. http://hypothesis.readthedocs.org/en/latest/examples.html#co... is also a decent example where the data is more uniform but requires a bunch of massaging to satisfy the constraints.

-----


Given the question is broad, I'll answer broadly:

There is no single solution to track everything. And I believe there won't be, because for a tool to provide value for a specific subdomain of information, it needs to be tailored to that subdomain. For example, Evernote is great for capturing and tracking unstructured information, but bad for tracking numerical information (because aggregating numbers requires structure). If you look my list below, you see that each subdomain can have very specific use flow (e.g. passwords) and generic tool would likely to be really bad for that subdomain.

Evernote for capturing unstructured (or semi-structured) information: thoughts, links, excerpts.

Asana for tasks that need to be done.

Google Calendar for events and alerts.

Dropbox for files & media. For example, I put things like work contracts or flight tickets and other travel documents there instead of Evernote.

Keychain and 1password for passwords.

Various programs to track exercise: different programs for different sports: Strava for running, swimming and cycling, my own prototype iOS app for gym.

-----


it is natural and a good company strategy. Let several teams to produce competing designs that solve a similar problem with different tradeoffs. Eventually one will win inside the company.

For example Google has many many competing data backend projects build on top of Big Table, emphasing different requirements.

-----


And they can also branch out instead of wondering 'what if we didn't make React Native rely on JavaScript and instead just used Objective-C?'. Both approaches will have differing strengths and weaknesses and both teams (and hopefully future teams of new projects elsewhere) will have more knowledge and experience to learn from.

I think it’s quite amazing what Facebook/Instagram are doing. They are creating a legacy that will hopefully inform what Apple and Google do with their frameworks too.

-----


Properly designed C++ library using templates and macros can lead to surprisingly terse application code - not your standard STL/Boost template syntax mess. I've seen it in one of our gaming frameworks, and in e.g. Google's C++ unit testing framework.

However developing the library code itself requires some serious C++ template fu and the abstraction leaks to the library user in the form of complex error messages.

Strategically used, like in this case, it certainly leads more succint and readable code than pure Objective-C alone.

-----

More

Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | DMCA | Apply to YC | Contact

Search: