HackerTrans
TopNewTrendsCommentsPastAskShowJobs

chrisaycock

no profile record

Submissions

The DOGE Bros Want Another Shot

theatlantic.com
2 points·by chrisaycock·เดือนที่แล้ว·2 comments

There's Never Been a Better Time to Study Computer Science

theatlantic.com
8 points·by chrisaycock·2 เดือนที่ผ่านมา·1 comments

French weather service alerts police after suspicious Polymarket bets

ft.com
6 points·by chrisaycock·3 เดือนที่ผ่านมา·0 comments

SantaCon Leader Ran His Own $1M Con, U.S. Says

nytimes.com
2 points·by chrisaycock·3 เดือนที่ผ่านมา·0 comments

Glasses Got Worse on Purpose

worse-on-purpose.beehiiv.com
63 points·by chrisaycock·3 เดือนที่ผ่านมา·23 comments

The Age-Old Urge to Destroy Technology

newyorker.com
2 points·by chrisaycock·3 เดือนที่ผ่านมา·0 comments

He designed C++ to solve your code problems

stackoverflow.blog
3 points·by chrisaycock·3 เดือนที่ผ่านมา·0 comments

Economists Once Dismissed the A.I. Job Threat, but Not Anymore

nytimes.com
20 points·by chrisaycock·3 เดือนที่ผ่านมา·9 comments

Apple Plans AI Reboot with Siri App

finance.yahoo.com
5 points·by chrisaycock·4 เดือนที่ผ่านมา·0 comments

Tech Workers Max Out Their A.I. Use

nytimes.com
5 points·by chrisaycock·4 เดือนที่ผ่านมา·0 comments

COBOL Is the Asbestos of Programming Languages

wired.com
7 points·by chrisaycock·4 เดือนที่ผ่านมา·3 comments

The Dirty, Dystopian World of AI Data Centers

theatlantic.com
4 points·by chrisaycock·4 เดือนที่ผ่านมา·0 comments

Young billionaires are behind the prediction market boom. They hate each other

npr.org
8 points·by chrisaycock·4 เดือนที่ผ่านมา·1 comments

Jensen Huang of Nvidia Named IEEE Medal of Honor Recipient

corporate-awards.ieee.org
1 points·by chrisaycock·6 เดือนที่ผ่านมา·0 comments

Ask HN: Has anyone been able to renew their IEEE this month?

21 points·by chrisaycock·7 เดือนที่ผ่านมา·2 comments

Show HN: Proposal: Copy-and-Fuse Compilation

gist.github.com
2 points·by chrisaycock·7 เดือนที่ผ่านมา·1 comments

comments

chrisaycock
·2 เดือนที่ผ่านมา·discuss
Yes, it's true that someone can put together a simple language like in a university course. The difficulties, as mentioned at the bottom of the post, are things like metaprogramming features or optimizing compilers.

The tail ends of a language implementation (parsing and code generation) are a fixed cost; the "middle end" can grow unbounded as more production-quality items are added.

My language: https://www.empirical-soft.com
chrisaycock
·3 เดือนที่ผ่านมา·discuss
The conclusion from the article is that broader economic uncertainty from tariffs and the Iran war have a bigger effect than just AI.
chrisaycock
·4 เดือนที่ผ่านมา·discuss
std::execution is very interesting, but will be difficult to get started with, as cautioned by Sutter. This HPC Wire article demonstrates how to use standard C++ to benefit from asynchronously parallel computation on both CUDA and MPI:

https://www.hpcwire.com/2022/12/05/new-c-sender-library-enab...

Overlapping communication and computation has been a common technique for decades in high-performance computing to "hide latency", which leads to better scaling. Now standard C++ can be used to express parallel algorithms without tying to a specific scheduler.
chrisaycock
·4 เดือนที่ผ่านมา·discuss
The government is free to cancel its own contracts. The judge is saying that the government cannot prohibit other entities (like private contractors) from doing business with Anthropic.
chrisaycock
·4 เดือนที่ผ่านมา·discuss
The project relies on Rayon [1] for scheduling parallel tasks and Cranelift [2] to JIT the hot loops.

There are plenty of other interesting features like auto-FFI, bytecode caching (similar to Python's .pyc files), and "daemonize" mode (similar to mod_perl or FastCGI).

[1] https://docs.rs/rayon/latest/rayon/

[2] https://cranelift.dev
chrisaycock
·4 เดือนที่ผ่านมา·discuss
The one piece of advice I give new PhD students is to maintain a list of your references for a bibliography ahead of time. For every paper you read, copy the citation in BibTeX format and write a couple of sentences to remind yourself what the paper was about. Do this for every source, even if it doesn't seem important at the time.
chrisaycock
·4 เดือนที่ผ่านมา·discuss
I hadn't realized that Kalshi is a YC company:

https://news.ycombinator.com/item?id=33696486
chrisaycock
·4 เดือนที่ผ่านมา·discuss
> I think it would be the best to start interpreting the query and start compilation in another thread

This technique is known as a "tiered JIT". It's how production virtual machines operate for high-level languages like JavaScript.

There can be many tiers, like an interpreter, baseline compiler, optimizing compiler, etc. The runtime switches into the faster tier once it becomes ready.

More info for the interested:

https://ieeexplore.ieee.org/document/10444855
chrisaycock
·4 เดือนที่ผ่านมา·discuss
Indeed, my very first attempt used numpy.searchsorted:

https://numpy.org/doc/2.2/reference/generated/numpy.searchso...

I couldn't figure-out how Arthur's bin matched on symbol though, so I switched to a linear scan on the right table to record the last-seen index for each "by" element. While it worked, my hash table was messy because I relied on Python to handle a whole tuple as a key, which had some issues during initial testing.

The asof join I wrote for Empirical properly categorizes the keys before they are matched. That approach worked far better.

https://www.empirical-soft.com/tutorial.html#dataframes
chrisaycock
·4 เดือนที่ผ่านมา·discuss
I first encountered q/kdb+ at a quant job in 2007. I learned so much from the array semantics about how to concisely represent time-series logic that I can't imagine ever using a scalar language for research.

Fun fact: the aj (asof join) function was my inspiration for pandas.merge_asof. I added the extra parameters (direction, tolerance, allow_exact_matches) because of the limitations I kept hitting in kdb.

https://code.kx.com/q/ref/aj/

https://pandas.pydata.org/docs/reference/api/pandas.merge_as...
chrisaycock
·6 เดือนที่ผ่านมา·discuss
The article points out that tools like TLA+ can prove that a system is correct, but can't demonstrate that a system is performant. The author asks for ways to assess latency et al., which is currently handled by simulation. While this has worked for one-off cases, OP requests more generalized tooling.

It's like the quote attributed to Don Knuth: "Beware of bugs in the above code; I have only proved it correct, not tried it."
chrisaycock
·7 เดือนที่ผ่านมา·discuss
I had been thinking about this idea for a long time, but I doubt I'll be able to get around to it. After speaking with a friend this evening, I decided to just jot it down for anyone interested.

Basically, use copy-and-patch compilation in a vector language to fuse loops and avoid temporaries. It can be employed for a baseline compiler that will use less memory than an interpreter and will have a much lower startup cost than an optimizing compiler.
chrisaycock
·16 ปีที่แล้ว·discuss
We can add Skulpt (Python) to that list too.
chrisaycock
·16 ปีที่แล้ว·discuss
Right, it's same reason we still have ARM despite the success of x86. Or why some hardware vendors bundle FPGAs rather than rely on GPUs or custom ASICs. The instruction set is absolutely vital for a given domain's performance.
chrisaycock
·16 ปีที่แล้ว·discuss
Whenever I hear "standardized bytecode", I think of Parrot:

http://www.parrot.org/