Hacker Newsnew | past | comments | ask | show | jobs | submit | ectoplasmaboiii's commentslogin

Awesome! I have always wondered if language like spanish and arabic have (widespread) programming languages.

As an aside: I guess the fact that k only uses symbols makes it a very inclusive language :)


For anyone else interested, Tom Leinster (also of Edinburgh Uni) has also written a good short book for beginners:

https://www.maths.ed.ac.uk/~tl/bct/

I did his course at uni that used this book as a basis and it was great. Tough, but great.


Is anyone here using kdb+/q for data engineering, specifically outside of finance?


The ones that I find myself using a lot

!gm - google maps

!sr/!sro - type in subreddit (add o for old reddit)

!so - stack overflow (i usually use it with [tag])


> !gm - google maps

!m will save you over 33% of typing... :-)


Well now I feel like an idiot. Thanks!


I don't know if you're already familiar, but pandoc perfectly bridges this gap for me. You can write things in markdown, then covert it latex no problem with pandoc. You can even make templates for it, and write mathmode in markdown.

It certainly makes for less _noisy_ source files in my opinion, and it also means that you get to take advantage of the fact that, if you want to, you can easily convert your markdown to HTML, with maths using something like mathjax.

This was a bit of a ramble, but I honestly can't say enough nice things about pandoc.


I was converting Markdown to PDF with pandoc before I started writing straight LaTeX.

It's worth noting here that I'm writing layout in LaTeX also - like controlling the number of columns, where breaks exist, etc.


I've tried using the vim plugin for VSCode many times, and every time I come back to it, it just feels... off? The actual vim keybindings work fine when you're editing the document, but I find that when you want to use some of the other features of the editor, it becomes a bit more tricky/hacky.

If MS made an official set of vim keybindings that had better editor support, or even if there was some sort of kill switch that let me turn off vim key bindings quickly, I would be 100% sold on VSCode, but until then, I'll stick to the terminal.


Have you tried the neovim _integration_ VS Code extension? [0] It's not perfect (I'm still in a terminal 95% of the time, but my current VSCode set up is surprisingly not painful and I find myself using it more frequently) but it gets a lot further along than VsVim did for me (which is probably not a far comparison because I have not actually used VsVim in many years) or VSCodeVim when I tried it recently. YMMV, of course.

A word of advice, though, if you plan to check this out... I'd recommend maintaining a separate neovim install specifically for the VS Code integration and make sure that it has fairly basic vimrc with limited plugins. You have to take care with this because (neo)vim plugins don't always play nicely with VS Code and vice versa.

[0]: https://github.com/asvetliakov/vscode-neovim


I'm personally a fan of remapping jk or jj to esc, there barely any instances in the english language where you would use those two letters together, and it means you can leave insert mode whilst barely moving your hands :D


My issue with this is that it causes a delay with every single j that is entered. Only a visual delay that freezes the cursor and then lets it jump by two characters, but irritating for me regardless.

Otherwise it's very practical though.


I thought I was the only one. That visual delay made me nuts.


I don’t use it either but I think you can change the delay. Check out :h 'ttimeout' and :h 'ttimeoutlen'

Haven’t touched that part of my vimrc in years


Changing the delay will not completely get rid of this phenomenon but will definitely make a ton of my other shortcuts harder to use. That visual delay makes a lot of sense, it's just not a feature that was intended with this specific use in mind and so it seems to behave strange for jj/jk/etc shortcuts.


I tried mapping both jk and kj to Esc for a while (so I could just mash them in any order), but the slight delay it added to the letters always threw me off my loop.


You can reduce the delay by setting ttimeoutlen, the time in milliseconds between an escape key being pressed (or jk etc. that are mapped to Esc) and exiting Insert mode. I have it set to 100.


The first thing I put in my .vimrc on any system:

  inoremap jk <ESC>
I learned it through Spacemacs and it's one of the things that really made modal editing work for me, so I was thrilled to discover that Vim itself also supports it. (I'd tried to learn Vim before, but always having to jump over to the Escape key was a huge downer for me, and coming from Emacs I'd already mapped my CapsLock to Ctrl--though the idea of having it be Esc if pressed by itself is intriguing and I need to look into it more!)


I use jk too. Happy with it. My .vimrc has this: set <esc>=jk I wonder what the difference is.


I use zz, it's similarly rare and compliments ZZ (save and quit) well.


But how are you gonna solve fizzbuzz?


I like kk.


And the UK govt wants to lower its food standards to do a trade deal with the states :)

(No offence to any american friends. I love your country, but your food has some problems.)


Please don't take HN threads into nationalistic flamewar. I get that you didn't intend to, but these things happen unintentionally.

https://news.ycombinator.com/newsguidelines.html


Apologies dang. Won't happen again.


Appreciated!


I am from the UK and lived in California and you don't know what your talking about. The food is much much better than the UK. Almost anywhere has better food than the UK (except bacon and pies). Cheap chicken is is terrible in the UK, I expect it's awful in US too. You are self delusional if you think UK can lecture other countries on food standards, it's a running joke across the world of the low quality of UK cooking [1]. I agree.

[1] https://www-users.cs.york.ac.uk/susan/joke/heaven.htm


> it's a running joke across the world of the low quality of UK cooking [1]

He's talking about food safety, not how good you think the cuisine is.


Hey man, I am from the UK and used to live in the states (north east though, not california). Yes, the quality of food in the USA can be VERY good, especially if you shop at places like wholefoods. The problem tends to be with the cheaper food.

In the UK, I would feel safe eating the cheapest chicken from Tesco, Alsdi, Lidl and ASDA (which is owned by Walmart). Would I feel safe eating chicken from the cheaper supermarkets in the USA? Definitely not.

I don't think the UK should be lecturing other countries, and at no point did I say we should.

Also, how dare you insult fish and chips, half and halfs, and fried mars bars :p

Finally, I would just like to point out that I did say I love the USA, I'm looking at moving back (post-covid). It's one of my favourite countries in the world, but I'm surprised at how controversial it is to say that the food isn't the best.


Yes I love vinigar on chips and fried haggis but it's an acquired taste / Stockholm syndrome :) The US food IS the best though (avacados). Maybe also simultaneously the worst (corn syrup) but I just feel UK has nothing to add to the disucussion and its too close to the lazy US stereotype Europeans throw around about Americans.


Currently, the UK suffers under the cruel tyranny of European food safety regs, but after WONDERFUL BREXIT it’ll be allowed have its own salmonella-y onions, because Consumer Choice. Or I think that’s the narrative, anyway.

This is nothing to do with cuisine or even food quality; it’s about food safety. The UK will soon no longer have to obey EU rules and is under pressure to relax its standards as part of a potential trade deal with the US.


The country famous for BSE is in a bit of a glass house when it comes to farming practices.


Sure, we're not great. But it blows my mind that you would ever want to _lower_ the quality of the food you are eating.


It wouldn't make sense in a world with infinite and free food, but that is not the world we live in.


The UK isn’t suffering from food shortages. Not yet, anyway.

Allocation between rich and poor is an issue, but the net imports and production are enough to cause widespread obesity.


There doesn't need to be a food shortage - the question is what percent of income do the poor spend on food, and would they spend less if they could?


Bear in mind that food poisoning isn’t free. It is not in society’s interest to have people off work sick, taking up medical capacity, and dying early. The advances in food safety over the 20th and 21st century was a great social good, and backsliding would be bad.

I do think that one problem, particularly in societies like the US where people don’t go to their GP very frequently, is that it’s pretty hard to measure impacts, because there’s little reliable data on mild (but economically impactful) cases.


The question should be: would lowering food standards make any difference?

Specifically in this case, in order to do a trade deal with a different continent, so the increased costs of transport are relevant.

I’m also told supermarket prices are very different from wholesale (and therefore import) prices. If so I would therefore expect any cost change to alter profit margins rather than family shopping bills.


Are you implying that the UK won't have enough food to feed itself post-Brexit, to the extent that it would need to import food from the US? I thought that the problem was that the US might insist on relaxing food safety regulations as part of a larger trade deal package. Do correct me if I'm wrong.


The question isn't the quantity of food, but the cost of food. There can be food aplenty, but if poor people need to spend a large amount of their income to acquire it, there will be a benefit to having a wider sourcing of cheaper food.


Changing the standard won't necessarily impact the quality of the food.


Meanwhile, from last year: Risking food safety, USDA plans to let slaughterhouses self-police

https://thehill.com/opinion/energy-environment/461774-riskin...


What's your point?

I was pointing out that it is fallacious to conflate/equate regulatory standards and quality, not arguing that regulatory standards are useless.


I think the difference is that the BSE crisis caused massive regulatory change, with farming, slaughter and rendering practices dramatically changes across a continent. Whereas the US does seem to just have this sort of thing routinely.


Is this sort of "tu quoque" fallacy acceptable on HN? And you're talking about events from two decades ago. What relevance do they have today?


You could just as easily have said: I love your food but your country has some problems


What they said was hardly mean.


I’ve never seen any recipe from the commonwealth that I could call “loveable”


I was ill twice on beef in the UK - and never once in places like France where one eats raw beef with a raw egg on it. I had beef in restaurants twice in several years of living in the UK, and twice I was ill. It was very well done, as well.

English vegetables are served in two forms: raw, boiled to smithereens. I guess I wouldn't have been poisoned by onions, luckily, given those appetizing options.

Now, Waitrose, the pricey British supermarket chain, is absolutely superb, and blows away, yes, Trader Joes and certainly Whole Foods by an exponential factor. You get fresh vegetables and fruit and products from all over the EU, with varietals and country origin listed.

But I'll trade our dangerous onions for your mysterious* meat any day of the week.

* - while I was there a scandal had been discovered: there was horsemeat mixed in with ground beef being sold in supermarkets and served in restaurants. Maybe I'm allergic to horse?


The UK had a large salmonella outbreak less than a year ago, with the cause not understood: https://www.foodsafetynews.com/2019/11/uk-bears-brunt-of-mul....

and a smaller one 3 months ago from eggs: https://www.foodsafetynews.com/2020/07/salmonella-outbreak-l...


The UK compares quite favourably to the US when it comes to salmonella infections from eggs. According to Wikipedia, "142,000 people in the United States are infected each year with Salmonella Enteritidis from chicken eggs". The number in the UK is a few dozen. That's a substantial difference per capita. Calling it a "large" salmonella outbreak is definitely glass houses.

I feel that some of the "tu quoque" responses to GP are fuelled by US nationalism.


> I feel that some of the "tu quoque" responses to GP are fuelled by US nationalism.

Or just fueled by the relatively constant stream of smug "here is yet another reason Europe is better than the US" posts from people who frequently turn out to be speaking from a position of ignorance. There is plenty of nationalism to go around, and it gets tiring.


Calling 200+ infections "a few dozen" seems intentionally misleading. And that was just with a single outbreak in November. Whose cause is still not known.


The US doesn't require vaccination of chickens for salmonella, never mind that it is basically free.


"Give me freedom or give me death" is the motto I think.


Interesting posts, looking to make an RSS feeder myself, but in a more bizarre language!

By the way, your personal website (if it's yours) is fantastic. Just the right amount of styling to make it look good.


Agree, the website is brilliant...


Would you be willing to share what that vim/kdb plugin was... sounds very interesting!


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: