HNHacker News
TopNewBestAskShowJobs

petr_tik

214 karma · joined February 17, 2016

submissionscomments
petr_tik··on LondonGophers – “The 'Go in Production Experience' Experience” (2020)
heart warming story about a persevering individual getting into professional programming
petr_tik··on Microsoft Refuses to Open Source VSCode Python Language Server
Other servers like clangd have documented extensions, but I see your point. I’m glad the protocol is discussed and developed in the open - I think it’s really helped the IDE story in other editors.
petr_tik··on Microsoft Refuses to Open Source VSCode Python Language Server
> by forbidding the use of their LSPs in other editors

How can they prevent my, let’s say vim, client from connecting to a closed-source server if they both speak the same protocol?

petr_tik··on CS50 for Lawyers
I tried to find the curriculum structure for this course to check if it involves any of the topics you brought up, but could not do it.

If this course doesn't include relevant legal topics, do you know any other "programming for lawyers" course that you would recommend?

petr_tik··on Ask HN: What was a book that changed your life?
Can you please share what insights you gained from “the art of ...” and how you utilised them to accomplish more in the last 5 years?

Have heard many good things about the book - curious to get some concrete anecdata

petr_tik··on Advanced Compilers: Self-Guided Online Course
What strategies do you find most effective to understand what’s going on in the codebase then?

How informative is git log/blame?

petr_tik··on Advanced Compilers: Self-Guided Online Course
That sounds pretty cool. Do you get a choice of what kind of project you want to contribute to?
petr_tik··on Advanced Compilers: Self-Guided Online Course
As i mentioned in another thread, a uni course that has students work on an existing codebase instead of writing something from scratch might be even better - though harder to grade.

Imagine if one could do a major feature contribution to clangd/pyls/rust-analyzer as part of their advanced compilers course. The student gets a better understanding of (open-source) software development practices, gains a deeper proficiency in the language (not just the APIs), the project brings new contributors and users (including the student herself) benefit from the new feature.

Double bubble!

petr_tik··on Advanced Compilers: Self-Guided Online Course
Andy Pavlo of the CMU DB fame echoed this in one of the intro video lectures to one of his courses. He said his contacts in the industry valued people, who can navigate a large codebase productively. Most uni courses seem to involve writing a "toy" solution from scratch, which is seldom the case in professional programming.

He designed the course to be an exercise in working in an existing codebase that one needs to understand before adding features.

I guess that is one of the many reasons CMU grads kick open the door into many companies.

petr_tik··on EU leaders agree to cut emissions by at least 55% by end of decade
Not really a level playing field, is it? The EU are obviously trying to get a competitive advantage over the U.K. with such a low target
petr_tik··on Eric Schmidt has applied to become a citizen of Cyprus
"The only country" that you know of.

According to this, https://en.wikipedia.org/wiki/International_taxation#Taxatio..., Hungary, Myanmar have the same as the US. Spain and Turkey and several others have it for some citizens.

petr_tik··on Ask HN: Who is hiring? (November 2020)
Don’t bother applying if you don’t have a CS degree - it’s a hard requirement for them
petr_tik··on No More Bold Visions of the Future
Can you please share how you’ve lent your privilege before, so I know what you mean by that?

Also, if you have children and one of them secures an offer to study in Cambridge, MIT, your country’s equivalent of a prestigious university - will you tell them to turn that offer down to lend their privilege?

petr_tik··on C++ still isn't cutting it
I assumed "enormous attack surface" was referring to real systems, not toy examples. AFAIK, even C++ needs more than the std library to solve business problems in the domains I am familiar with. There are many ways to manage dependencies including vendoring in header-only libraries, where my point about the lack of tooling and clunky UX still stands.

I just want to use tools that help me get stuff done. C++ has had a 30-year head start, why can they not see the overall value-add of a default build and test tool and a format for package declaration and management.

All integer types have "checked_" arithmetic operations, which return None in case of overflow. https://doc.rust-lang.org/std/?search=checked_

petr_tik··on C++ still isn't cutting it
Security

First of all, the proliferation of header-only libraries that people vendor into their Cpp projects has the same attack surface. Additionally, there is less tooling to help you track vulnerabilities in Cpp dependencies and upgrade when fixes come out. If you do rely on external cpp deps, then you must have a code review process before those deps are whitelisted for use.

Now, you can extend this code review process to rust crates.

Run a security review of a crate after which that crate is pushed to an internal registry. Every external crate upgrade can go through the same security review process until which point developers will build with the old version present in the internal registry.

In the context of a large enough organisation, an increasing number of crates will become internal, thus solving the trust/responsibility issues.

by no means, do i suggest that crates is unhackable. That's why I want to raise awareness of already existing infrastructure and procedures to vet code before including in your systems.

Safety

Before we get to ownership and some thread-safety, how do you explain the fact that integer addition and number conversion are safe operations in Rust, which throw/panic when they fail instead of the default Cpp behaviour, which _silently_ corrupts data?

petr_tik··on A follow up to Coinbase being a mission focused company
Why is the manager talking about religion and sinfulness of certain private preferences at work? They are unprofessional and I would ask them to stop such conversations. Should they persist, I will raise it and if need be - start thinking about working elsewhere.

If the first manager fires her because of her gender, we can take him to court for unlawful dismissal.

There are many mean individuals out there. That’s because we all have capacity for discrimination and ultimately violence. The call to stop discussing politics at work might result in fewer such frictions and keep us focused on the job at hand. A more productive and socially cohesive outcome in my opinion.

petr_tik··on The majority of 18- to 29-year-olds in the US are now living with their parents
I don’t understand why you are downvoted. Millions might, not necessarily though, be an overestimate, but I agree with the analysis in principle.

Disclaimer: I’m an immigrant.

petr_tik··on The majority of 18- to 29-year-olds in the US are now living with their parents
If you are London based, you should also factor in that London real estate’s qualitative transformation in the last 40 years. It used to be real estate, you know, local people buying homes to live in. Now it’s one of the best performing asset classes in the world. You aren’t competing for property with your mates with a big inheritance. You are competing with dodgy oil money that needs to be laundered and more honest international investors told to diversify. The rule of law is a precious and rare component of legal infrastructure, so a lot of money is diversified into jurisdictions with strong guarantees.

I’m generally a pro-market person. In the case of UK real estate, I support a ban on non-residents buying property similar to what Canada have.

petr_tik··on The majority of 18- to 29-year-olds in the US are now living with their parents
I wholeheartedly sympathise. My interpretation is slightly different. The working class aren’t giving up earning power as much as the western central banks are inflating it away with endless money printing and support of Wall Street that is supposed to trickle down to Main Street. It seldom does. Instead it’s used for stock buybacks and further entrenchment of inefficient firms that would have long collapsed in genuinely free market conditions.

I interpret the “capitalists are screwing the working class” as a) erroneous b) long-term dangerous c) convenient way for those bureaucrats to divide and conquer. Meanwhile they take risks with our economy without accountability.

petr_tik··on Apple Fitness+
Pointing out that someone is white is about race and I don’t see why we should bring race into this.

Are Nike basketball sponsorship deals targeted at black people or are they targeted at the most successful and famous basketball players regardless of their skin pigmentation?

petr_tik··on Apple Fitness+
I watched it too and I failed to see how the whiteness of those people was relevant. I can understand how skin pigmentation may correlate with income in the US, but that’s an American problem not a property of the skin colour that Apple are not required to solve
petr_tik··on The Long-Term Stock Exchange Opens for Business
Citadel securities are famous for their long-term investment horizons.

100 milliseconds is practically an eternity

petr_tik··on Ask HN: Who is hiring? (September 2020)
don't bother applying if you don't have a Computer Science degree. Turns out it's a hard requirement.
petr_tik··on Interview with Zig language creator Andrew Kelley [video]
> But even with all these layers in place, you still need an actual strategy to run at the end of the day. Everything in the quoter can be optimized to hell, but if the strategy module is spinning for 1000+ microseconds because it's running some bloated ML model, then none of that really matters.

From what I have heard, Optiver have a performance lab, which replicate real conditions with an exchange replayer and they can measure wire-to-wire latency for every release.

Hiring people for their maths chops as quants, you probably don't expect them to know about HW-level optimisations at the beginning of their finance careers, which, I guess, is the reason for such a performance lab. Build tools that help people bring their best skills to the table and catch regressions.

petr_tik··on Interview with Zig language creator Andrew Kelley [video]
Thanks you and your parent for pointing this out! I should be more precise, sbrk is the underlying system call that might be invoked inside malloc
petr_tik··on Interview with Zig language creator Andrew Kelley [video]
how often does it happen that your interns work on the hot path of your trading systems, which is where I assume you care the most about avoid syscalls like malloc?
petr_tik··on Gitoxide: Pure Rust Implementation of Git
Great project - more power to you for driving it so far.

My 2 cents. I think rust-analyzer offers a great new dev onboarding experience. issues labelled with has-instructions usually have a a link to the relevant snippet of code in the repo and sometimes even the stub of a failing unit test. While it might be obvious to you, the author, how and where to find the necessary code, it enables a great many people to send patches.

Witness the number of contributors with <10 commits https://github.com/rust-analyzer/rust-analyzer/graphs/contri...

If you want to increase adoption, please borrow as many dev experience tricks from rust-analyzer as possible

petr_tik··on Emacs 27.1
I haven’t done any web development, so my best recommendation is to forward you to search relevant keywords and then ask questions on r/emacs or r/spacemacs
petr_tik··on The most remarkable legacy system I have seen
Are you referring to GS’ meta-make?
petr_tik··on A Map of the Trees of London
Since leafy surroundings and tree presence is one of the selling points for good properties, it would be great to align incentives of real estate agencies and such data collection efforts
← PreviousPage 2 of 3Next →