7,134 karma · joined Mar 19, 2013 (13y ago) · 2,712 submissions
comment 2w ago · link · parent
That was the other guy's job, and it as a prerequisite - they would not reach me if the compensation was not to their satisfaction. My job was to determine whether the candidate could perform at the offered post. If I needed to discuss compensation then someone before me would have screwed up.
comment 1mo ago · link · parent
Numerical loops in Lua are inclusive:
for i=1,#t do t[i]=0 end
On the example above the i starts at 1 and goes up to (and including) the length of t.With 0-based indexes, and that numerical loop format, it would be minus-one everywhere:
for i=1,#t-1 do ...comment 1mo ago · link · parent
To me it is more about expressiveness and usage of basic language features. For example here's how a text field is set up currently.
ito.TextField(draft)
:label("Name")
:focused()
:on_submit(function(value)
if value:match("%S") then
phase.value = "review"
end
end)
:on_cancel(function()
phase.value = "choose"
end),
The field is created on the first line, and then altered further with subsequent method calls that alter it. This reads like someone very used to Rust (and its Builder pattern) and then translating it verbatim to Lua. A more native Lua interface for me would look like this: ito.TextField(draft, {
label = "Name",
focused = true,
on_submit = function(value)
if value:match("%S") then
phase.value = "review"
end
end,
on_cancel = function()
phase.value = "choose"
end),
})
As in: just pass a table to the builder. And if they ned to modify it later, they can just do: some_textfield.on_cancel = <some other function>
No need to "guard" the internal table with those extra methods.comment 1mo ago · link · parent
It is not a joke! The naming is so bad so it sounds like a joke. So people like the author assume it is a joke and move on without suing them. They are counting on that.
comment 1mo ago · link · parent
Yes part: LLMs have had the capability to generate code, including glue code, to do several steps in a single program.
No part: until some months ago, MCP servers were not prepared to use that glue code at all.
Your LLM could generate the code it wanted, and you could execute that code wherever you wanted, including letting the LLM run it. but every call to any of the tools exposed by the LLM is meant to be consumed by your LLM in the old paradigm. If said program makes 80 tool calls, your LLm would still have to send them, and parse their responses, consuming tokens.
In code mode the glue code is sent to the server, which executes it, and returns the final result. It’s a single invocation and a single response, instead of 80 like before
comment 1mo ago · link · parent
There's multiple kinds of olives, each producing different kinds of oil. The processing used also affects the end result (extra virgin olive oil comes from the first press, less quality oils from successive processing).
* Picual is the most popular one. It has a strong taste, that "bite" that you mention, and a long shelf life. This means that it is the most exported one. That is probably why you (and others) have associated olive oil with that strong profile. It is however not the only kind out there!
* Cornicabra is the second most popular one. It is milder than Picual in taste, but still strong and durable. You might find it in some specialist shops.
* Arbequina has less of that "bite" that you mention at the end. Unfortunately it has a shorter shelf life as well, which means that it also tends to be exported less.
Because of this is unlikely that you will find it outside of Spain. At the same time it would be the best kind for making mayonnaise, especially if you don't like the bite at the back of the throat (that some people actually enjoy).
And these are just the 3 more popular varieties. There's many more local, smaller ones.
comment 1mo ago · link · parent
1. Search: The server publishes its tools via a query interface and with gradual level of detail. This way an LLM can discover the tools it needs without loading the ones it doesn't into context. Saves context.
2. The LLM sends glue code when it needs to use multiple tools together. Said code gets executed by the MCP server itself, and it returns the result. Saves tool calls, which saves tokens.
On point 2: Imagine there's 2 tools in the server. One lists customers the other gives sales for a given customer. For a task like "add all the sales for the customers whose name begin with A".
With traditional MCP: the LLM has to use the MCP like a regular HTTP API: first get the customers (1 tool call). Then for every customer begining with A, get their sales (N tool cals). Then add all of the sales (potentially 1 tool call).
With code mode the LLM sends a single program. The program has code that does things like `customers = call_tool("get_customers"); for each c in customers do if customer.name.begins_with("A") then ...` etc etc. That code is sent to the server for execution. So for the LLM it counts as a single tool call.
On the downside, the "code execution" on the Server means that it is executing untrusted code coming directly from LLMs. In order to offer this confidently your MCP servers really needs a very tight sandbox in which to execute this "glue code".