Better HN
topnewbestaskshowjobs
Log inSign up

devxpy

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

https://github.com/devxpy
Submissions

comment 6y ago · link · parent

I gather from these comments that Julia is not a good choice for run-of-the-mill devs that do numerical computation on the side, but might be ideal for someone who's entire job is to write algorithms from scratch. Correct?

comment 6y ago · link · parent

What alternative is there? Its also very easy to loose keys, if your target audience is not hackernews...

comment 6y ago · link · parent

I like the idea that I can just write for loops instead of weird numpy magic, I really do.

But languages doesn't work in silos. I don't want a fast language that I cannot use for writing, say web servers, without rewriting 90% of django.

The proposition of python is that you get acceptable performance with an insane package repository that means you can ship so much faster.

And if you absolutely need to write for loops, use clever things like numba or cython.

Stop reinventing the wheel people.

comment 6y ago · link · parent

Or encrypt the private key by a pin

comment 6y ago · link · parent

This. I often end up writing my own libraries because of this reason. Kinda hard to get into other people's minds...

comment 6y ago · link · parent

Nice approach with annotations in the comments.

I wrote something a little more tounge in cheek a while ago -- I modified SQL syntax to include functions with arguments

https://github.com/scientifichackers/sql2code

comment 6y ago · link · parent

Oh god, what have I seen

comment 6y ago · link · parent

whoa, so you can write like a DSL parser using the rust macro matcher syntax?

comment 6y ago · link · parent

Can anyone please tell me how the author able to use html syntax in rust?

I get that there are macros, but how are html tags valid syntax? Is rust just interpreting the html content as strings?

I've only ever seen C macros, and I don't remember seeing this kind of wizardry happening there.

comment 6y ago · link · parent

This makes a ton of sense to me, thanks for sharing your learnings.

I see very little value in using GraphQL, when you can just write SQL on the client!

We desperately need frameworks to better facilitate this, like Hasura or Django -- DB migrations, permissions, authentication, real-time subscriptions, Admin UI.

My most wanted feature is SQL type providers, like Rezoom.SQL - https://github.com/rspeele/Rezoom.SQL

comment 6y ago · link · parent

whoa, am i doing something wrong? please share thoughts

comment 6y ago · link · parent

I do this, easy to implement, and it works pretty well -

  dropdb $PGDATABASE || true
  createdb -T template0 $PGDATABASE
  pg_dump $DUMP_DATABASE | psql -q $PGDATABASE

comment 6y ago · link · parent

Protobuf can be converted to (and from) JSON for readability

comment 6y ago · link · parent

Hmm, maybe am I wrong on this? Can the down-voter educate me?

comment 6y ago · link · parent

There's a lot of contribution here from Jim keller, a.k.a. the silicon ronin.

He was the one who designed A4/A5 - the very first apple silicon, that I distinctly remember having performance on par with other offerings at the time.

comment 6y ago · link · parent

I wonder if tts readers like google assistant's "read it" feature improve this situation.

At least for me, having 2 sources of information greatly increases the degree of comprehension and reduces eye fatigue.

comment 6y ago · link · parent

Are the swift parts needed for the UI work, or platform specific functionality?

comment 6y ago · link · parent

Yes. Why we don't use total equity instead of what one investor thinks is a good price of their share, I don't understand.

comment 6y ago · link · parent

I don't understand why everyone cares so much about stock price, an almost arbitrary measure of the value of a company, based on sentiments and not facts. Isn't total equity the real indicator of the company's value in money?

comment 6y ago · link · parent

There's an experiment from a flutter core dev -- running flutter on a raspberry pi without any desktop environment.

https://medium.com/flutter/flutter-on-raspberry-pi-mostly-fr...

A DE written in flutter sounds like a great accelerator/toy project for making flutter desktop polished and ready for the masses.

comment 6y ago · link · parent

Oh they did a fair amount of statistics on the surveys. But their data isn't based on facts.

comment 6y ago · link · parent

Note that this is measuring developers' feelings about productivity, not actual productivity.

This looks like social science research, not software engineering.

comment 6y ago · link · parent

I agree that direct connection to a database might not be the best idea, but I dont see anything particularly wrong with sending SQL over the wire.

I'm suggesting something like a hassura that isn't based on graphql, but works directly on SQL.

And ofcourse for specific logic, you can always run a traditional server in tandem.

comment 6y ago · link · parent

Bytecode.

comment 6y ago · link · parent

A white space is just a newline and an indent.

The newline is mandatory, but the indents can be truncated easily using pyminifier - https://liftoff.github.io/pyminifier/

comment 6y ago · link · parent

Ive been wondering for a while now -- tell me, do we really need specialized server logic for every little functionality?

In my last project, almost half the server code is really just converting REST to SQL. Why don't we just use SQL on the client directly?

If its just about authorisation, why not write an auth system for SQL and be done with all this unnecessary server code, once and for all?

I mean graphql sounds so stupid in this context because it's just cruft over SQL.

comment 6y ago · link · parent

You're completely ignoring the flagship killer market here.

You can buy a poco f1 (Snapdragon 835) for 250$ that will perform just as well as any pixel.

For that price you can buy a new flagship killer every year.

comment 6y ago · link · parent

Hmm, fair point, but I do expect the CPU and the fan to at least be to be connected!

The machine quickly jumps to 100 degrees on load, which is something I do care about, from a usability perspective. I have to regularly turn on the aircon to make the keyboard on my MacBook Pro even usable -- something I did not have to do on a ThinkPad T440p.

And then there's the chance of damaging internal components because of the sustained high heat over a long time.

I think the intention of the video, initially, was to "squeeze out a bit more performance.", but it ended up demonstrating some arguably obvious oversights in the thermal solution of a rather expensive machine.

119.

Fixing Apple's Engineering in an Hour [video](youtube.com ↗)

41 points · by devxpy · 6y ago · 31 comments

comment 6y ago · link · parent

Written communication will also give you RSI though
12345
15