TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Bard can now help you code in over 20 programming languages

46 pointsby chrsstrmabout 2 years ago

11 comments

motoboiabout 2 years ago
I'd love to use bard, but I was dumb enough to pay for a custom domain and workspace. Thank you google for your incompetence.
评论 #35699709 未加载
评论 #35695998 未加载
评论 #35696307 未加载
评论 #35696693 未加载
评论 #35701649 未加载
hcrispabout 2 years ago
&gt; Show me a clever hack for using deque instead of vector in C++<p>Ans:<p><pre><code> &#x2F;&#x2F; This function will reverse the order of a vector. void reverse(std::vector&lt;int&gt;&amp; vec) { std::deque&lt;int&gt; deq; for (int i = 0; i &lt; vec.size(); i++) { deq.push_back(vec[i]); } for (int i = 0; i &lt; vec.size(); i++) { vec[i] = deq.front(); deq.pop_front(); } } This is a clever hack because it avoids the need to write a custom function for reversing the order of a vector. </code></pre> But it <i>did</i> write a custom function?!
评论 #35695030 未加载
评论 #35694961 未加载
eka1about 2 years ago
Interesting, I asked it this:<p>&gt; Me: Write a golang function to get a http request, following the API of the get function in Python requests library.<p>&gt; Bard: Sure, here is a Golang function to get an HTTP request with an API similar to the requests.get() function in Python:<p>It produced a function that takes url and parameters. Decent first approximation.<p>ChatGPT has trouble with this (when I tried a couple months back)
gerdesjabout 2 years ago
Why on earth is there no link to whatever this &quot;bard&quot; actually is on that page - I need an on-ramp&#x2F;slip road?<p>There is a link to &quot;Learn More&quot; which is also ... eventually a link wonders off somewhere ... nope some wankery about Lamda thingie. [random futile clicking]<p>It&#x27;s the basics kids. No matter how far up your arse you are about your funky technology, do enable people to find the bloody thing easily, from all related pages. If you are a little rusty on spelunking then have a look at WAIS and Gopher (int al) for how to do it properly.<p>Obviously I can find it because I&#x27;m a fucking IT consultant. Why not make it easy for everyone?
评论 #35694910 未加载
评论 #35695409 未加载
stuckkeysabout 2 years ago
me: using python, how can I convert a .txt file to .pdf file? bard: save as. me: thank you. well done.
评论 #35695070 未加载
评论 #35695392 未加载
评论 #35694830 未加载
jdlygaabout 2 years ago
I know we all love GPT-4, and it totally deserves it, but we really need to support other companies building their own large language models even if it&#x27;s Google. We don&#x27;t want a monopoly situation.
评论 #35695454 未加载
评论 #35697601 未加载
peter-m80about 2 years ago
Bard isn’t currently supported in your country. Stay tuned!<p>WTF
评论 #35696367 未加载
评论 #35697553 未加载
WheatMillingtonabout 2 years ago
Would love to try, but unlike all of your competitors, you have decided to region lock to US only.
amrbabout 2 years ago
Can some one test fizzbuzz, sounds silly tho a lot of models fail on the combination check in my tests.
评论 #35694820 未加载
评论 #35711919 未加载
评论 #35694853 未加载
iudqnolqabout 2 years ago
This is amazingly short on details.<p>What are the programming languages supported, for example?
评论 #35695579 未加载
sp332about 2 years ago
So what are the other 13 programming languages it supports?
评论 #35696699 未加载