Better HN
topnewbestaskshowjobs
Log inSign up

leprechaun1066

133 karma · joined Jun 30, 2020 (6y ago) · 55 submissions

Submissions

comment 4mo ago · link · parent

For those interested, previous discussions here:

https://news.ycombinator.com/item?id=14783539

https://news.ycombinator.com/item?id=21892432

comment 4mo ago · link · parent

It's not just the arcade machine implementation. The owners of these companies want to go all the way and move everything to data centers so they can rent compute time, similar to the idea of the time-sharing days of the 60s.

comment 4mo ago · link · parent

Or just use kdb+ and 1bn rows a day is par for the course.

comment 9mo ago · link · parent

The aj function at its heart is a bin (https://code.kx.com/q/ref/bin/) search between the two tables, on the requested columns, to find the indices of the right table to zip onto the left table.

  aj[`sym`time;t;q]
becomes

  t,'(`sym`time _q)(`sym`time#q)bin`sym`time#t
The rest of the aj function internals are there to handle edge cases, handling missing columns and options for filling nulls.

A lot of the joins can be distilled to the core operators/functions in a similar manner. For example the plus-join is

  x+0i^y(cols key y)#x

comment 9mo ago · link · parent

> just like LLM agents were a new layer on top of LLMs, Claws are now a new layer on top of LLM agents, taking the orchestration, scheduling, context, tool calls and a kind of persistence to a next level.

Layers of "I have no idea what the machine is doing" on top of other layers of "I have no idea what the machine is doing". This will end well...

comment 11mo ago · link · parent

In this case the majority of the work was done by another company on your instruction. When you signed up was there anything in the terms that said you get ownership over the output?

comment 1y ago · link · parent

Wayve have been working on London streets for some time now. This is from a few months ago:

https://www.youtube.com/watch?v=KvctCbVEvwQ

comment 1y ago · link · parent

Another way to look at it is everything a LLM creates is a 'hallucination', some of these 'hallucinations' are more useful than others.

I do agree with the parent post. Calling them hallucinations is not an accurate way of describing what is happening and using such terms to personify these machines is a mistake.

This isn't to say the outputs aren't useful, we see that they can be very useful...when used well.

comment 1y ago · link · parent

Most applications backed kdb+ do just this. It comes with its own parser and you can query tables using something like an ast.

For example the user might ask for data with the constraint

  where TradingDesk=`Eq, AvgPx>500.0
which kdb+ parses into

  ((=;`TradingDesk;(),`Eq);(>;`AvgPx;500.0))
As a dev on the system I can then have a function which takes in this constraint and a list of clients that I want to restrict the result to. That list of clients could come from another function related to the entitlements of the user who made the request:

  applyClientRestriction:{[constraint;clients] constraint,enlist(in;`Client;enlist clients)}
Which results in an extension of the constraint like this for two clients A and B:

  q)applyClientRestriction[((=;`TradingDesk;(),`Eq);(>;`AvgPx;500.0));`ClientA`ClientB]
  ((=;`TradingDesk;enlist`Eq);(>;`AvgPx;500.0);(in;`Client;enlist`ClientA`ClientB))
Then that gets passed to the function which executes the query on the table (kdb+ supports querying tables in a functional manner as well as with a structured query language) and the result has the restrictions applied.

It's really nice because, once parsed, it's list processing like in a lisp and not string processing which is a pain.

comment 1y ago · link · parent

Given Wes McKinney created Pandas for quantitative analysis, it's possible that Pandas wouldn't exist if AQR were paying for a q license.

comment 1y ago · link · parent

The overview here is better than the marketing:

https://code.kx.com/q4m3/0_Overview/

comment 1y ago · link · parent

That does require someone to know that the take operator continues to treat the y list as circular when x is a list.

I think this form might be a bit easier: {(x,x)#(x*x)#1,x#0}

comment 1y ago · link · parent

It's not because of the left of right evaluation. If the difference was that simple, most humans, let alone LLMs, wouldn't struggle with picking up q when they come from the common languages.

Usually when someone solves problems with q, they don't use the way one would for Python/Java/C/C++/C#/etc.

This is probably a poor example, if I asked someone to write a function to create an nxn identity matrix for a given number the non-q solution would probably involve some kind of nested loop that checks if i==j and assigns 1, otherwise assigns 0.

In q you'd still check equivalence, but instead of looping, you generate a list of numbers as long as the given dimension and then compare each item of the list to itself:

  {x=/:x:til x}3
An LLM that's been so heavily trained on an imperative style will likely struggle to solve similar (and often more complex) problems in a standard q manner.

comment 1y ago · link · parent

I use perforce for my personal projects. Helix P4V's various ways of visualising streams, diffs and revisions are so nice.

comment 1y ago · link · parent

These days it's usually better to try and find players on youtube or twitch than to read text based reviews.

comment 1y ago · link · parent

> they're goats, as any self-respecting three year old could tell you

Sheep or goat? https://www.youtube.com/watch?v=dCzZN--4Its

comment 1y ago · link · parent

Financial market data (especially FX data) can have thousands of ticks per second. It's not unheard of for data engineers in that space to sometimes handle 1TB per day.

comment 1y ago · link · parent

We do this in q/kdb+ systems often for patches. An important thing about these languages is that this kind of workflow is part of the core for solving problems. So when you are building a system one of the aspects of its design will always allow for this update method. Then when you push a patch you both know the impact of the change (because you've tested the exact same steps in a dev/QA/UAT/Beta environment) and the work required to do it safely.

Major releases do go through a full shutdown and release cycle though.

comment 1y ago · link · parent

Calling them hallucinations was a huge mistake.

comment 2y ago · link · parent

In 2021/2022 there were 60 people in the UK who probably fall into that last group. Together their taxes accounted for about 1.4% of the UK tax bill despite being something like 0.002% of the population.

comment 2y ago · link · parent

Shinmera recently talked about porting SBCL to the switch: https://reader.tymoon.eu/article/437

comment 2y ago · link · parent

A couple of old fogies down in Tunbridge Wells, "I say old chap, how very uncouth." Meanwhile everyone else, "It's been almost 50 years since Fawlty Towers. Took them long enough."

comment 3y ago · link · parent

Transport Fever 2 if you like choo-choos.

comment 3y ago · link · parent

APL (along with Matlab, K, Mathematica, etc.) was one of the influences for NumPy anyway.

comment 3y ago · link · parent

Or q:

https://code.kx.com/q4m3/9_Queries_q-sql/#93-the-select-temp...

comment 3y ago · link · parent

Azure has prices that vary:

https://azuremarketplace.microsoft.com/en-us/marketplace/app...

That's for commercial though.

One can get a personal use license for hobbies as other commenters have pointed out.

comment 3y ago · link · parent

https://spacetraders.io/ is API based. Considering that q is used for trading and analysis in the real world seems like it's a good way to go on an adventure.

comment 3y ago · link · parent

The favicon for that site is the Zimbabwean flag. Interesting...

comment 3y ago · link · parent

And Dyalog also has https://course.dyalog.com/

comment 3y ago · link · parent

Sounds like you want q:

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

https://code.kx.com/q4m3/

12